microsoft / microsoft/TypeScript
Add support for extesnsions in js files like .native.js, .web.js, .android.js and .ios.js
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
I am working on a react native web project where file extensions can be .js, .native.js, .web.js, .android.js and .ios.js. I would like to know how i can make vscode detect files with such extension in path intellisense when i cmd+click on file path in import statement. If path resolve to multiple files it should show a picker to choose one.
Would like to know if i can configure it in vscode or any extension that can help. I have been searching it for long and can't find any solution. Maybe vscode could provide it out of the box just like webstorm.
Also could not find any help on stackoverflow
stackoverflow question
I know i can use jsconfig.json compilerOptions for custom path resolving using baseUrl and path parameters. But i want to add custom extensions here. Hope my question is clear
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the linked Stack Overflow question and tracing TypeScript's module-resolution behavior for JavaScript imports; the issue names no repository file or test to begin with. Confirm whether custom extensions belong in configuration or require language-service support, then verify that .native.js, .web.js, .android.js, and .ios.js imports resolve and that ambiguous matches offer a picker.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native, typescript, vscode
- Domain
- developer-experience, tooling, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100