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?
问题:
回答1:
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.
回答2:
Just close VS and restart it as Administrator. Hope this resolve the problem.