GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — IntelliSense / JSDoc - function declaration not same as function expression · Issue #7586 · microsoft/TypeScript Closed Closed Copy link Labels BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue Milestone DescriptionIn 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, Erich Gamma (@egamma) declared this to be a TypeScript issue. TypeScript Version: 1.8.2 or 1.8.9 Code /** * Transform a string to upper-case. * @param {string} value The string to be transformed. * @returns {string} The upper-cased string. */ function upper1(value) { return value.toUpperCase(); } /** * Transform a string to upper-case. * @param {string} value The string to be transformed. * @returns {string} The upper-cased string. */ const upper2 = function(value) { return value.toUpperCase(); }; const v1 = upper1('hey'); const v2 = upper2('ho'); Expected behavior: IntelliSense with JSDoc works as expected when referencing a function defined by a declaration: Actual behavior: IntelliSense displays limited information when referencing a function defined by an expression: Activity
MetadataMetadataAssigneesLabelsBugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |