-
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
Not that I think it matters, but currently using VSCode 1.4. This behaviour does not occur in [email protected]
.
TypeScript Version: nightly 2.1.0-dev.20160813 onwards
Code
// Clone my demo repo then skip to 'Terminal' steps or manually re-create it
git clone https://github.com/seikho/intellisense-repro
// .vscode/settings.json
{
"typescript.tsdk": "node_modules/typescript/lib"
}
// tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"target": "es5"
},
"exclude": [
"node_modules"
]
}
// package.json
{
"main": "index.js",
"devDependencies": {
"@types/node": "^6.0.34",
"typescript": "^2.1.0-dev.20160816"
}
}
// index.ts
const foo = 1;
foo;
// Terminal
npm install
code .
// Mouse
Hover things
Expected behavior:
Glorious intellisense
Actual behavior:
No intellisense 😢
Removing the tsconfig.json
works around the issue.
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