Title: No completion for string literal in binary equality · Issue #13789 · microsoft/TypeScript · GitHub
Open Graph Title: No completion for string literal in binary equality · Issue #13789 · microsoft/TypeScript
X Title: No completion for string literal in binary equality · Issue #13789 · microsoft/TypeScript
Description: TypeScript Version: nightly (31/1/2017) Code type As = 'arf' | 'abacus' | 'abaddon'; let a: As; if (a === 'ab/**/ Expected behavior: Two line completion: ["abacus", "abaddon"]. Actual behavior: File-based symbol completion. Notes: This w...
Open Graph Description: TypeScript Version: nightly (31/1/2017) Code type As = 'arf' | 'abacus' | 'abaddon'; let a: As; if (a === 'ab/**/ Expected behavior: Two line completion: ["abacus", "abaddon"]. Actual behavior: Fil...
X Description: TypeScript Version: nightly (31/1/2017) Code type As = 'arf' | 'abacus' | 'abaddon'; let a: As; if (a === 'ab/**/ Expected behavior: Two line completion: ["abacus&q...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/13789
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No completion for string literal in binary equality","articleBody":"**TypeScript Version:** nightly (31/1/2017)\r\n\r\n**Code**\r\n\r\n```ts\r\ntype As = 'arf' | 'abacus' | 'abaddon';\r\nlet a: As;\r\nif (a === 'ab/**/\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nTwo line completion: [\"abacus\", \"abaddon\"].\r\n\r\n**Actual behavior:**\r\nFile-based symbol completion.\r\n\r\nNotes:\r\n1. This works for assignments (`a = 'ab/**/`) and function calls (`f('ab/**/)`) already. It should also work for comparisons to make the discriminated union pattern work better.\r\n2. I only tried this in VS Code. But it should probably work anywhere that supports ' as a completion character.","author":{"url":"https://github.com/sandersn","@type":"Person","name":"sandersn"},"datePublished":"2017-01-31T17:22:49Z","url":"https://github.com/microsoft/TypeScript/issues/13789"}
| 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:33ebe127-1881-ef3b-3e95-3db0e87f2666 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D010:1C0F0F:26B536B:3222839:6B040073 |
| html-safe-nonce | d1860fba9adf9b07a103118d36b3b32a4f2a67904a58d35572f7d35828580927 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDEwOjFDMEYwRjoyNkI1MzZCOjMyMjI4Mzk6NkIwNDAwNzMiLCJ2aXNpdG9yX2lkIjoiMTE0OTI2NTI0Nzk4NzgyNjgwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 045385d2be1e3c1d61de95407bb8ab13bd90cdc4622072e63d96c9fa1d42d486 |
| hovercard-subject-tag | issue:204364586 |
| 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/13789/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e0e38097fcfae66579df7c70605974c8632cf160031482e7adf8a961a6661537/microsoft/TypeScript/issues/13789 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0e38097fcfae66579df7c70605974c8632cf160031482e7adf8a961a6661537/microsoft/TypeScript/issues/13789 |
| og:image:alt | TypeScript Version: nightly (31/1/2017) Code type As = 'arf' | 'abacus' | 'abaddon'; let a: As; if (a === 'ab/**/ Expected behavior: Two line completion: ["abacus", "abaddon"]. Actual behavior: Fil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sandersn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width