CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 07:44:52 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/"4f1bf5e34644db671f6b88adcfba0a4e"
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=%2FH2j1FUR94As1pf0bCqAGihG%2BbrTiiKntna3F6CxBHQ7sAYhfpdUrgz%2FlqNosu34l2SqCHFtFr7QH2kHGB60OFrpIVWvX0ZP1%2FFDMocO%2BoOoLWTJjV6Jf6b20V7VIPcACRfgGepOp%2BWlLJkCEzrSyJYujoGJR5MkCRPleEU68eotnwFE5DFHJVUmdzVw8nzU81qWWXmYaAS%2BupIhgRbxmIObAkM4iWYqQ6dPN78PMsv%2FFXpY5QHcY3reqE7dpxuvVyU6zOBxKmVdcWzbjTfVWA%3D%3D--y5F5ziyRBCKT1Xjt--NYwVGpYpjP%2FSYA3hwEY7eQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.842879832.1753256689; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 07:44:49 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 07:44:49 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: BB96:B5FA6:67233A:815331:688092F1
Code fix for missing imports (#11768) · microsoft/TypeScript@52ec508 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/moduleNameResolver.ts
Copy file name to clipboardExpand all lines: src/services/codefixes/codeFixProvider.ts
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 52ec508
Code fix for missing imports (#11768)
* Add codefix for missing imports + tests
* Re-order and cleanup
* refactor
* make tests pass
* Make import specifier for new imports more comprehensive
* Fix existing import cases
* refactor
* Fix multiple import statement case
* add multiple code fixes and code action filtering and polishing
* not using the generic verify method for import fixes.
* Correct insert position for new imports
* improve the code action filtering logic
* Fix line ending issue
* cache where we can1 parent 0b0b68e commit 52ec508Copy full SHA for 52ec508
File tree
Expand file treeCollapse file tree
46 files changed
+1265
-9
lines changedFilter options
- src
- compiler
- harness
- services
- codefixes
- tests/cases/fourslash
- server
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
46 files changed
+1265
-9
lines changed+8-1Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
108 | 107 |
| |
109 | 108 |
| |
110 | 109 |
| |
| 110 | + | |
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
| |||
1483 | 1483 |
| |
1484 | 1484 |
| |
1485 | 1485 |
| |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1486 | 1493 |
| |
1487 | 1494 |
| |
1488 | 1495 |
| |
|
+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1391 | 1391 |
| |
1392 | 1392 |
| |
1393 | 1393 |
| |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
1394 | 1402 |
| |
1395 | 1403 |
| |
1396 | 1404 |
| |
|
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+12Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3190 | 3190 |
| |
3191 | 3191 |
| |
3192 | 3192 |
| |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
| 3197 | + | |
| 3198 | + | |
| 3199 | + | |
| 3200 | + | |
| 3201 | + | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
3193 | 3205 |
| |
3194 | 3206 |
|
src/compiler/moduleNameResolver.ts
Copy file name to clipboardExpand all lines: src/compiler/moduleNameResolver.ts+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 |
| - | |
| 64 | + | |
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
|
+3-1Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2371 | 2371 |
| |
2372 | 2372 |
| |
2373 | 2373 |
| |
| 2374 | + | |
| 2375 | + | |
2374 | 2376 |
| |
2375 | 2377 |
| |
2376 | 2378 |
| |
| |||
3190 | 3192 |
| |
3191 | 3193 |
| |
3192 | 3194 |
| |
3193 |
| - | |
| 3195 | + | |
3194 | 3196 |
| |
3195 | 3197 |
| |
3196 | 3198 |
| |
|
+37-1Lines changed: 37 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2046 | 2046 |
| |
2047 | 2047 |
| |
2048 | 2048 |
| |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
2049 | 2077 |
| |
2050 | 2078 |
| |
2051 | 2079 |
| |
| |||
2079 | 2107 |
| |
2080 | 2108 |
| |
2081 | 2109 |
| |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
2082 | 2114 |
| |
2083 | 2115 |
| |
2084 | 2116 |
| |
| |||
2606 | 2638 |
| |
2607 | 2639 |
| |
2608 | 2640 |
| |
2609 |
| - | |
| 2641 | + | |
2610 | 2642 |
| |
2611 | 2643 |
| |
2612 | 2644 |
| |
| |||
3303 | 3335 |
| |
3304 | 3336 |
| |
3305 | 3337 |
| |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
3306 | 3342 |
| |
3307 | 3343 |
| |
3308 | 3344 |
| |
|
src/services/codefixes/codeFixProvider.ts
Copy file name to clipboardExpand all lines: src/services/codefixes/codeFixProvider.ts+3-1Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
| 15 | + | |
14 | 16 |
| |
15 | 17 |
| |
16 | 18 |
| |
|
src/services/codefixes/fixes.ts
Copy file name to clipboard+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
| 3 | + |
You can’t perform that action at this time.
0 commit comments