microsoft / microsoft/TypeScript

Intellisense doesn't find variable in tsconfig's "paths" directory in parent folder

Open
#40,139 1 comment 7 reactions 0 assignees View on GitHub

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:

  1. Clone this repo: https://github.com/Floriferous/paths-resolution
  2. Try to use intellisense to import someVar in the test.js file
  3. Notice that it does not work, even though paths is properly declared in tsconfig.json

Does this issue occur when all extensions are disabled?: Yes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.