Commit a545ab1
authored
Cache resolved project references and watch wild card directories from them to update them (#42929)
* Test for not watchiong referenced projects fileNames and invalidating it
* Add watching wild card directories and caching parsed command line for projects so that its shared
* Handle config file watching and commandline cache together
* Watch extended files for commndline cache instead of project
* Use extended config cache now that we are watching extended config files
* Structure for getParsedCommandLine from the LS
* Adding some more skeleton with todos
* getParsedCommandLine on WatchCompilerHost
* Tests for Watch, LS scenarios
* Handle getParsedCommandLine so we are looking at all things for referenced
* Cleanup and commenting
* Test for transitive references with tsc-watch
* Cache parsed command line even if host implements getParsedCommandLine
* Cleanup
* Cleanup
* Some tests to verify exclude from referenced project doesnt trigger the update
* Baseline when program is same
* Test for incremental scenario
* Tests for output from referenced project
* Comments1 parent a26acf4 commit a545ab1
File tree
39 files changed
+4649
-586
lines changed- src
- compiler
- executeCommandLine
- server
- services
- testRunner/unittests
- services
- tsbuild
- tscWatch
- tsc
- tsserver
- tests/baselines/reference
- api
- tscWatch
- programUpdates
- projectsWithReferences
- watchApi
- tsc/incremental/initial-build
39 files changed
+4649
-586
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1564 | 1564 | | |
1565 | 1565 | | |
1566 | 1566 | | |
1567 | | - | |
| 1567 | + | |
1568 | 1568 | | |
1569 | 1569 | | |
1570 | 1570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| 659 | + | |
659 | 660 | | |
660 | 661 | | |
661 | 662 | | |
662 | | - | |
663 | | - | |
664 | | - | |
| 663 | + | |
665 | 664 | | |
666 | 665 | | |
667 | | - | |
668 | | - | |
669 | | - | |
| 666 | + | |
670 | 667 | | |
671 | 668 | | |
672 | 669 | | |
673 | 670 | | |
674 | | - | |
675 | | - | |
676 | | - | |
| 671 | + | |
677 | 672 | | |
678 | 673 | | |
679 | | - | |
680 | | - | |
681 | | - | |
| 674 | + | |
682 | 675 | | |
683 | 676 | | |
684 | | - | |
685 | | - | |
686 | | - | |
| 677 | + | |
687 | 678 | | |
688 | 679 | | |
689 | 680 | | |
690 | | - | |
691 | | - | |
692 | | - | |
| 681 | + | |
693 | 682 | | |
694 | 683 | | |
695 | 684 | | |
696 | | - | |
697 | | - | |
698 | | - | |
| 685 | + | |
699 | 686 | | |
700 | 687 | | |
701 | 688 | | |
| |||
709 | 696 | | |
710 | 697 | | |
711 | 698 | | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | | - | |
| 699 | + | |
| 700 | + | |
716 | 701 | | |
717 | 702 | | |
718 | 703 | | |
719 | 704 | | |
720 | | - | |
721 | 705 | | |
722 | | - | |
723 | | - | |
| 706 | + | |
724 | 707 | | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
729 | 719 | | |
730 | 720 | | |
731 | 721 | | |
| |||
737 | 727 | | |
738 | 728 | | |
739 | 729 | | |
740 | | - | |
| 730 | + | |
| 731 | + | |
741 | 732 | | |
742 | 733 | | |
743 | 734 | | |
| |||
1021 | 1012 | | |
1022 | 1013 | | |
1023 | 1014 | | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
1027 | 1035 | | |
1028 | | - | |
| 1036 | + | |
1029 | 1037 | | |
1030 | 1038 | | |
1031 | 1039 | | |
| |||
1367 | 1375 | | |
1368 | 1376 | | |
1369 | 1377 | | |
1370 | | - | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
1371 | 1381 | | |
1372 | 1382 | | |
1373 | 1383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
359 | 364 | | |
360 | 365 | | |
361 | 366 | | |
| |||
1804 | 1809 | | |
1805 | 1810 | | |
1806 | 1811 | | |
1807 | | - | |
| 1812 | + | |
1808 | 1813 | | |
1809 | 1814 | | |
1810 | 1815 | | |
| |||
1834 | 1839 | | |
1835 | 1840 | | |
1836 | 1841 | | |
1837 | | - | |
| 1842 | + | |
1838 | 1843 | | |
1839 | | - | |
| 1844 | + | |
| 1845 | + | |
1840 | 1846 | | |
1841 | 1847 | | |
1842 | 1848 | | |
| |||
1889 | 1895 | | |
1890 | 1896 | | |
1891 | 1897 | | |
1892 | | - | |
1893 | | - | |
1894 | | - | |
1895 | | - | |
| 1898 | + | |
1896 | 1899 | | |
1897 | 1900 | | |
1898 | 1901 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3928 | 3928 | | |
3929 | 3929 | | |
3930 | 3930 | | |
3931 | | - | |
3932 | | - | |
3933 | | - | |
| 3931 | + | |
| 3932 | + | |
| 3933 | + | |
3934 | 3934 | | |
3935 | 3935 | | |
3936 | 3936 | | |
| |||
6443 | 6443 | | |
6444 | 6444 | | |
6445 | 6445 | | |
| 6446 | + | |
6446 | 6447 | | |
6447 | 6448 | | |
6448 | 6449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5392 | 5392 | | |
5393 | 5393 | | |
5394 | 5394 | | |
5395 | | - | |
| 5395 | + | |
5396 | 5396 | | |
5397 | 5397 | | |
5398 | 5398 | | |
5399 | 5399 | | |
5400 | 5400 | | |
5401 | | - | |
5402 | | - | |
| 5401 | + | |
| 5402 | + | |
5403 | 5403 | | |
5404 | 5404 | | |
5405 | 5405 | | |
5406 | 5406 | | |
5407 | 5407 | | |
5408 | 5408 | | |
5409 | 5409 | | |
5410 | | - | |
| 5410 | + | |
5411 | 5411 | | |
5412 | 5412 | | |
5413 | 5413 | | |
5414 | 5414 | | |
5415 | 5415 | | |
5416 | | - | |
5417 | | - | |
5418 | | - | |
5419 | | - | |
| 5416 | + | |
| 5417 | + | |
| 5418 | + | |
| 5419 | + | |
5420 | 5420 | | |
5421 | 5421 | | |
5422 | 5422 | | |
| |||
5434 | 5434 | | |
5435 | 5435 | | |
5436 | 5436 | | |
5437 | | - | |
5438 | | - | |
| 5437 | + | |
| 5438 | + | |
5439 | 5439 | | |
5440 | 5440 | | |
5441 | 5441 | | |
5442 | 5442 | | |
5443 | 5443 | | |
5444 | | - | |
| 5444 | + | |
5445 | 5445 | | |
5446 | 5446 | | |
5447 | 5447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
418 | 421 | | |
419 | 422 | | |
420 | 423 | | |
| |||
424 | 427 | | |
425 | 428 | | |
426 | 429 | | |
427 | | - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
428 | 434 | | |
429 | 435 | | |
430 | 436 | | |
| |||
0 commit comments