Title: JSDoc syntax for optional parameter causes description to disappear from intellisense · Issue #9971 · microsoft/TypeScript · GitHub
Open Graph Title: JSDoc syntax for optional parameter causes description to disappear from intellisense · Issue #9971 · microsoft/TypeScript
X Title: JSDoc syntax for optional parameter causes description to disappear from intellisense · Issue #9971 · microsoft/TypeScript
Description: TypeScript Version: within VS Code 1.3.1 JSDoc syntax for optional parameters (e.g. {number} [parameterName] Description) seems to cause the parameter description to not get picked up for intellisense. Closure Compiler syntax (e.g. {numb...
Open Graph Description: TypeScript Version: within VS Code 1.3.1 JSDoc syntax for optional parameters (e.g. {number} [parameterName] Description) seems to cause the parameter description to not get picked up for intellise...
X Description: TypeScript Version: within VS Code 1.3.1 JSDoc syntax for optional parameters (e.g. {number} [parameterName] Description) seems to cause the parameter description to not get picked up for intellise...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/9971
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JSDoc syntax for optional parameter causes description to disappear from intellisense","articleBody":"\u003c!-- BUGS: Please use this template. -->\n\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\n\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\n\n**TypeScript Version:** within VS Code 1.3.1\n\nJSDoc syntax for optional parameters (e.g. `{number} [parameterName] Description`) seems to cause the parameter description to not get picked up for intellisense.\n\nClosure Compiler syntax (e.g. `{number=} parameterName Description`) does not cause the same problem.\n\n**Code**\n\n``` js\n/**\n * @param {number} [x] Description\n */\nfunction foo (x) { }\n```\n\n**Expected behavior:**\n\nHovering over `x` in the function declaration shows \"Description\", like this:\n\n\n\n**Actual behavior:** \n\n\n","author":{"url":"https://github.com/rummelsworth","@type":"Person","name":"rummelsworth"},"datePublished":"2016-07-26T22:04:45Z","url":"https://github.com/microsoft/TypeScript/issues/9971"}
| 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:5615313e-1a20-6493-24a7-7fa5b27bf72c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9C2:17FB7:3412A8:41A199:6B0103AC |
| html-safe-nonce | f1ae2036a326c08ae1f0f872e8115ea50b76f7ae8d8f5a4688c4a2cead0abcf0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUMyOjE3RkI3OjM0MTJBODo0MUExOTk6NkIwMTAzQUMiLCJ2aXNpdG9yX2lkIjoiMjc0MzY0MjQ3NTAzMjgwNjMxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 44ae3e24fc9f4268dc5d69d58ebbe9040e0121a2f2de84a1098b947cf83a0d59 |
| hovercard-subject-tag | issue:167723368 |
| 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/9971/issue_layout |
| twitter:image | https://opengraph.githubassets.com/949a10b92bf9d2e785ab18e63c04fe973ee19b3db592a3fdc290b7c922e64b17/microsoft/TypeScript/issues/9971 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/949a10b92bf9d2e785ab18e63c04fe973ee19b3db592a3fdc290b7c922e64b17/microsoft/TypeScript/issues/9971 |
| og:image:alt | TypeScript Version: within VS Code 1.3.1 JSDoc syntax for optional parameters (e.g. {number} [parameterName] Description) seems to cause the parameter description to not get picked up for intellise... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rummelsworth |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width