Title: tsserver: completion for union type of literal and string is broken from 2.1 · Issue #12687 · microsoft/TypeScript · GitHub
Open Graph Title: tsserver: completion for union type of literal and string is broken from 2.1 · Issue #12687 · microsoft/TypeScript
X Title: tsserver: completion for union type of literal and string is broken from 2.1 · Issue #12687 · microsoft/TypeScript
Description: TypeScript Version: 2.1.1 Code type Test = "foo" | "bar" | string; const x: Test = "/* CURSOR POSITION */"; Expected behavior: tsserver returns "foo" and "bar" as completion candidates. Actual behavior: 2.0.10 behaves as expected. 2.1.1 ...
Open Graph Description: TypeScript Version: 2.1.1 Code type Test = "foo" | "bar" | string; const x: Test = "/* CURSOR POSITION */"; Expected behavior: tsserver returns "foo" and "bar" as completion candidates. Actual beha...
X Description: TypeScript Version: 2.1.1 Code type Test = "foo" | "bar" | string; const x: Test = "/* CURSOR POSITION */"; Expected behavior: tsserver returns "foo" and &qu...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/12687
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tsserver: completion for union type of literal and string is broken from 2.1","articleBody":"\u003c!-- BUGS: Please use this template. --\u003e\r\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript --\u003e\r\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md --\u003e\r\n\r\n**TypeScript Version:** 2.1.1\r\n\r\n**Code**\r\n\r\n```ts\r\ntype Test = \"foo\" | \"bar\" | string;\r\nconst x: Test = \"/* CURSOR POSITION */\";\r\n```\r\n\r\n**Expected behavior:**\r\ntsserver returns \"foo\" and \"bar\" as completion candidates.\r\n\r\n**Actual behavior:**\r\n2.0.10 behaves as expected.\r\n2.1.1 returns no candidates.\r\n","author":{"url":"https://github.com/wonderful-panda","@type":"Person","name":"wonderful-panda"},"datePublished":"2016-12-06T13:16:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/12687/TypeScript/issues/12687"}
| 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:23fc196a-021e-94aa-5c99-c63533804d36 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BFA2:35E4E2:16A0145:1F2A8A5:6A5F2599 |
| html-safe-nonce | fdd1e72829efbb85a8a05a6d92fc95b9f06bf24d90a56f42436a49bc2ccbfc1c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkEyOjM1RTRFMjoxNkEwMTQ1OjFGMkE4QTU6NkE1RjI1OTkiLCJ2aXNpdG9yX2lkIjoiNDE0MzYzMzUxNTIyNDcwNDQwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bba5c3a03afec1331a47e2ddb8aa08799b5977b204858cf62ac46c524222fdb8 |
| hovercard-subject-tag | issue:193769426 |
| 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/12687/issue_layout |
| twitter:image | https://opengraph.githubassets.com/19b2936bfe7bacdc3209eab33b728353cc0ad288c3c865e43dc58a9aa288c2d6/microsoft/TypeScript/issues/12687 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/19b2936bfe7bacdc3209eab33b728353cc0ad288c3c865e43dc58a9aa288c2d6/microsoft/TypeScript/issues/12687 |
| og:image:alt | TypeScript Version: 2.1.1 Code type Test = "foo" | "bar" | string; const x: Test = "/* CURSOR POSITION */"; Expected behavior: tsserver returns "foo" and "bar" as completion candidates. Actual beha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wonderful-panda |
| hostname | github.com |
| expected-hostname | github.com |
| None | af57322612a2efc3d6fee860947245ffbb465e4e3f9eb5dfefc0f770217aa0ca |
| 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 | 93fabb5edc1b64676979fa226fed14ab56431f54 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width