Skip to content

index.js/index.ts file should show at top of file picker when searching for the name of the directory #72514

@lukewlms

Description

@lukewlms
  • VSCode Version: Version 1.34.0-insider (1.34.0-insider) 6d5feae
  • OS Version: MacOS 10.14.4

Expected: In TypeScript, index.js should show up at or near the top of the list, identically to if it was called ./MyComponent.ts. (Since index.ts is a shorthand for "whatever this directory is" - e.g. MyComponent/index.ts can be imported as just ./MyComponent).

Note that there is currently no clean and quick way to open such a file since typing "index" is highly general and may bring up a huge list, and the dev doesn't know to type both the component name and index because it's not clear by looking at the import line that the module is being imported from a file named "index.ts".

Actual: File often appears well down the list of choices, including below items that are seldom if ever selected. Example typing "regi" and wanting to open "registerLoginRoutes/index.ts":

image

Steps to Reproduce:

  1. Create an index.ts file within a directory
  2. Cmd+p to open file search box
  3. Start typing the name of the directory

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalityquick-openQuick-open issues (search, commands)searchSearch widget and operation issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions