Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTVS 1.2 Beta: IntelliSense For Locally Required Files needs VS 2015 Update 3 RTM+ #1076

Closed
mjbvz opened this issue Jun 20, 2016 · 1 comment

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Jun 20, 2016

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.

@mjbvz mjbvz added the bug label Jun 20, 2016
@mousetraps mousetraps changed the title NTVS 1.2 Beta: IntelliSense For Locally Required Files needs VS 2015 Update 3+ NTVS 1.2 Beta: IntelliSense For Locally Required Files needs VS 2015 Update 3 RTM+ Jun 20, 2016
@mousetraps
Copy link
Contributor

This issue has been resolved with Visual Studio 2015 Update 3 RTM https://www.visualstudio.com/news/releasenotes/vs2015-update3-vs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants