Title: Regression in autocompletion on spread generic arguments · Issue #54572 · microsoft/TypeScript · GitHub
Open Graph Title: Regression in autocompletion on spread generic arguments · Issue #54572 · microsoft/TypeScript
X Title: Regression in autocompletion on spread generic arguments · Issue #54572 · microsoft/TypeScript
Description: Bug Report 🔎 Search Terms autocomplete, regression 🕗 Version & Regression Information This changed between versions 5.0.4 and 5.1.3 ⏯ Playground Link Playground link with relevant code 💻 Code function fn Open Graph Description: Bug Report 🔎 Search Terms autocomplete, regression 🕗 Version & Regression Information This changed between versions 5.0.4 and 5.1.3 ⏯ Playground Link Playground link with relevant code 💻 Code funct...
X Description: Bug Report 🔎 Search Terms autocomplete, regression 🕗 Version & Regression Information This changed between versions 5.0.4 and 5.1.3 ⏯ Playground Link Playground link with relevant code 💻 Code f...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/54572
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression in autocompletion on spread generic arguments","articleBody":"# Bug Report\r\n\r\n\u003c!--\r\n Please fill in each section completely. Thank you!\r\n-->\r\n\r\n### 🔎 Search Terms\r\n\r\nautocomplete, regression\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n- This changed between versions **5.0.4** and **5.1.3**\r\n\r\n### ⏯ Playground Link\r\n\r\n[Playground link with relevant code](https://www.typescriptlang.org/play?ts=5.1.3#code/GYVwdgxgLglg9mABMMAeAKogpgDylsAEwGdEAKAcgDcBDAGxCwEYLEAfRa+xgJlY64MsAZgoBKANoBdAHxkAdItpDiALkTox6zAG9EAJyxQQ+pMsbEA3IgC+AKDsB6R4gCSSAKzym84QBpEMDhEZRhCRBoQKDgAWwAHOiN4JDI4fQi6BABzRAB3GCgACwMaIliAmEg0w2gQ7ixiMQCAIyjESsQvAAZ5ABY6oSY2cyweYfrhAYsIwwiouAhYhKMscMX9Gqg6AE87RbBiKCnmRABeZDBKcUs9hEPjnjOLyhGWAIpruyA)\r\n\r\n### 💻 Code\r\n\r\n```typescript\r\nfunction fn\u003cT extends ('value1' | 'value2' | 'value3')[]>(...values: T): T { return values; }\r\n\r\nconst value1 = fn('');\r\nconst value2 = fn('value1', '');\r\n```\r\n\r\n### 🙁 Actual behavior\r\n\r\nIt should autocomplete inside both '' (empty string) places with value1|value2|value3 possible values, however it shows incorrect (kind of randomly gathered) options. For eg.:\r\n\r\n\r\n\r\n\r\n### 🙂 Expected behavior\r\n\r\nIt should show only value1 / value2 / value3 options (as it does correctly with 5.0.4 and before), like this:\r\n\r\n\r\n\r\n\r\nThis issue could be related to (https://github.com/microsoft/TypeScript/issues/53555) and (https://github.com/microsoft/TypeScript/issues/52726) but I think my case is more basic, and appeared only in the latest (5.1.3) version of TS. (couldn't test if versions between 5.1.0 and 5.1.3 were affected or not, I could test only 5.1.3).","author":{"url":"https://github.com/dexx086","@type":"Person","name":"dexx086"},"datePublished":"2023-06-08T08:12:09Z","url":"https://github.com/microsoft/TypeScript/issues/54572"}
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:c11815dc-187d-0384-fdee-13c12bd46293 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id 8F5E:FC5BE:1E9227B:2889A1E:6B017119 html-safe-nonce 197a2ca44c09f0966e0b2811cc46ffd5cd29773e7a3d729d66f56574ea21236f visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjVFOkZDNUJFOjFFOTIyN0I6Mjg4OUExRTo2QjAxNzExOSIsInZpc2l0b3JfaWQiOiIzNDE1Mzg2NjA0MzUxNjE1MjU3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac 29e1ae279b267e1406eb460f605311deaf65c5e4af05ffdb40bc790394d06970 hovercard-subject-tag issue:1747341474 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/54572/issue_layout twitter:image https://opengraph.githubassets.com/8d5bd9c7b7f8bc51f7404ea16436ca4212717742f3621cab9fd66ecc3e23ea68/microsoft/TypeScript/issues/54572 twitter:card summary_large_image og:image https://opengraph.githubassets.com/8d5bd9c7b7f8bc51f7404ea16436ca4212717742f3621cab9fd66ecc3e23ea68/microsoft/TypeScript/issues/54572 og:image:alt Bug Report 🔎 Search Terms autocomplete, regression 🕗 Version & Regression Information This changed between versions 5.0.4 and 5.1.3 ⏯ Playground Link Playground link with relevant code 💻 Code funct... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username dexx086 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
URLs of crawlers that visited me.