Visual Studio 2015 JavaScript语言服务陷入无限循环下载不存在的引用文件 [英] Visual Studio 2015 JavaScript Language Service stuck in an infinite loop of downloading non-existing referenced files

查看:4344
本文介绍了Visual Studio 2015 JavaScript语言服务陷入无限循环下载不存在的引用文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在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,该代码结束

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语言服务在每次对Intellisense进行评估时都运行此代码,这种情况频繁发生,而您正在输入。这会导致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.

我们有一个bug来跟踪这个问题,正在开发一个解决方案。在此期间,您可以通过在开发过程中注释身份验证代码来缓解此问题。

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.

更新:您可以通过添加一个新的 DWORD 注册表值来暂时解决问题在 HKEY_CURRENT_USER\Software \Microsoft\VisualStudio\14.0\JavaScriptLanguageService 下调用 MaximumScriptLoaderReferencesToLoad ,值为0 。

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.

这篇关于Visual Studio 2015 JavaScript语言服务陷入无限循环下载不存在的引用文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆