In NTVS 1.2 Beta on VS 2015 Update 2, IntelliSense does not work for locally required files:
var my_file = require('./my_local_file');
my_file.
// No IntelliSense for `my_file` :(
This issue was originally identified and tracked by #817. It is a Visual Studio / TypeScript bug, that is fixed by (the currently unreleased) VS 2015 Update 3 RTM.
Workaround
As a workaround, try adding a tsconfig.json to the root of your NTVS project with these options:
{
"compilerOptions": {
"allowJs": true,
"moduleResolution": "node",
"noEmit": true
},
"exclude": ["node_modules"]
}
And right click Save As this file into C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TypeScript to replace the existing typescriptServices.js in that directory.
In NTVS 1.2 Beta on VS 2015 Update 2, IntelliSense does not work for locally required files:
This issue was originally identified and tracked by #817. It is a Visual Studio / TypeScript bug, that is fixed by (the currently unreleased) VS 2015 Update 3 RTM.
Workaround
As a workaround, try adding a
tsconfig.jsonto the root of your NTVS project with these options:{ "compilerOptions": { "allowJs": true, "moduleResolution": "node", "noEmit": true }, "exclude": ["node_modules"] }And right click
Save Asthis file intoC:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TypeScriptto replace the existingtypescriptServices.jsin that directory.