-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
index.js/index.ts file should show at top of file picker when searching for the name of the directory #72514
Comments
Adding @bpasero for feedback since quick open cannot be controlled by extensions. Not sure we'd want it to be non-deterministic |
I'd like it to still be deterministic, but greatly increase the priority of ranking e.g. Thanks for the consideration! |
I think this would be super useful 👍 |
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation. Happy Coding! |
🙂 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: |
It's currently very clunky to use index files within directories - in a large project there are dozens (or more) of files named "index" and VS Code currently has very limited capability to distinguish between them. Great to see this get the needed attention. I do think this is a very essential change in order to use JS/TS modules as they are intended to be used. |
I'd love to take a stab at this, if someone could point me in the right direction to get started. |
Ended up here looking for this particular approach - would be very helpful in Node applications |
@stevenhao any update on this? This would be super useful. |
Unfortunately no updates from me. |
Still no update on this one? waiting for it for so long! |
This remains a constant sticking point when simply trying to use modern JS as designed - when searching e.g. 'SomeM', It appears to have no understanding at all of this common and recommended JS pattern 😔 |
It would be nice to implement this in a generic fashion that's not specific to |
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:
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: