Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 JavaScript Language Service stuck in an infinite loop of downloading non-existing referenced files

I have an Ionic project in Visual Studio 2015 which uses Firebase. After opening the project, de JavaScript language service starts to download some "referenced file" from https://auth.firebase.com/, only gets gibberish but keeps trying to download the same thing over and over again, CPU heat going crazy meanwhile. See image. Any ideas how to break out of this infinite loop?

enter image description here

like image 912
Adam Szabo Avatar asked Jul 31 '15 18:07

Adam Szabo


1 Answers

I checked with our language service team and this is a known issue in VS 2013 / 2015. The problem is that your project runs some code to authenticate with Firebase, and that code ends up doing some dynamic evaluation that adds a script element to the DOM.

The VS language service runs this code every time it does an evaluation for intellisense, which happens frequently while you are typing. This causes the CPU and memory to spike.

We have a bug to track this and are working on a solution. In the meantime, you can probably mitigate the issue by commenting out the authentication code while you're developing.

Sorry for the trouble. Hope that helps.

UPDATE: you might be able to temporarily fix the issue by adding a new DWORD registry value under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0\JavaScriptLanguageService called MaximumScriptLoaderReferencesToLoad with a value of 0.

like image 141
Michael Braude Avatar answered Nov 15 '22 16:11

Michael Braude