-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
TypeScript Version: 2.7.1
Search Terms:
- Path intellisense
- Path completions
Code
$ git clone https://github.com/mjbvz/ts-issue-21582
- For a js project:
jsconfig.json
src/
index.js
keeper.js
animals/
cat.js
With jsconfig.json
:
{
"compilerOptions": {
"module": "commonjs",
"target": "es2016",
"baseUrl": ".",
"paths": {
"@zoo/*": ["./src/*"]
}
},
"exclude": [
"node_modules",
"**/node_modules/*"
]
}
-
In
src/index.js
, type:import {} from ''
-
Trigger path intellisense inside the import
Expected behavior:
Returns completions include one for @zoo
from the paths
compiler option.
Actual behavior:
No such completion returned
Related
#21590
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue