Commit 394f51a
authored
Fix implied formats, file watching, new source file creating during edits (#50098)
* Add test where module resolution cache is not local and hence doesnt report errors in watch mode
* Ensure module resolution cache is passed through in watch mode
* Remove unnecessary setting of impliedFormat which should anyways be done as part of create source file
* Add test for packge.json changing and modifying implied format
* Distinguish between package.json watch and affecting file location watch
* Pass in failed lookup and affected file locations for source file's implied format
Also stop creating options if we already have them
* Add diagnostic for explaining file's implied format if based on package.json
* Watch implied format dependencies for modules and schedule update on change
* For program if implied node format doesnt match create new source file. Handle implied node format in document registry
Fixes #50086
* Modify tests to show package.json being watched irrespective of folder its in
* Check file path if it can be watched before watching package.json file
* Because we are watching package.json files and failed lookups its safe to invalidate package json entries instead of clearing them out everytime program is created
* Remove todos
* Fix the incorrect merge
* Pickup PackageJsonInfo renames from #50088
* Rename1 parent 427d436 commit 394f51a
File tree
59 files changed
+2927
-249
lines changed- src
- compiler
- harness
- server
- services
- testRunner
- unittests
- tscWatch
- tsserver
- tests/baselines/reference
- api
- tscWatch
- moduleResolution
- nodenext watch emit
- tsserver
- cachingFileSystemInformation
- moduleResolution
- projectReferences
- symLinks
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
59 files changed
+2927
-249
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1464 | 1464 | | |
1465 | 1465 | | |
1466 | 1466 | | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
1467 | 1483 | | |
1468 | 1484 | | |
1469 | 1485 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
546 | 547 | | |
547 | 548 | | |
548 | 549 | | |
| |||
570 | 571 | | |
571 | 572 | | |
572 | 573 | | |
| 574 | + | |
573 | 575 | | |
574 | 576 | | |
575 | 577 | | |
| |||
584 | 586 | | |
585 | 587 | | |
586 | 588 | | |
| 589 | + | |
587 | 590 | | |
588 | 591 | | |
589 | 592 | | |
| |||
649 | 652 | | |
650 | 653 | | |
651 | 654 | | |
652 | | - | |
| 655 | + | |
653 | 656 | | |
654 | 657 | | |
655 | 658 | | |
| |||
663 | 666 | | |
664 | 667 | | |
665 | 668 | | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
666 | 672 | | |
667 | 673 | | |
668 | 674 | | |
| |||
797 | 803 | | |
798 | 804 | | |
799 | 805 | | |
800 | | - | |
| 806 | + | |
801 | 807 | | |
802 | 808 | | |
803 | 809 | | |
804 | 810 | | |
805 | 811 | | |
806 | | - | |
| 812 | + | |
807 | 813 | | |
808 | 814 | | |
809 | 815 | | |
810 | 816 | | |
| 817 | + | |
811 | 818 | | |
812 | 819 | | |
813 | 820 | | |
814 | | - | |
815 | | - | |
| 821 | + | |
816 | 822 | | |
817 | 823 | | |
818 | 824 | | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
819 | 830 | | |
820 | 831 | | |
821 | 832 | | |
| |||
919 | 930 | | |
920 | 931 | | |
921 | 932 | | |
922 | | - | |
| 933 | + | |
923 | 934 | | |
924 | 935 | | |
925 | 936 | | |
926 | 937 | | |
927 | | - | |
| 938 | + | |
928 | 939 | | |
| 940 | + | |
929 | 941 | | |
930 | 942 | | |
931 | 943 | | |
932 | | - | |
| 944 | + | |
933 | 945 | | |
934 | 946 | | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
935 | 951 | | |
936 | 952 | | |
937 | 953 | | |
| |||
1786 | 1802 | | |
1787 | 1803 | | |
1788 | 1804 | | |
1789 | | - | |
| 1805 | + | |
1790 | 1806 | | |
1791 | 1807 | | |
1792 | 1808 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
| 749 | + | |
| 750 | + | |
749 | 751 | | |
750 | 752 | | |
751 | 753 | | |
| |||
0 commit comments