Visual Studio 2008 jQuery IntelliSense sporadically fails by restarting VS fixes

From the very beginning, this is not your standard "I cannot get IntelliSense javascript to work in Visual Studio." For the record:

  • I am using Visual Studio 2008
  • I installed SP 1
  • I installed the hotfix for the documentation files -vsdoc.js KB958502

I am developing a set of interconnected jQuery plugins for packaging as resources in a class library. Therefore, in the directory I have (as an example):

  • Jquery-vsdoc.js
  • core.js
  • plug1.js
  • plug2.js

In core.js, I have the following at the top of the file:

/// <reference path="jquery-vsdoc.js" />

Then in each of the # .js traffic jams I:

/// <reference path="jquery-vsdoc.js" />
/// <reference path="core.js" />

IntelliSense , core.js . , XML- Ctrl-Shift-J " JScript IntelliSense: script IntelliSense - script". , script !

jquery-vsdoc.js Comment Version 1.3.2b ( , ) http://jqueryjs.googlecode.com/files/jquery-1.3.2-vsdoc2.js. , , .

? Visual Studio ( ) .

+3
4

- IntelliSense?

IntelliSense 15 . , IntelliSense . script , -. - ( , ). , - , 15000.

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\HTML \JsFailsafeTimeout HKEY_CURRENT_USER\Software\Microsoft\VWDExpress\9,0\HTML \JsFailsafeTimeout

0

reset ?

. , , "typelibbuilder.exe", , Ctrl-Shift-J?

, VS. ( ) , Ctrl-Shift-J ( , ). , VS typelibbuilder - .

SP1 "-vsdoc". "foo.js" "foo-vsdoc.js", VS vsdoc intellisense. , .

, , Javascript Intellisense Visual Studio 2010. - 1 MSDN ( -, ).

, http://connect.microsoft.com/.

0

, , ​​VS 2008 JS intellisense:

jQuery , JS, :

'XmlHttpRequest undefined' :

return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();

, JS intellisense jQuery ( , , ). window.ActiveXObject null , " XMLHttpRequest()", .

, , IE, . :

    xhr: function()
    {
        // hack to fix VS 2008 intellisense... note this breaks any browser
        // except IE
        var objXhr = { open: function() { },
            setRequestHeader: function() { } 
        };

        return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : objXhr;
    },

intellisense .

0

JavaScript intellisense Visual Studio.

SP1 , JavaScript intellisense.
, ...

"".

Go to the next node in the left sidebar:
Text Editor :: JScript :: General

Disable the following parameters (in the Application Completion group):
* Automatic list of participants
* Parameter information

0
source

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


All Articles