Commit 80ad0de
authored
Fixes to handle file names in module resolution watching and createGetCanonicalFileName (#36106)
* Add test case to verify directory casing preservation when watching
* Fix unicode file name handling when watching failed lookup locations
* Add special file name lower conversion routine and use that instead of toLowerCase
Fixes #31819 and #35559
* Remove unicode from code
* Replace toLocaleLowerCase on filenames with ts.toFileNameLowerCase
* Make the intent of using toFileNameLowerCase more clear and why we make the restriction on turkish I with dot on top of it
* Update baselines for newly added tests in master1 parent ad8feb5 commit 80ad0de
File tree
185 files changed
+2867
-2696
lines changed- src
- compiler
- transformers
- harness
- server
- services
- testRunner/unittests
- tsserver
- tsserver
- tests/baselines/reference
- tsbuild/watchMode
- configFileErrors
- demo
- noEmitOnError
- programUpdates
- reportErrors
- declarationEmitErrors
- introduceError
- with-circular-project-reference
- with-simple-project-reference-graph
- reexport
- tscWatch
- consoleClearing
- when-preserveWatchOutput-is-true-in-config-file
- emitAndErrorUpdates
- assumeChangesOnlyAffectDirectDependenciesAndD
- deepImportChanges
- updates-errors-when-file-transitively-exported-file-changes
- assumeChangesOnlyAffectDirectDependencies
- deepImportChanges
- updates-errors-when-file-transitively-exported-file-changes
- defaultAndD
- deepImportChanges
- updates-errors-when-file-transitively-exported-file-changes
- default
- deepImportChanges
- updates-errors-when-file-transitively-exported-file-changes
- isolatedModulesAndD
- deepImportChanges
- updates-errors-when-file-transitively-exported-file-changes
- isolatedModules
- deepImportChanges
- updates-errors-when-file-transitively-exported-file-changes
- emit
- emit-file-content
- emit-for-configured-projects
- emit-with-outFile-or-out-setting
- when-module-emit-is-specified-as-node
- forceConsistentCasingInFileNames
- incremental
- module-compilation
- own-file-emit-without-errors
- programUpdates
- should-not-trigger-recompilation-because-of-program-emit
- updates-errors-in-lib-file
- when-module-file-with-global-definitions-changes
- when-non-module-file-changes
- resolutionCache
- ignores-changes-in-node_modules-that-start-with-dot
- watchEnvironment
- watchDirectories
- watchOptions
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
185 files changed
+2867
-2696
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2618 | 2618 | | |
2619 | 2619 | | |
2620 | 2620 | | |
2621 | | - | |
| 2621 | + | |
2622 | 2622 | | |
2623 | 2623 | | |
2624 | 2624 | | |
| |||
2922 | 2922 | | |
2923 | 2923 | | |
2924 | 2924 | | |
2925 | | - | |
| 2925 | + | |
2926 | 2926 | | |
2927 | 2927 | | |
2928 | 2928 | | |
| |||
3091 | 3091 | | |
3092 | 3092 | | |
3093 | 3093 | | |
3094 | | - | |
| 3094 | + | |
3095 | 3095 | | |
3096 | 3096 | | |
3097 | 3097 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1404 | 1404 | | |
1405 | 1405 | | |
1406 | 1406 | | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
1407 | 1447 | | |
1408 | 1448 | | |
1409 | 1449 | | |
| |||
1865 | 1905 | | |
1866 | 1906 | | |
1867 | 1907 | | |
1868 | | - | |
| 1908 | + | |
1869 | 1909 | | |
1870 | 1910 | | |
1871 | 1911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1397 | 1397 | | |
1398 | 1398 | | |
1399 | 1399 | | |
1400 | | - | |
| 1400 | + | |
1401 | 1401 | | |
1402 | 1402 | | |
1403 | 1403 | | |
| |||
2190 | 2190 | | |
2191 | 2191 | | |
2192 | 2192 | | |
2193 | | - | |
| 2193 | + | |
2194 | 2194 | | |
2195 | 2195 | | |
2196 | 2196 | | |
| |||
2438 | 2438 | | |
2439 | 2439 | | |
2440 | 2440 | | |
2441 | | - | |
| 2441 | + | |
2442 | 2442 | | |
2443 | 2443 | | |
2444 | 2444 | | |
| |||
2650 | 2650 | | |
2651 | 2651 | | |
2652 | 2652 | | |
2653 | | - | |
| 2653 | + | |
2654 | 2654 | | |
2655 | 2655 | | |
2656 | 2656 | | |
| |||
2661 | 2661 | | |
2662 | 2662 | | |
2663 | 2663 | | |
2664 | | - | |
| 2664 | + | |
2665 | 2665 | | |
2666 | 2666 | | |
2667 | 2667 | | |
| |||
2753 | 2753 | | |
2754 | 2754 | | |
2755 | 2755 | | |
2756 | | - | |
| 2756 | + | |
2757 | 2757 | | |
2758 | 2758 | | |
2759 | 2759 | | |
| |||
3200 | 3200 | | |
3201 | 3201 | | |
3202 | 3202 | | |
3203 | | - | |
| 3203 | + | |
3204 | 3204 | | |
3205 | 3205 | | |
3206 | 3206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
439 | 440 | | |
440 | 441 | | |
441 | 442 | | |
442 | | - | |
443 | | - | |
444 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
445 | 447 | | |
446 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
447 | 452 | | |
448 | 453 | | |
449 | 454 | | |
450 | | - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
451 | 460 | | |
452 | 461 | | |
453 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
0 commit comments