What is .ntvs_analysis.dat
Asked Answered
D

1

9

I am using Node.js Tools for Visual Studio.

When I am opening a project it will take some time to load, because of Node.js analysis process.

Another problem is .ntvs_analysis.dat is growing larger and larger?

What is it and do I need it?

Dumps answered 22/9, 2015 at 14:39 Comment(2)
Visual studio automatically ignores this file when adding the project to source control, So it's certainly not critical. You should consult your source control documentation for best practices regarding management of IDE cache files.Vey
@TamirDaniely not with vs2013 and git. You need to exclude/delete itLeprosy
B
9

To my understanding, the NTVS extension analyzes your code to provide IntelliSense support. The result of the analyzed code is stored in ntvs_analysis.dat. However, it doesn't only analyze your code but also all installed npm_modules and their dependencies (and theirs, and theirs)). So installing more modules will make your ntvs_analysis.dat grow really fast.

There is an open issue on github https://github.com/Microsoft/nodejstools/issues/88 about this. The file is getting really big for some people including myself.

One proposed solution in the discussion is to reduce the depth of scanned folders. Turning off IntelliSense would help keeping the file smaller according to the discussion.

Banns answered 2/10, 2015 at 11:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.