Title: IntelliSense / JSDoc - function declaration not same as function expression · Issue #7586 · microsoft/TypeScript · GitHub
Open Graph Title: IntelliSense / JSDoc - function declaration not same as function expression · Issue #7586 · microsoft/TypeScript
X Title: IntelliSense / JSDoc - function declaration not same as function expression · Issue #7586 · microsoft/TypeScript
Description: 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 defin...
Open Graph Description: 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 infor...
X Description: 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 infor...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/7586
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IntelliSense / JSDoc - function declaration not same as function expression","articleBody":"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.\n\nThis was [raised](https://github.com/Microsoft/vscode/issues/3842#issuecomment-194428430) in Microsoft/vscode#3842. After consideration, @egamma [declared](https://github.com/Microsoft/vscode/issues/3842#issuecomment-198448374) this to be a TypeScript issue.\n\n**TypeScript Version:** \n\n1.8.2 or 1.8.9\n\n**Code**\n\n``` js\n/**\n * Transform a string to upper-case.\n * @param {string} value The string to be transformed.\n * @returns {string} The upper-cased string.\n */\nfunction upper1(value) {\n return value.toUpperCase();\n}\n\n\n/**\n * Transform a string to upper-case.\n * @param {string} value The string to be transformed.\n * @returns {string} The upper-cased string.\n */\nconst upper2 = function(value) {\n return value.toUpperCase();\n};\n\n\nconst v1 = upper1('hey');\n\nconst v2 = upper2('ho');\n```\n\n**Expected behavior:**\n\nIntelliSense with JSDoc works as expected when referencing a function defined by a declaration:\n\nAnd hover:\n\n\n**Actual behavior:** \n\nIntelliSense displays limited information when referencing a function defined by an expression:\n\nAnd hover:\n\n","author":{"url":"https://github.com/LittleBrainz","@type":"Person","name":"LittleBrainz"},"datePublished":"2016-03-18T19:03:16Z","url":"https://github.com/microsoft/TypeScript/issues/7586"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:09e0654e-d66c-8cb7-4681-245e47e34f05 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF5C:129B6F:60E686:813909:6B00A951 |
| html-safe-nonce | 5385021c3ae8bd94ae650287d61f615e27040458828a6d184942c8f10c3b164c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjVDOjEyOUI2Rjo2MEU2ODY6ODEzOTA5OjZCMDBBOTUxIiwidmlzaXRvcl9pZCI6IjM4ODczNDkwODAwNjE0MjE5MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b0fd34b5cdc8dec4fabad06d2529cbf344c87b165f2941f8a38007e3974bf7a6 |
| hovercard-subject-tag | issue:141952348 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/7586/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c94c6abb653678692a13e31c452f60d84b5ada7c788bb985848d00ca65ec214b/microsoft/TypeScript/issues/7586 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c94c6abb653678692a13e31c452f60d84b5ada7c788bb985848d00ca65ec214b/microsoft/TypeScript/issues/7586 |
| og:image:alt | 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 infor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LittleBrainz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f575159976167242d488c0b062eb355c4e198b7 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width