locked
JavaScript intellisense half working

    Question

  • I recently installed VS11 on Win8, and the intellisense is giving me some trouble;

    Whenever I Write 'WinJS.' it shows intellisense exactly as it should. However, if I write 'document.' it does not show any intellisense but instead show this tooltip:

    "intellisense was unable to determine an accurate completion list for this expression, The provided list contains all identifiers in the file"

    also, if i try to use jQuery - i don't get any intellisense - for stuff that worked with vs10.

    I tried pressing ctrl+shift+j and nothing.

    I tried "Tools-Options-Text Editor- JavaScript- IntelliSense - References" and added the jQuery file, and still nothing.

    Thanks!


    http://blogs.microsoft.co.il/blogs/eladkatz @ElatKt

    Monday, March 26, 2012 5:53 PM

Answers

  • If you don't mind setting up your references again, we can reset them entirely by deleting this key from the registry:

    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\JavaScriptLanguageService\ImplicitReferences

    By any chance did you install Visual Studio 11 Beta on a machine that previously had another version of Visual Studio 11?


    This posting is provided "as is" with no warranties, and confers no rights.

    • Marked as answer by Elad R Katz Monday, March 26, 2012 10:42 PM
    Monday, March 26, 2012 9:51 PM

All replies

  • If you open the output window and select to show the output from the JavaScript Language Service, are there any messages shown?
    Monday, March 26, 2012 8:48 PM
  • In Tools | Options | Text Editor | JavaScript | IntelliSense | References, what is the list of references in the Implicit (Windows) group?  domWindows.js should appear in the list.  If it does, can you verify that the path that it shows exists on disk?  If it doesn't, try fixing the path and closing and opening the project. 

    Thanks,
    Anson Horton [MSFT]


    This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, March 26, 2012 8:58 PM
  • I don't have a 'Implicit (Windows)' group, I only have 'Implicit' group - I assume this is what you're referring to;

    In that group I don't have domWindows.js - I only have sitetypes.js, dom.js, and jquery.js (that i put - that doesn't make jquery intellisense work as mentioned earlier).

    How do I add the reference you mentioned?

    ---- EDIT ----

    I've added domWindows.js. does nothing. restarted VS, still nothing.


    http://blogs.microsoft.co.il/blogs/eladkatz @ElatKt


    Monday, March 26, 2012 9:24 PM
  • If you don't mind setting up your references again, we can reset them entirely by deleting this key from the registry:

    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\JavaScriptLanguageService\ImplicitReferences

    By any chance did you install Visual Studio 11 Beta on a machine that previously had another version of Visual Studio 11?


    This posting is provided "as is" with no warranties, and confers no rights.

    • Marked as answer by Elad R Katz Monday, March 26, 2012 10:42 PM
    Monday, March 26, 2012 9:51 PM
  • Bryan - it says:

    12:36:28.4386: Reference group 'Implicit (Windows)' not found.


    http://blogs.microsoft.co.il/blogs/eladkatz @ElatKt

    Monday, March 26, 2012 10:36 PM
  • Yep - that did the trick. 
    and no - this was a clean install.

    http://blogs.microsoft.co.il/blogs/eladkatz @ElatKt

    Monday, March 26, 2012 10:40 PM