Title: Autocomplete/Intellisense Does Not Show All Options For Object Value · Issue #17127 · microsoft/TypeScript · GitHub
Open Graph Title: Autocomplete/Intellisense Does Not Show All Options For Object Value · Issue #17127 · microsoft/TypeScript
X Title: Autocomplete/Intellisense Does Not Show All Options For Object Value · Issue #17127 · microsoft/TypeScript
Description: From Jon (@JonnyBoy333) on July 12, 2017 15:31 VSCode Version: 1.14.0 OS Version: macOS 10.12.5 Autocomplete/intellisense is not showing all the options for an object that goes into a function parameter even though it is defined in a typ...
Open Graph Description: From Jon (@JonnyBoy333) on July 12, 2017 15:31 VSCode Version: 1.14.0 OS Version: macOS 10.12.5 Autocomplete/intellisense is not showing all the options for an object that goes into a function para...
X Description: From Jon (@JonnyBoy333) on July 12, 2017 15:31 VSCode Version: 1.14.0 OS Version: macOS 10.12.5 Autocomplete/intellisense is not showing all the options for an object that goes into a function para...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/17127
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Autocomplete/Intellisense Does Not Show All Options For Object Value","articleBody":"_From @JonnyBoy333 on July 12, 2017 15:31_\n\n\u003c!-- Use Help > Report Issues to prefill these. -->\r\n- VSCode Version: 1.14.0\r\n- OS Version: macOS 10.12.5\r\n\r\nAutocomplete/intellisense is not showing all the options for an object that goes into a function parameter even though it is defined in a typescript interface.\r\n\r\nExample:\r\n```\r\ninterface Fruit {\r\n /** Returns a fruit color. */\r\n getFruitColor(options: { fruit: 'apple' | 'orange' }): string;\r\n getFruitColor(options: { fruit: 'banana' }): boolean;\r\n}\r\n\r\nfunction testFunction (fruit: Fruit) {\r\n let color = fruit.getFruitColor({ fruit: '' }); // \u003c-- Autocomplete only shows apple and orange as options and not banana\r\n}\r\n```\r\n\r\n\r\nIt appears that only the first method's options object is getting indexed by VS autocomplete but not the second one.\r\n\r\nReproduces without extensions: Yes\n\n_Copied from original issue: Microsoft/vscode#30526_","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2017-07-12T16:49:02Z","url":"https://github.com/microsoft/TypeScript/issues/17127"}
| 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:54a68b5b-dcd5-80d9-607a-05a1ce6a5202 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C900:34DB8F:22DFACA:2E9B42A:6B019A9E |
| html-safe-nonce | 5bc7d7cd2cc07aa9147703ebdf1e5e1c0b62b255d4f2859c43ec6ffcb8f402c2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTAwOjM0REI4RjoyMkRGQUNBOjJFOUI0MkE6NkIwMTlBOUUiLCJ2aXNpdG9yX2lkIjoiNTMyNzE3MzEyNDQzNTg0Mzc0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f60e54dfe83f5cb2290d01800c21c4016a14309fd83d677c4194f75416b73757 |
| hovercard-subject-tag | issue:242446441 |
| 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/17127/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8b6de5730e2278b86999991a5d460444b59644a4a366d95441c59912c5ab24da/microsoft/TypeScript/issues/17127 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b6de5730e2278b86999991a5d460444b59644a4a366d95441c59912c5ab24da/microsoft/TypeScript/issues/17127 |
| og:image:alt | From Jon (@JonnyBoy333) on July 12, 2017 15:31 VSCode Version: 1.14.0 OS Version: macOS 10.12.5 Autocomplete/intellisense is not showing all the options for an object that goes into a function para... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mjbvz |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width