Closed
Description
Not that I think it matters, but currently using VSCode 1.4. This behaviour does not occur in typescript@2.1.0-dev.20160812
.
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.