-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Parse ":line " in Quick Open #70726
Comments
I've done some digging, and it seems that currently, the regex that drives this functionality supports any of these test cases:
I was able to add in line pretty simply, so I did it and opened a PR |
Thanks for the PR! On one hand I don't want to add a ton of patterns that are sort of specific to one library or runtime but I think this makes sense and apparently we already handle this pattern in the terminal too. @Tyriar can you show me where the link detection for the terminal is because I think it would make sense to sync the cases that it supports with quickopen. |
@roblourens I'd recommend against copying all the patterns the terminal supports as it's super complicated, I want remove regexes from the system and it supports formats which should only work in the terminal imo such as |
Ok. Thinking about it some more, I don't really think we should have that kind of fuzziness in quick open. We will start adding more patterns it will end up very complicated. However, an extension could show an input and handle whatever patterns they want! |
Currently, typing a file name with colon and a line number into Quick Open will take you to that line in the file. This is great!
However, ASP Core currently logs exceptions like this
And the Quick Open menu is unable to parse ":line 44" as a line number, so when I copy/paste the file name, the open file command is hidden.
I would like if the Quick Open menu was able to parse this as a line number, and take me to the expected location.
The text was updated successfully, but these errors were encountered: