[英]Does Visual Studio 2017 support a _references.js file?
my JavaScript Intellisense is broken in Visual Studio 2017. I know my _references.js file is correct as JS Intellisense works fine in VS2015. 我的JavaScript Intellisense在Visual Studio 2017中被破坏了。我知道我的_references.js文件是正确的,因为JS Intellisense在VS2015中工作正常。
Any help is greatly appreciated! 任何帮助是极大的赞赏!
You no longer need a _references.js
file. 您不再需要
_references.js
文件。 IntelliSense in VS 2017 works a little differently than it used to. VS 2017中的IntelliSense与以前的工作方式略有不同。
Are you trying to use a specific library or just get IntelliSense from your own code? 您是尝试使用特定的库还是从您自己的代码中获取IntelliSense? If it's a library, it needs to have a
.d.ts
file. 如果它是一个库,它需要一个
.d.ts
文件。 If it is your own code, it might depend on if you are using a module system or not. 如果它是您自己的代码,则可能取决于您是否使用模块系统。
You can read more about how it works here: https://docs.microsoft.com/en-us/visualstudio/ide/javascript-intellisense 您可以在此处详细了解它的工作原理: https : //docs.microsoft.com/en-us/visualstudio/ide/javascript-intellisense
It's a feature not bug. 这是一个功能而不是bug。 Microsoft force developer to use modular-based JavaScript instead of prototype-based JavaScript.
Microsoft强制开发人员使用基于模块的JavaScript而不是基于原型的JavaScript。 Your global object or method extension for built-in object should not work any more.
内置对象的全局对象或方法扩展不再适用。 Thanks to Microsoft.
感谢微软。
https://developercommunity.visualstudio.com/content/problem/8733/both-newold-javascript-language-service-doesnt-sup.html https://developercommunity.visualstudio.com/content/problem/8733/both-newold-javascript-language-service-doesnt-sup.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.