JavaScript Intellisene Problem?

Posted by James Wiseman on Stack Overflow See other posts from Stack Overflow or by James Wiseman
Published on 2010-04-28T15:09:44Z Indexed on 2010/04/28 15:13 UTC
Read the original article Hit count: 370

I've got an issue with JavaScript intellisense in Visual Web Developer 2008, which I'm starting to believe is "just one of those things", but thought I'd ask here just to check.

I have a file MyOtherFile.js with a function GetRandomNumber() defined like so:

function GetRandomNumber() {
    /// <summary>
    /// Summary description for GetRandomNumber
    /// </summary>

    return Math.random();
}

When I reference this from another file, screen.js (/// <reference path="MyOtherFile.js" />) I get the intellisense as expected with the summary text as above.

If, however, I call the function GetRandomNumber from within its own file (MyOtherFile.js) then I don't get the sumamry description.

Any thoughts?

Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-intellisense