microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.65k stars 28.68k forks source link

Show best match to open file when not match found #202540

Open edusantana opened 8 months ago

edusantana commented 8 months ago

Very often, when I have an error in ruby, I click twice to select the source of the file and the line number of the source of the problem to open in Visual Code. I hit "CTRL+P" to open the file and past what I copied. This is how it goes:

Screenshot-119

Every time I paste, I have to delete the part after the number file:

/home/osboxes/w/pricing-update2/app/lib/scraper/sharp/plan_harness.rb:569:in
# I have to delete ":in"
/home/osboxes/w/pricing-update2/app/lib/scraper/sharp/plan_harness.rb:569

Screenshot from 2024-01-15 17-04-00

What I want is to have the best match of the file available to click and open when "No matching result is found". It could show "best match alternative".

TylerLeonhardt commented 8 months ago

I think what would be better is if we ignored the :in part. Giving this to @Tyriar to see what he thinks.