Can't stop Visual Studio 2015 lagging for seconds in JS files saying “JavaScript language service is processing your request in the background…”?

╄→гoц情女王★ 提交于 2019-12-03 08:22:01

问题


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.

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


回答1:


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




回答2:


If previous answer is not clear enough or tl;dr

add

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

to the top of _references.js file




回答3:


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.



来源:https://stackoverflow.com/questions/33540028/cant-stop-visual-studio-2015-lagging-for-seconds-in-js-files-saying-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!