imports: display completions to files with extensions from ambient modules #52409
Labels
Domain: Completion Lists
The issue relates to showing completion lists in an editor
In Discussion
Not yet reached consensus
Suggestion
An idea for TypeScript
Milestone
Suggestion
🔍 Search Terms
VSCode path intellisense not working
List of keywords you searched for before creating this issue. Write them down here so that others can find this suggestion more easily and help provide feedback.
✅ Viability Checklist
My suggestion meets these guidelines:
⭐ Suggestion
📃 Motivating Example
It seems typescript already can provide definition to such files from import statements (on file path string literal), but it doesn't include these files into completion lists (they are actually valid files imports).
js only environments
In js-only projects module augmentations are not possible (until types module providing them is installed)
I think in such cases it makes sense to display files for any extension but for named imports only, but still not sure.
💻 Use Cases
Without it you need to guess path or use 3rd party ide extensions that don't know of module resolution (aliases and so on) such as popular path intellisense. This is annoying and displaying completions and native way to TS is best option for IDEs
The text was updated successfully, but these errors were encountered: