Visual Studio 2015 JavaScript 语言服务陷入下载不存在的引用文件的无限循环中 [英] Visual Studio 2015 JavaScript Language Service stuck in an infinite loop of downloading non-existing referenced files
问题描述
我在 Visual Studio 2015 中有一个使用 Firebase 的 Ionic 项目.打开项目后,de JavaScript 语言服务开始从 https://auth.firebase.com/
下载一些引用文件",只是乱码,但一直试图一遍又一遍地下载相同的东西再次,CPU 发热同时发疯.见图片.任何想法如何打破这个无限循环?
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?
推荐答案
我咨询了我们的语言服务团队,这是 VS 2013/2015 中的一个已知问题.问题是您的项目运行了一些代码以使用 Firebase 进行身份验证,并且该代码最终会执行一些动态评估,将脚本元素添加到 DOM.
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.
VS 语言服务每次对智能感知进行评估时都会运行此代码,这在您键入时经常发生.这会导致 CPU 和内存激增.
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.
更新:您可以通过在 HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio14.0JavaScriptLanguageService
下添加一个名为 的新
值为 0.DWORD
注册表值来临时解决该问题>MaximumScriptLoaderReferencesToLoad
UPDATE: you might be able to temporarily fix the issue by adding a new DWORD
registry value under HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio14.0JavaScriptLanguageService
called MaximumScriptLoaderReferencesToLoad
with a value of 0.
这篇关于Visual Studio 2015 JavaScript 语言服务陷入下载不存在的引用文件的无限循环中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!