index.js/index.ts file should show at top of file picker when searching for the name of the directory
See original GitHub issue- VSCode Version: Version 1.34.0-insider (1.34.0-insider) 6d5feae57959287fb116467f4eb6c7079571b466
- 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”:
Steps to Reproduce:
- Create an index.ts file within a directory
- Cmd+p to open file search box
- Start typing the name of the directory
Does this issue occur when all extensions are disabled?: Yes
Issue Analytics
- State:
- Created 4 years ago
- Reactions:54
- Comments:13 (1 by maintainers)
Top GitHub Comments
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
i will add, for those files, show the name of the folder first in the tab title instead of the file name.
example: “SomeFeature …/index.js” instead of “index.js …/SomeFeature”