views:

19

answers:

0

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 callwant the function GetRandomNumber from within its own file (MyOtherFile.js) then I don't get the sumamry description when I type it there.

Any thoughts?

Thanks.