microsoft / vscode

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

Improved Search Functionality for Relative Paths in VS Code #224681

Open myagizmaktav opened 3 months ago

myagizmaktav commented 3 months ago

When searching for files in VS Code, the search functionality should include the ability to recognize and prioritize relative paths, even when a / character is not included.

Example:

In the top screenshot, when I enter the relative path, the search returns the correct file. However, as shown in the second screenshot, if I omit the / character, the search doesn't provide the desired file.

Desired Feature:

When searching for a file, VS Code's search should automatically include and prioritize relative paths, even if the user does not explicitly type the / character. This would help in quickly locating files, such as definitionPrinterDefinitions/index.ts, without having to include the / character.

Screenshots:

  1. Correct Search Result with /: image

  2. Incorrect Search Result without /: image

TylerLeonhardt commented 2 months ago

/duplicate https://github.com/microsoft/vscode/issues/133438

vs-code-engineering[bot] commented 2 months ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!

TylerLeonhardt commented 2 months ago

I take it back. This isn't related to that.