microsoft / microsoft/TypeScript
Intellisense doesn't find variable in tsconfig's "paths" directory in parent folder
Open
Nobody has claimed this yet.
Needs Investigation
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
TS Template added by @mjbvz
TypeScript Version: 4.1.0-dev.20200818
Search Terms
- tsconfig
- auto import
- VSCode Version: Insiders
- OS Version: macOS 10.15.6
Steps to Reproduce:
- Clone this repo: https://github.com/Floriferous/paths-resolution
- Try to use intellisense to import
someVarin thetest.jsfile - Notice that it does not work, even though
pathsis properly declared intsconfig.json
Does this issue occur when all extensions are disabled?: Yes
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
Run the linked paths-resolution reproduction and inspect test.js and tsconfig.json first. Verify how the TypeScript language service handles a paths directory in a parent folder, then confirm that IntelliSense offers an import for someVar in test.js under the reported setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript, vscode
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100