Can't stop Visual Studio 2015 lagging for seco

2019-03-11 20:55发布

In the status-bar when I am typing in a Js file it shows this message on keyup and editor hangs for 2 or 3 seconds. This probably started happening suddenly When I moved some Js files into category folders but I am not sure this is the cause. I dont know what is the problem. Before the problem all js files were in a same folder like angular files and my own app files.
I also tried uninstalling the WebCompiler extension and resetting the visual studio from Import & Export Settings and hard resetting through devenv /ResetSettings command.

enter image description here

I have also applied this answer : Visual Studio 2015 JavaScript Language Service stuck in an infinite loop of downloading non-existing referenced files

3条回答
女痞
2楼-- · 2019-03-11 21:41

If previous answer is not clear enough or tl;dr

add

/// <autosync enabled="false" />

to the top of _references.js file

查看更多
贼婆χ
3楼-- · 2019-03-11 21:43

I faced the same problem. I have installed the latest updates but the problem remained. Then, I disabled the 3rd party add-ons one by one. It now works without any problems. It is clear that some 3rd party add-ons have bugs causes visual studio malfunctioning.

Hope it works.

查看更多
Viruses.
4楼-- · 2019-03-11 21:48

I stopped the lagging by editing _references.js and setting autosync enabled="false" and removing a ton of 3rd-party (angular, ionic) library files from the listed references.

<autosync enabled="false" />

to the top of _references.js file

查看更多
登录 后发表回答