Commit 8bd7ce6
authored
Find Source Definition (microsoft#48264)
* Prototype resolving to JS when go-to-def aliases all resolve to ambient declarations
* Add test infrastructure
* Start fleshing out test coverage
* Fix some go-to-def stuff
* Finish lodash test case
* Make go-to-implementation never return ambient results
* Build new functionality into go-to-implementation
* Update baselines
* Two more test cases
* Refine definition searches for unresolved imports
* Revert "Build new functionality into go-to-implementation"
This reverts commit 381799d.
* Fix tests
* Revert go-to-implementation changes
* Wow a bunch of code was unnecessary
* Update baselines and go-to-def test
* Fix navigation on symbols that are not aliases but resolve through aliases in chain
* Temporarily replace go-to-def with new command implementation
* Revert "Temporarily replace go-to-def with new command implementation"
This reverts commit 34c6cfd.
* Revert "Wow a bunch of code was unnecessary"
This reverts commit 1cb2ba6.
* Bring back some deleted code needed for a new test case
* Clean up a little
* Rename more stuff
* Update test
* Update API baseline
* Temporarily replace go-to-def with new command implementation
* PR review fixes
* Fix getTopMostDeclarationNamesInFile
* Rename local
* Use hash set
* Remove option from commandLineParser
* Keep noDtsResolution project around
* Handle AuxiliaryProject kind in ScriptInfo getDefaultProject etc.
* Do not run updateGraph in the background for AuxiliaryProject
* Don’t create auxiliary project outside of semantic mode
* No-op on scheduled invalidation
* Add comments to unit test
* Sync compiler options to auxiliary project
* Fix case sensitivity
* Update extensionIsOk with new file extensions
* PR feedback
* Update API baseline
* Mark scheduleInvalidateResolutionsOfFailedLookupLocations internal
* Use same heuristics on property accesses of loosely-resolvable aliases as unresolvable named imports
* Rename command, and no need to return the bound span
* Update API baseline1 parent e6dcf6f commit 8bd7ce6
File tree
36 files changed
+1056
-104
lines changed- src
- compiler
- harness
- server
- services
- codefixes
- testRunner
- unittests/tsserver
- tests
- baselines/reference
- api
- showConfig/Shows tsconfig for single option/noDtsResolution
- cases/fourslash
- server
36 files changed
+1056
-104
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9206 | 9206 | | |
9207 | 9207 | | |
9208 | 9208 | | |
9209 | | - | |
| 9209 | + | |
9210 | 9210 | | |
9211 | 9211 | | |
9212 | 9212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
1290 | 1291 | | |
1291 | 1292 | | |
1292 | 1293 | | |
1293 | | - | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
1294 | 1307 | | |
1295 | 1308 | | |
1296 | 1309 | | |
| |||
1299 | 1312 | | |
1300 | 1313 | | |
1301 | 1314 | | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
1302 | 1320 | | |
1303 | 1321 | | |
1304 | 1322 | | |
1305 | 1323 | | |
1306 | 1324 | | |
1307 | 1325 | | |
1308 | 1326 | | |
1309 | | - | |
| 1327 | + | |
1310 | 1328 | | |
1311 | 1329 | | |
1312 | 1330 | | |
| |||
1533 | 1551 | | |
1534 | 1552 | | |
1535 | 1553 | | |
| 1554 | + | |
| 1555 | + | |
1536 | 1556 | | |
1537 | 1557 | | |
1538 | 1558 | | |
1539 | 1559 | | |
1540 | | - | |
| 1560 | + | |
1541 | 1561 | | |
1542 | 1562 | | |
1543 | 1563 | | |
1544 | | - | |
| 1564 | + | |
1545 | 1565 | | |
1546 | 1566 | | |
1547 | | - | |
| 1567 | + | |
1548 | 1568 | | |
1549 | | - | |
| 1569 | + | |
1550 | 1570 | | |
1551 | 1571 | | |
1552 | 1572 | | |
| |||
1813 | 1833 | | |
1814 | 1834 | | |
1815 | 1835 | | |
| 1836 | + | |
1816 | 1837 | | |
1817 | 1838 | | |
1818 | 1839 | | |
| |||
1893 | 1914 | | |
1894 | 1915 | | |
1895 | 1916 | | |
1896 | | - | |
| 1917 | + | |
1897 | 1918 | | |
1898 | 1919 | | |
1899 | 1920 | | |
1900 | 1921 | | |
1901 | | - | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
1902 | 1925 | | |
1903 | | - | |
| 1926 | + | |
1904 | 1927 | | |
1905 | 1928 | | |
1906 | 1929 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4668 | 4668 | | |
4669 | 4669 | | |
4670 | 4670 | | |
4671 | | - | |
| 4671 | + | |
4672 | 4672 | | |
| 4673 | + | |
| 4674 | + | |
4673 | 4675 | | |
4674 | 4676 | | |
4675 | 4677 | | |
| |||
6178 | 6180 | | |
6179 | 6181 | | |
6180 | 6182 | | |
| 6183 | + | |
| 6184 | + | |
6181 | 6185 | | |
6182 | 6186 | | |
6183 | 6187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
936 | 940 | | |
937 | 941 | | |
938 | 942 | | |
| |||
2558 | 2562 | | |
2559 | 2563 | | |
2560 | 2564 | | |
2561 | | - | |
| 2565 | + | |
2562 | 2566 | | |
2563 | 2567 | | |
2564 | | - | |
| 2568 | + | |
2565 | 2569 | | |
2566 | | - | |
| 2570 | + | |
2567 | 2571 | | |
2568 | | - | |
| 2572 | + | |
2569 | 2573 | | |
2570 | 2574 | | |
2571 | 2575 | | |
| |||
3131 | 3135 | | |
3132 | 3136 | | |
3133 | 3137 | | |
3134 | | - | |
3135 | | - | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
3136 | 3143 | | |
3137 | | - | |
| 3144 | + | |
3138 | 3145 | | |
3139 | 3146 | | |
3140 | 3147 | | |
3141 | 3148 | | |
3142 | 3149 | | |
3143 | 3150 | | |
3144 | | - | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
3145 | 3157 | | |
3146 | | - | |
3147 | | - | |
3148 | | - | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
3149 | 3163 | | |
3150 | 3164 | | |
3151 | 3165 | | |
| |||
3156 | 3170 | | |
3157 | 3171 | | |
3158 | 3172 | | |
| 3173 | + | |
3159 | 3174 | | |
3160 | 3175 | | |
3161 | 3176 | | |
| |||
5142 | 5157 | | |
5143 | 5158 | | |
5144 | 5159 | | |
| 5160 | + | |
| 5161 | + | |
| 5162 | + | |
| 5163 | + | |
| 5164 | + | |
5145 | 5165 | | |
5146 | 5166 | | |
5147 | 5167 | | |
| |||
5829 | 5849 | | |
5830 | 5850 | | |
5831 | 5851 | | |
| 5852 | + | |
| 5853 | + | |
| 5854 | + | |
| 5855 | + | |
| 5856 | + | |
| 5857 | + | |
| 5858 | + | |
| 5859 | + | |
| 5860 | + | |
| 5861 | + | |
| 5862 | + | |
| 5863 | + | |
| 5864 | + | |
| 5865 | + | |
| 5866 | + | |
| 5867 | + | |
| 5868 | + | |
| 5869 | + | |
| 5870 | + | |
| 5871 | + | |
| 5872 | + | |
| 5873 | + | |
| 5874 | + | |
| 5875 | + | |
| 5876 | + | |
| 5877 | + | |
| 5878 | + | |
| 5879 | + | |
| 5880 | + | |
| 5881 | + | |
| 5882 | + | |
| 5883 | + | |
| 5884 | + | |
| 5885 | + | |
| 5886 | + | |
| 5887 | + | |
| 5888 | + | |
| 5889 | + | |
| 5890 | + | |
5832 | 5891 | | |
5833 | 5892 | | |
5834 | 5893 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
335 | 352 | | |
336 | 353 | | |
337 | 354 | | |
| |||
0 commit comments