CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 09:36:33 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/microsoft/TypeScript.git
etag: W/"172a47d44fd3cf2dfaeb439efba496a3"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=vC4PU4i6UU%2BKn8f974VqUCBnNtzX4nSDsNNwoSonCnhC7vf7uC4K7WHXAu3fedy0R%2FNMt6x2UaxKGkoPl4zoCWKg86XlulIEygPsmdyKNxcOfDhfVkHEK6Yor8P9z57%2BPf2ctpmAWud0QoAOBLhDkKl2YfUqXjMmRKEqZZvZrlxv7nI9Fe9kM%2BpzP%2Be%2BbvuuH6xLrY55SSi0dTnalWJIgvPMZKY%2FVnjcoIkRxdPWcxExx8pICEYNBEsCbOLszAw2PXh2Nk96ymRVvlG3xdrShw%3D%3D--QYwT%2FcLpo2uWXe0n--rMLbUkQ8p5DCk3hQqv0NRA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1675258906.1752917791; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 09:36:31 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 09:36:31 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E7B4:35CC93:14C526:199C3F:687B671F
Exhaustive case completion for switch statements (#50996) · microsoft/TypeScript@6a3c9ea · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 6a3c9ea
authored
Exhaustive case completion for switch statements (#50996)
* fix services' type's isLiteral
* update literal completions tests
* initial prototype
* use symbol to expression. TODO: filter existing, replace import nodes
* WIP
* WIP
* remove booleans from literals
* trigger at case keyword positions
* clean up tests
* fix element access expression case
* refactor dealing with existing values into a tracker
* fix merge errors
* cleanup and more tests
* fix lint errors
* more merge conflict fixes and cleanup
* use appropriate quotes
* small indentation fix
* refactor case clause tracker
* experiment: support tabstops after each case clause
* address small CR comments
* fix completion entry details; add test case
* fix lint errors
* remove space before tab stops; refactor1 parent 5435efb commit 6a3c9eaCopy full SHA for 6a3c9ea
File tree
Expand file treeCollapse file tree
10 files changed
+925
-42
lines changedFilter options
- src
- compiler
- services
- tests/cases/fourslash
Expand file treeCollapse file tree
10 files changed
+925
-42
lines changed+5-35Lines changed: 5 additions & 35 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| 55 | + | |
55 | 56 |
| |
56 | 57 |
| |
57 | 58 |
| |
| |||
102 | 103 |
| |
103 | 104 |
| |
104 | 105 |
| |
105 |
| - | |
106 | 106 |
| |
107 | 107 |
| |
108 | 108 |
| |
| |||
500 | 500 |
| |
501 | 501 |
| |
502 | 502 |
| |
503 |
| - | |
504 | 503 |
| |
505 | 504 |
| |
506 | 505 |
| |
| |||
678 | 677 |
| |
679 | 678 |
| |
680 | 679 |
| |
| 680 | + | |
681 | 681 |
| |
682 | 682 |
| |
683 | 683 |
| |
| |||
827 | 827 |
| |
828 | 828 |
| |
829 | 829 |
| |
| 830 | + | |
830 | 831 |
| |
831 | 832 |
| |
832 | 833 |
| |
| |||
7691 | 7692 |
| |
7692 | 7693 |
| |
7693 | 7694 |
| |
7694 |
| - | |
7695 |
| - | |
7696 |
| - | |
7697 |
| - | |
| 7695 | + | |
7698 | 7696 |
| |
7699 | 7697 |
| |
7700 | 7698 |
| |
| |||
23533 | 23531 |
| |
23534 | 23532 |
| |
23535 | 23533 |
| |
23536 |
| - | |
23537 |
| - | |
23538 |
| - | |
23539 |
| - | |
23540 |
| - | |
23541 |
| - | |
23542 |
| - | |
23543 |
| - | |
23544 |
| - | |
23545 |
| - | |
23546 |
| - | |
23547 |
| - | |
23548 |
| - | |
23549 |
| - | |
23550 |
| - | |
23551 |
| - | |
23552 |
| - | |
23553 |
| - | |
23554 |
| - | |
23555 |
| - | |
23556 |
| - | |
23557 |
| - | |
23558 |
| - | |
23559 |
| - | |
23560 |
| - | |
23561 |
| - | |
23562 |
| - | |
23563 |
| - | |
23564 |
| - | |
| 23534 | + | |
23565 | 23535 |
| |
23566 | 23536 |
| |
23567 | 23537 |
| |
|
+66-1Lines changed: 66 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
| 190 | + | |
190 | 191 |
| |
191 | 192 |
| |
192 | 193 |
| |
193 | 194 |
| |
194 | 195 |
| |
195 |
| - | |
196 | 196 |
| |
| 197 | + | |
197 | 198 |
| |
198 | 199 |
| |
199 | 200 |
| |
| |||
257 | 258 |
| |
258 | 259 |
| |
259 | 260 |
| |
| 261 | + | |
260 | 262 |
| |
261 | 263 |
| |
262 | 264 |
| |
| |||
440 | 442 |
| |
441 | 443 |
| |
442 | 444 |
| |
| 445 | + | |
443 | 446 |
| |
444 | 447 |
| |
445 | 448 |
| |
| |||
8555 | 8558 |
| |
8556 | 8559 |
| |
8557 | 8560 |
| |
| 8561 | + | |
| 8562 | + | |
| 8563 | + | |
| 8564 | + | |
| 8565 | + | |
| 8566 | + | |
| 8567 | + | |
| 8568 | + | |
| 8569 | + | |
| 8570 | + | |
| 8571 | + | |
| 8572 | + | |
| 8573 | + | |
| 8574 | + | |
| 8575 | + | |
| 8576 | + | |
| 8577 | + | |
| 8578 | + | |
| 8579 | + | |
| 8580 | + | |
| 8581 | + | |
| 8582 | + | |
| 8583 | + | |
| 8584 | + | |
| 8585 | + | |
| 8586 | + | |
| 8587 | + | |
| 8588 | + | |
| 8589 | + | |
| 8590 | + | |
| 8591 | + | |
| 8592 | + | |
| 8593 | + | |
| 8594 | + | |
| 8595 | + | |
| 8596 | + | |
| 8597 | + | |
| 8598 | + | |
| 8599 | + | |
| 8600 | + | |
| 8601 | + | |
| 8602 | + | |
| 8603 | + | |
| 8604 | + | |
| 8605 | + | |
8558 | 8606 |
| |
8559 | 8607 |
| |
8560 | 8608 |
| |
| |||
9062 | 9110 |
| |
9063 | 9111 |
| |
9064 | 9112 |
| |
| 9113 | + | |
| 9114 | + | |
| 9115 | + | |
| 9116 | + | |
| 9117 | + | |
| 9118 | + | |
| 9119 | + | |
| 9120 | + | |
| 9121 | + | |
| 9122 | + | |
| 9123 | + | |
| 9124 | + | |
| 9125 | + | |
| 9126 | + | |
| 9127 | + | |
| 9128 | + | |
| 9129 | + | |
9065 | 9130 |
|
You can’t perform that action at this time.
0 commit comments