Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quickopen: file url #190304

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

turuslan
Copy link

@turuslan turuslan commented Aug 12, 2023

Action: "Go to file..." (workbench.action.quickOpen)

Example query: /etc/hosts
Result: found "file results"

Example query: file:///etc/hosts
Result (expected): found "file results"
Result (actual): "No matching results"

VSCode supports opening file:// url with selection, e.g. when clicking such links in editor.

P.S. I often copy file:// urls from chrome to open them in vscode

@turuslan
Copy link
Author

@microsoft-github-policy-service agree

Copy link

@Adre345 Adre345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closed

Copy link

@Adre345 Adre345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Closed

@TylerLeonhardt TylerLeonhardt added this to the Backlog milestone Aug 14, 2023
Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing! I don't think this is the right change. This is adding special logic to extractRangeFromFilter for file:// but it's not clear that a function called extractRangeFromFilter would do that.

I don't think this is the right place for this logic. I think the caller of extractRangeFromFilter or something in quick open code should normalize URIs to just their paths or something like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants