Title: Should provide object member completions when missing commas; also should insert missing commas · Issue #52604 · microsoft/TypeScript · GitHub
Open Graph Title: Should provide object member completions when missing commas; also should insert missing commas · Issue #52604 · microsoft/TypeScript
X Title: Should provide object member completions when missing commas; also should insert missing commas · Issue #52604 · microsoft/TypeScript
Description: Today, if you try to request completions after an object literal element that has no comma, you'll get no useful contextual completions. interface ColorPalette { primary?: string; secondary?: string; } let colors: ColorPalette = { primar...
Open Graph Description: Today, if you try to request completions after an object literal element that has no comma, you'll get no useful contextual completions. interface ColorPalette { primary?: string; secondary?: strin...
X Description: Today, if you try to request completions after an object literal element that has no comma, you'll get no useful contextual completions. interface ColorPalette { primary?: string; secondary?: s...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/52604
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should provide object member completions when missing commas; also should insert missing commas","articleBody":"Today, if you try to request completions after an object literal element that has no comma, you'll get no useful contextual completions.\r\n\r\n```ts\r\ninterface ColorPalette {\r\n primary?: string;\r\n secondary?: string;\r\n}\r\n\r\nlet colors: ColorPalette = {\r\n primary: \"red\"\r\n /*$*/\r\n};\r\n```\r\n\r\n\r\n\r\n```ts\r\ninterface ColorPalette {\r\n primary?: string;\r\n secondary?: string;\r\n}\r\n\r\nlet colors: ColorPalette = {\r\n primary: \"red\"\r\n seconda/*$*/\r\n};\r\n```\r\n\r\n\r\n\r\nMy proposal is that we do something similar to what we do in class elements, but maybe a little smarter.\r\n\r\nWe should continue to provide contextual completions, *and also*, those completions should automatically insert the `,` on the previous line.","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2023-02-04T01:09:44Z","url":"https://github.com/microsoft/TypeScript/issues/52604"}
| 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:bdf3fd00-d131-4c06-b704-f102a0db0e02 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A68:1CEA6F:C0C041:10033F2:6B00F200 |
| html-safe-nonce | 0104c0db16d60b67557c28c559173c289eadd8bb3f1739e7419ba015d1b9ae13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTY4OjFDRUE2RjpDMEMwNDE6MTAwMzNGMjo2QjAwRjIwMCIsInZpc2l0b3JfaWQiOiI1NzY2ODY5NzA5ODc0MDY1OTIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ee3952f6735a7c82f0f362dc0c759370dec6f2e55df81990e3f23963df6f6013 |
| hovercard-subject-tag | issue:1570684204 |
| 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/52604/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a6c36a8782a58f02ffb292ed56b0b668aeb6f8a303581fafe738438b6e4318c/microsoft/TypeScript/issues/52604 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a6c36a8782a58f02ffb292ed56b0b668aeb6f8a303581fafe738438b6e4318c/microsoft/TypeScript/issues/52604 |
| og:image:alt | Today, if you try to request completions after an object literal element that has no comma, you'll get no useful contextual completions. interface ColorPalette { primary?: string; secondary?: strin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width