CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 02:08:04 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/"7555e898febfe0332845ba707b374a38"
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=qJW5GU22KMP37wMVbJ%2FTS8lLs5iHyKthp%2BRsEGQdiwDApoCPA5t57riomfoZ74IZyWLlkwIP88do3BxTEVpVraHShu924KxgvZqBd912yH7moDm9Ib3cdE5MAHWvZ1XwgOQY3NWo3ZygIu4XFxjpT%2FnrRF04IiErsS%2B4lnVxtNlK4qVmiC2Qrf9qtWiWYkT4Cf%2FxjKZs5b8VpRr%2BgypStRedUzPybahAA1uYLvUr6dIEC%2BhTpyuaxU3VvMtCyGfmeu4zIi734Z7eI4WvWl%2FsyQ%3D%3D--2htiRUXB0Yg9%2FYKe--nbt%2BwnixWtAsn1fe0TGfIQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.761145032.1752890881; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 02:08:01 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 19 Jul 2026 02:08:01 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D924:A43E1:29DA32:3AB47C:687AFE01
Support go-to-definition for imports of arbitrary files (#42539) · microsoft/TypeScript@4b67b4a · GitHub
Copy file name to clipboardExpand all lines: src/harness/fourslashImpl.ts
Copy file name to clipboardExpand all lines: src/services/findAllReferences.ts
Copy file name to clipboardExpand all lines: src/services/goToDefinition.ts
Copy file name to clipboardExpand all lines: src/testRunner/unittests/tsserver/partialSemanticServer.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/api/tsserverlibrary.d.ts
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit 4b67b4a
authored
Support go-to-definition for imports of arbitrary files (#42539)
* Support go-to-definition for imports of scripts and arbitrary files
* Support go-to-definition for non-existent files
* Add missing file property
* Use `isExternalModuleNameRelative` instead of `!pathIsBareSpecifier`
* Add partial semantic test
* Combine with symbol search for non-source-file file references
* Fix and accept API baselines
* Fix useless or
* A definition is unverified if the file path was a guess, even if a source file has that path1 parent aa67b16 commit 4b67b4aCopy full SHA for 4b67b4a
File tree
Expand file treeCollapse file tree
15 files changed
+164
-27
lines changedFilter options
- src
- harness
- server
- services
- testRunner/unittests/tsserver
- tests
- baselines/reference/api
- cases/fourslash
- server
Expand file treeCollapse file tree
15 files changed
+164
-27
lines changed+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
526 | 526 |
| |
527 | 527 |
| |
528 | 528 |
| |
| 529 | + | |
| 530 | + | |
| 531 | + | |
529 | 532 |
| |
530 | 533 |
| |
531 | 534 |
| |
|
src/harness/fourslashImpl.ts
Copy file name to clipboardExpand all lines: src/harness/fourslashImpl.ts+13-12Lines changed: 13 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
688 | 688 |
| |
689 | 689 |
| |
690 | 690 |
| |
691 |
| - | |
| 691 | + | |
692 | 692 |
| |
693 | 693 |
| |
694 | 694 |
| |
| |||
705 | 705 |
| |
706 | 706 |
| |
707 | 707 |
| |
708 |
| - | |
| 708 | + | |
709 | 709 |
| |
710 | 710 |
| |
711 | 711 |
| |
| |||
725 | 725 |
| |
726 | 726 |
| |
727 | 727 |
| |
728 |
| - | |
| 728 | + | |
729 | 729 |
| |
730 | 730 |
| |
731 | 731 |
| |
| |||
737 | 737 |
| |
738 | 738 |
| |
739 | 739 |
| |
740 |
| - | |
| 740 | + | |
741 | 741 |
| |
742 | 742 |
| |
743 | 743 |
| |
744 | 744 |
| |
745 |
| - | |
| 745 | + | |
746 | 746 |
| |
747 | 747 |
| |
748 | 748 |
| |
| |||
762 | 762 |
| |
763 | 763 |
| |
764 | 764 |
| |
765 |
| - | |
766 |
| - | |
767 |
| - | |
768 |
| - | |
769 |
| - | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
770 | 771 |
| |
771 | 772 |
| |
772 |
| - | |
| 773 | + | |
773 | 774 |
| |
774 | 775 |
| |
775 | 776 |
| |
776 | 777 |
| |
777 | 778 |
| |
778 | 779 |
| |
779 |
| - | |
| 780 | + | |
780 | 781 |
| |
781 | 782 |
| |
782 | 783 |
| |
|
+8-1Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
987 | 987 |
| |
988 | 988 |
| |
989 | 989 |
| |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
990 | 997 |
| |
991 |
| - | |
| 998 | + | |
992 | 999 |
| |
993 | 1000 |
| |
994 | 1001 |
| |
|
src/services/findAllReferences.ts
Copy file name to clipboardExpand all lines: src/services/findAllReferences.ts+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
624 | 624 |
| |
625 | 625 |
| |
626 | 626 |
| |
627 |
| - | |
| 627 | + | |
628 | 628 |
| |
629 | 629 |
| |
630 | 630 |
| |
| |||
656 | 656 |
| |
657 | 657 |
| |
658 | 658 |
| |
659 |
| - | |
| 659 | + | |
660 | 660 |
| |
661 | 661 |
| |
662 | 662 |
| |
|
src/services/goToDefinition.ts
Copy file name to clipboardExpand all lines: src/services/goToDefinition.ts+30-9Lines changed: 30 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
6 |
| - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 |
| |
8 | 10 |
| |
9 | 11 |
| |
| |||
25 | 27 |
| |
26 | 28 |
| |
27 | 29 |
| |
28 |
| - | |
| 30 | + | |
29 | 31 |
| |
30 | 32 |
| |
31 | 33 |
| |
| |||
76 | 78 |
| |
77 | 79 |
| |
78 | 80 |
| |
79 |
| - | |
| 81 | + | |
80 | 82 |
| |
81 | 83 |
| |
82 | 84 |
| |
| |||
111 | 113 |
| |
112 | 114 |
| |
113 | 115 |
| |
114 |
| - | |
| 116 | + | |
115 | 117 |
| |
116 | 118 |
| |
117 | 119 |
| |
118 |
| - | |
| 120 | + | |
119 | 121 |
| |
120 | 122 |
| |
121 | 123 |
| |
122 | 124 |
| |
123 | 125 |
| |
124 | 126 |
| |
125 |
| - | |
| 127 | + | |
126 | 128 |
| |
127 | 129 |
| |
128 | 130 |
| |
129 | 131 |
| |
130 | 132 |
| |
131 |
| - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
132 | 152 |
| |
133 | 153 |
| |
134 | 154 |
| |
| |||
318 | 338 |
| |
319 | 339 |
| |
320 | 340 |
| |
321 |
| - | |
| 341 | + | |
322 | 342 |
| |
323 | 343 |
| |
324 | 344 |
| |
325 | 345 |
| |
326 | 346 |
| |
327 | 347 |
| |
328 | 348 |
| |
| 349 | + | |
329 | 350 |
| |
330 | 351 |
| |
331 | 352 |
| |
|
+12-1Lines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2492 | 2492 |
| |
2493 | 2493 |
| |
2494 | 2494 |
| |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
| 2504 | + | |
| 2505 | + | |
2495 | 2506 |
| |
2496 | 2507 |
| |
2497 | 2508 |
| |
| |||
2567 | 2578 |
| |
2568 | 2579 |
| |
2569 | 2580 |
| |
2570 |
| - | |
| 2581 | + | |
2571 | 2582 |
| |
2572 | 2583 |
| |
2573 | 2584 |
| |
|
+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
991 | 991 |
| |
992 | 992 |
| |
993 | 993 |
| |
| 994 | + | |
994 | 995 |
| |
995 | 996 |
| |
996 | 997 |
| |
|
+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1906 | 1906 |
| |
1907 | 1907 |
| |
1908 | 1908 |
| |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
1909 | 1917 |
| |
1910 | 1918 |
| |
1911 | 1919 |
| |
|
src/testRunner/unittests/tsserver/partialSemanticServer.ts
Copy file name to clipboardExpand all lines: src/testRunner/unittests/tsserver/partialSemanticServer.ts+16-1Lines changed: 16 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
204 | 204 |
| |
205 | 205 |
| |
206 | 206 |
| |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
207 | 222 |
| |
208 | 223 |
|
tests/baselines/reference/api/tsserverlibrary.d.ts
Copy file name to clipboardExpand all lines: tests/baselines/reference/api/tsserverlibrary.d.ts+8-1Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5965 | 5965 |
| |
5966 | 5966 |
| |
5967 | 5967 |
| |
| 5968 | + | |
5968 | 5969 |
| |
5969 | 5970 |
| |
5970 | 5971 |
| |
| |||
7286 | 7287 |
| |
7287 | 7288 |
| |
7288 | 7289 |
| |
| 7290 | + | |
| 7291 | + | |
| 7292 | + | |
| 7293 | + | |
| 7294 | + | |
| 7295 | + | |
7289 | 7296 |
| |
7290 |
| - | |
| 7297 | + | |
7291 | 7298 |
| |
7292 | 7299 |
| |
7293 | 7300 |
| |
|
You can’t perform that action at this time.
0 commit comments