Commit 9e845d2
authored
Api cleanup for Module and Type Reference directive resolution (microsoft#51546)
* Refactoring so CacheWithRedirects has Key and Value type parameters
* ModuleResolutionCache or TypeRefDirectiveCache will look in directory before solving, so ResolutionCache doesnt need this check
* Test showing module resolution is not shared because resolution cache doesnt update own options
* Enable traceResolution on some of the project reference tests
* Simplify CacheWithRedirects and ensure the options are set in all common scenarios so cache can be shared between redirects
* Make failedlookup etc optional in ResolvedModule/TypeRefefWithFailedLookupLocations
Also make accidental public failed lookup internal
* Add new API for module and type ref resolution
* Store auto type reference resolutions
* Modify test to show how using program partially doesnt report resolution diagnostics
* Ensure that resolution diagnostics are reported in filePreocessingDiagnostics so they can be reused when program is reused
* Some cleanup
* Remove the newly added ReoslutionInfo in favor of new APIs
* update1 parent c07f512 commit 9e845d2
73 files changed
Lines changed: 2772 additions & 1440 deletions
File tree
- src
- compiler
- server
- services
- testRunner/unittests
- tscWatch
- tsserver
- tests/baselines/reference
- api
- moduleResolution
- reuseProgramStructure
- tscWatch/moduleResolution
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1333 | 1333 | | |
1334 | 1334 | | |
1335 | 1335 | | |
1336 | | - | |
1337 | | - | |
| 1336 | + | |
| 1337 | + | |
1338 | 1338 | | |
1339 | 1339 | | |
1340 | 1340 | | |
| |||
44897 | 44897 | | |
44898 | 44898 | | |
44899 | 44899 | | |
44900 | | - | |
| 44900 | + | |
44901 | 44901 | | |
44902 | 44902 | | |
44903 | | - | |
44904 | | - | |
44905 | | - | |
| 44903 | + | |
| 44904 | + | |
| 44905 | + | |
44906 | 44906 | | |
44907 | 44907 | | |
44908 | | - | |
| 44908 | + | |
44909 | 44909 | | |
44910 | 44910 | | |
44911 | 44911 | | |
| |||
45032 | 45032 | | |
45033 | 45033 | | |
45034 | 45034 | | |
45035 | | - | |
| 45035 | + | |
45036 | 45036 | | |
45037 | 45037 | | |
45038 | 45038 | | |
| |||
45057 | 45057 | | |
45058 | 45058 | | |
45059 | 45059 | | |
45060 | | - | |
| 45060 | + | |
45061 | 45061 | | |
45062 | 45062 | | |
45063 | 45063 | | |
45064 | 45064 | | |
45065 | 45065 | | |
45066 | | - | |
| 45066 | + | |
45067 | 45067 | | |
45068 | 45068 | | |
45069 | 45069 | | |
| |||
45114 | 45114 | | |
45115 | 45115 | | |
45116 | 45116 | | |
45117 | | - | |
| 45117 | + | |
45118 | 45118 | | |
45119 | 45119 | | |
45120 | 45120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | | - | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
| |||
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
| 86 | + | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
| |||
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
98 | | - | |
99 | 96 | | |
100 | 97 | | |
101 | | - | |
102 | 98 | | |
103 | 99 | | |
104 | 100 | | |
| |||
213 | 209 | | |
214 | 210 | | |
215 | 211 | | |
216 | | - | |
217 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
218 | 215 | | |
219 | 216 | | |
220 | 217 | | |
221 | 218 | | |
222 | | - | |
223 | | - | |
224 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
225 | 222 | | |
226 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
227 | 234 | | |
228 | 235 | | |
229 | 236 | | |
| |||
524 | 531 | | |
525 | 532 | | |
526 | 533 | | |
527 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
528 | 540 | | |
529 | 541 | | |
530 | 542 | | |
| |||
911 | 923 | | |
912 | 924 | | |
913 | 925 | | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
926 | 932 | | |
927 | 933 | | |
928 | 934 | | |
929 | 935 | | |
930 | | - | |
| 936 | + | |
931 | 937 | | |
932 | 938 | | |
933 | 939 | | |
| |||
1373 | 1379 | | |
1374 | 1380 | | |
1375 | 1381 | | |
1376 | | - | |
| 1382 | + | |
1377 | 1383 | | |
1378 | 1384 | | |
1379 | 1385 | | |
| |||
0 commit comments