CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 05:33:27 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/"a32192c1796a0cc8cc42d138e34a352c"
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=nAfoBFp0MJ8uvLpquJfOO2C0kA27Gor4nwaTVf4aDHW3Rv20xw%2B89rwdRfgQ00HS%2BpHIAsD0hQlQGk2Esm1AGD7swylURx7b7Y3OR1LpNS7kBUx66PW3dnMgaYQANk0scXYlYvygR9P13n%2FnrIdENIVgpfwUTtcxBVxwmC3CkaTBrBgI2Dy7hY5uKpLZA499kxUa94OYlTtVdSp%2F4FOLF%2BtFByFyiVk%2Fi2Em0f85aESgDxB2mjD7KzKuTjZqUKmX3xQY4FzsD7xUsozeOql5zg%3D%3D--ne%2FYRVnWpsuKJm2U--ujvBIkSr56xwwS09wAz6mg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2006200576.1753248805; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 05:33:25 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 05:33:25 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A0FA:1D735C:429F57:58B6DA:68807425
Import statement completions (#43149) · microsoft/TypeScript@2d6a490 · GitHub


authored
Copy file name to clipboardExpand all lines: src/compiler/moduleSpecifiers.ts
Copy file name to clipboardExpand all lines: src/harness/fourslashImpl.ts
Copy file name to clipboardExpand all lines: src/harness/fourslashInterfaceImpl.ts
Copy file name to clipboardExpand all lines: src/server/editorServices.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 2d6a490
Import statement completions (#43149)
* WIP
* WIP
* Get completion details working
* Start unifying eager and lazy auto imports
* Fix export=
* Fix completion details for totally misspelled names
* Almost fixed duplication...
* Fix remaining completion tests
* Refactor to support multiple origins for same symbol
* Make import fixes make slightly more sense
* Add cache back in
* Set insertText based on import kind
* Update API baselines
* Add semicolons, snippet support, and sourceDisplay
* Add some tests
* Update baselines
* Fix pattern ambient modules appearing in auto imports
* Fix tests
* Remove commented code
* Switch to valueDeclaration for getting module source file
* Small optimizations
* Cache module specifiers / importableness and export map separately
* Fix and test cache invalidation logic
* Update API baselines
* Add separate user preference for snippet-formatted completions
* Require first character to match when resolving module specifiers
* Fix AutoImportProvider export map cache invalidation
* Really fix auto import provider export map invalidation
* Update test added in master
* Use logical or assignment
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
* Simply conditional by reversing
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
* When file is deleted need to marked correctly in the project as removed file
* Simplify hasAddedOrRemovedSymlinks with cherry-picked fix
* Ensure replacement range is on one line
* Update baselines
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>1 parent a545ab1 commit 2d6a490Copy full SHA for 2d6a490
File tree
Expand file treeCollapse file tree
38 files changed
+1577
-845
lines changedFilter options
- src
- compiler
- harness
- server
- services
- codefixes
- testRunner
- unittests/tsserver
- tests
- baselines/reference/api
- cases/fourslash
- server
Expand file treeCollapse file tree
38 files changed
+1577
-845
lines changed+13-6Lines changed: 13 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3498 | 3498 |
| |
3499 | 3499 |
| |
3500 | 3500 |
| |
3501 |
| - | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
3502 | 3505 |
| |
3503 | 3506 |
| |
3504 | 3507 |
| |
| |||
3522 | 3525 |
| |
3523 | 3526 |
| |
3524 | 3527 |
| |
3525 |
| - | |
3526 |
| - | |
3527 |
| - | |
3528 |
| - | |
3529 |
| - | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
| 3532 | + | |
| 3533 | + | |
| 3534 | + | |
| 3535 | + | |
| 3536 | + | |
3530 | 3537 |
| |
3531 | 3538 |
| |
3532 | 3539 |
| |
|
src/compiler/moduleSpecifiers.ts
Copy file name to clipboardExpand all lines: src/compiler/moduleSpecifiers.ts+11-9Lines changed: 11 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
327 | 327 |
| |
328 | 328 |
| |
329 | 329 |
| |
330 |
| - | |
331 |
| - | |
332 |
| - | |
333 |
| - | |
334 |
| - | |
335 |
| - | |
336 | 330 |
| |
337 | 331 |
| |
338 | 332 |
| |
339 | 333 |
| |
340 |
| - | |
341 |
| - | |
| 334 | + | |
| 335 | + | |
342 | 336 |
| |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
343 | 341 |
| |
344 | 342 |
| |
345 | 343 |
| |
| |||
358 | 356 |
| |
359 | 357 |
| |
360 | 358 |
| |
361 |
| - | |
| 359 | + | |
362 | 360 |
| |
363 | 361 |
| |
364 | 362 |
| |
| |||
384 | 382 |
| |
385 | 383 |
| |
386 | 384 |
| |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
387 | 389 |
| |
388 | 390 |
| |
389 | 391 |
| |
|
+18Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8015 | 8015 |
| |
8016 | 8016 |
| |
8017 | 8017 |
| |
| 8018 | + | |
8018 | 8019 |
| |
8019 | 8020 |
| |
8020 | 8021 |
| |
| |||
8025 | 8026 |
| |
8026 | 8027 |
| |
8027 | 8028 |
| |
| 8029 | + | |
| 8030 | + | |
| 8031 | + | |
| 8032 | + | |
| 8033 | + | |
| 8034 | + | |
| 8035 | + | |
| 8036 | + | |
| 8037 | + | |
| 8038 | + | |
| 8039 | + | |
| 8040 | + | |
| 8041 | + | |
| 8042 | + | |
| 8043 | + | |
8028 | 8044 |
| |
8029 | 8045 |
| |
8030 | 8046 |
| |
| |||
8314 | 8330 |
| |
8315 | 8331 |
| |
8316 | 8332 |
| |
| 8333 | + | |
| 8334 | + | |
8317 | 8335 |
| |
8318 | 8336 |
| |
8319 | 8337 |
| |
|
+13Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2412 | 2412 |
| |
2413 | 2413 |
| |
2414 | 2414 |
| |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
2415 | 2428 |
| |
2416 | 2429 |
| |
2417 | 2430 |
| |
|
src/harness/fourslashImpl.ts
Copy file name to clipboardExpand all lines: src/harness/fourslashImpl.ts+9-2Lines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
930 | 930 |
| |
931 | 931 |
| |
932 | 932 |
| |
| 933 | + | |
933 | 934 |
| |
934 |
| - | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
935 | 939 |
| |
936 | 940 |
| |
937 | 941 |
| |
| |||
941 | 945 |
| |
942 | 946 |
| |
943 | 947 |
| |
| 948 | + | |
| 949 | + | |
| 950 | + | |
944 | 951 |
| |
945 | 952 |
| |
946 | 953 |
| |
947 |
| - | |
| 954 | + | |
948 | 955 |
| |
949 | 956 |
| |
950 | 957 |
| |
|
src/harness/fourslashInterfaceImpl.ts
Copy file name to clipboardExpand all lines: src/harness/fourslashInterfaceImpl.ts+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1599 | 1599 |
| |
1600 | 1600 |
| |
1601 | 1601 |
| |
| 1602 | + | |
1602 | 1603 |
| |
1603 | 1604 |
| |
1604 | 1605 |
| |
|
src/server/editorServices.ts
Copy file name to clipboardExpand all lines: src/server/editorServices.ts+13-12Lines changed: 13 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2958 | 2958 |
| |
2959 | 2959 |
| |
2960 | 2960 |
| |
2961 |
| - | |
| 2961 | + | |
2962 | 2962 |
| |
2963 | 2963 |
| |
2964 | 2964 |
| |
| |||
4041 | 4041 |
| |
4042 | 4042 |
| |
4043 | 4043 |
| |
4044 |
| - | |
| 4044 | + | |
4045 | 4045 |
| |
4046 | 4046 |
| |
4047 | 4047 |
| |
| |||
4051 | 4051 |
| |
4052 | 4052 |
| |
4053 | 4053 |
| |
4054 |
| - | |
| 4054 | + | |
4055 | 4055 |
| |
4056 | 4056 |
| |
4057 | 4057 |
| |
4058 |
| - | |
| 4058 | + | |
4059 | 4059 |
| |
4060 | 4060 |
| |
4061 | 4061 |
| |
| |||
4083 | 4083 |
| |
4084 | 4084 |
| |
4085 | 4085 |
| |
4086 |
| - | |
4087 |
| - | |
4088 |
| - | |
4089 |
| - | |
4090 |
| - | |
4091 |
| - | |
| 4086 | + | |
| 4087 | + | |
| 4088 | + | |
| 4089 | + | |
4092 | 4090 |
| |
4093 |
| - | |
4094 |
| - | |
| 4091 | + | |
| 4092 | + | |
| 4093 | + | |
| 4094 | + | |
| 4095 | + | |
4095 | 4096 |
| |
4096 | 4097 |
| |
4097 | 4098 |
| |
|
You can’t perform that action at this time.
0 commit comments