You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the recent February release of VS Code 0.10.11 (with TypeScript 1.8.2), IntelliSense with JSDoc works as expected when referencing a function defined by a declaration, but displays limited information when referencing a function defined by an expression.
/** * Transform a string to upper-case. * @param {string} value The string to be transformed. * @returns {string} The upper-cased string. */functionupper1(value){returnvalue.toUpperCase();}/** * Transform a string to upper-case. * @param {string} value The string to be transformed. * @returns {string} The upper-cased string. */constupper2=function(value){returnvalue.toUpperCase();};constv1=upper1('hey');constv2=upper2('ho');
Expected behavior:
IntelliSense with JSDoc works as expected when referencing a function defined by a declaration:
And hover:
Actual behavior:
IntelliSense displays limited information when referencing a function defined by an expression:
And hover:
The text was updated successfully, but these errors were encountered:
In the recent February release of VS Code 0.10.11 (with TypeScript 1.8.2), IntelliSense with JSDoc works as expected when referencing a function defined by a declaration, but displays limited information when referencing a function defined by an expression.
This was raised in microsoft/vscode#3842. After consideration, @egamma declared this to be a TypeScript issue.
TypeScript Version:
1.8.2 or 1.8.9
Code
Expected behavior:
IntelliSense with JSDoc works as expected when referencing a function defined by a declaration:
And hover:
Actual behavior:
IntelliSense displays limited information when referencing a function defined by an expression:
And hover:
The text was updated successfully, but these errors were encountered: