JQuery UI disrupts Visual Studio 2015 Intellisense

I find a frustrating problem with intellisense JavaScript where, if I include jQuery UI in my file _references.js, I lose all intellisense JavaScript. Does anyone know if there is a way to fix this problem without removing the jQuery user interface from _references.js?

Update

  • I know that more files in a file _references.jswill slow down, which makes sense. Nevertheless, I have projects at work that include a lot more files (about 600) without encryption problems, and my project is 20. Therefore, this is not a question of “too many files”.
  • I pulled my project from Git to a separate computer (therefore a separate installation of VS15) and tried to include the jQuery user interface file, and this still caused the loss of intellisense in my project.
    • This may not be an installation problem, as other working projects include jQuery UI, and there are no problems with intellisense.
  • I understand that I can manually control _references.jsto complete the task, but I would like to fix it completely, since I hate the need to add information twice (create a JS file and then update _refernces.js).

With this new information, I think it should be some kind of deeper problem in my project setup, which is causing the problem, as opposed to the problem with the installation or the specifics of JQuery UI. Does anyone have any idea what settings in the .sln or .csproj file might cause JS Intellisense problems?

+4
source share
5 answers

For those experiencing this problem, I found that using jQuery 3.x causes instellisense to fail when the jQuery user interface is included in _references.js. My solution was to use NuGet to return to version 2.2.4, and everything started working fine again.

+5
source

. , , , - jquery UI. Intellisense , , , , , . , , , jquery . , , _references.js, , .

_references script, intellisense , , script . , intellisense , .

+1

, , .js ?

/// <reference path="/scripts/jquery-3.1.1.js" />

, , NuGet jquery . jquery intellisense , ( , ).

0

! jquery-ui-1.12.1.js ( ) _jquery-ui-1.12.1.js. , jQuery 3 _references.js, intellisense . script BundleConfig.cs, !

0

:

_references.js:

  • JQuery-UI JQuery

:

/// <autosync enabled="false" />
/// <reference path="jquery-ui-1.12.1.js" />
/// <reference path="jquery-3.3.1.js" />

:

  • You will need to repeat step 1 each time you update the links to JavaScript (right-click on _references.js to update the links in Visual Studio).
0
source

Source: https://habr.com/ru/post/1657828/


All Articles