Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 480
ahmadalibaloch Avatar asked Nov 05 '15 08:11

ahmadalibaloch


2 Answers

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

like image 181
Chris Hutchinson Avatar answered Nov 04 '22 00:11

Chris Hutchinson


If previous answer is not clear enough or tl;dr

add

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

to the top of _references.js file

like image 6
Tomino Avatar answered Nov 04 '22 00:11

Tomino