0

In VS 2012, intellisense of jquery works but not my custom function, Here is a simple example,

window.g = {};

//#region Public functions

/// <signature>
///   <summary>This function will return the current page mode.</summary>
///   <returns type="bool" />
/// </signature>
g.isPageInEditMode = function () {
    return true;
}

This function does shows me summary.

1
  • Did you try putting the signature inside the function? In some circumstances it may be cleaner than creating *.intellisense.js for each script file in your solution. Commented Feb 27, 2013 at 11:34

1 Answer 1

1

Putting these special comments in a separate file called XXX.intellisense.js solved the issue,

intellisense.annotate(g, {
    'isPageInEditMode': function () {
        /// <signature>
        ///   <summary>This function will return the current page mode.</summary>
        ///   <returns type="Boolean" />
        /// </signature>
    }
});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.