Commit 7f59949
authored
Handle comment directives in incremental parsing (microsoft#37632)
* Add test case that shows failure to handle commentDirectives in incremental parsing
Testcase for microsoft#37536
* Handle comment directives in incremental parsing
Fixes microsoft#375361 parent 0f3a9d4 commit 7f59949Copy full SHA for 7f59949
9 files changed
+307-96Lines changed: 307 additions & 96 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src
- compiler
- testRunner/unittests
- tsserver
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+59-2Lines changed: 59 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7752 | 7752 | |
7753 | 7753 | |
7754 | 7754 | |
7755 | | - |
7756 | 7755 | |
7757 | 7756 | |
7758 | 7757 | |
| ||
7805 | 7804 | |
7806 | 7805 | |
7807 | 7806 | |
7808 | | - |
| 7807 | + |
| 7808 | + |
| 7809 | + |
| 7810 | + |
| 7811 | + |
| 7812 | + |
| 7813 | + |
| 7814 | + |
| 7815 | + |
| 7816 | + |
7809 | 7817 | |
7810 | 7818 | |
7811 | 7819 | |
| 7820 | + |
| 7821 | + |
| 7822 | + |
| 7823 | + |
| 7824 | + |
| 7825 | + |
| 7826 | + |
| 7827 | + |
| 7828 | + |
| 7829 | + |
| 7830 | + |
| 7831 | + |
| 7832 | + |
| 7833 | + |
| 7834 | + |
| 7835 | + |
| 7836 | + |
| 7837 | + |
| 7838 | + |
| 7839 | + |
| 7840 | + |
| 7841 | + |
| 7842 | + |
| 7843 | + |
| 7844 | + |
| 7845 | + |
| 7846 | + |
| 7847 | + |
| 7848 | + |
| 7849 | + |
| 7850 | + |
| 7851 | + |
| 7852 | + |
| 7853 | + |
| 7854 | + |
| 7855 | + |
| 7856 | + |
| 7857 | + |
| 7858 | + |
| 7859 | + |
| 7860 | + |
| 7861 | + |
| 7862 | + |
| 7863 | + |
| 7864 | + |
| 7865 | + |
| 7866 | + |
| 7867 | + |
| 7868 | + |
7812 | 7869 | |
7813 | 7870 | |
7814 | 7871 | |
|
Collapse file
src/testRunner/unittests/incrementalParser.ts
Copy file name to clipboardExpand all lines: src/testRunner/unittests/incrementalParser.ts+153Lines changed: 153 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
831 | 831 | |
832 | 832 | |
833 | 833 | |
| 834 | + |
| 835 | + |
| 836 | + |
| 837 | + |
| 838 | + |
| 839 | + |
| 840 | + |
| 841 | + |
| 842 | + |
| 843 | + |
| 844 | + |
| 845 | + |
| 846 | + |
| 847 | + |
| 848 | + |
| 849 | + |
| 850 | + |
| 851 | + |
| 852 | + |
| 853 | + |
| 854 | + |
| 855 | + |
| 856 | + |
| 857 | + |
| 858 | + |
| 859 | + |
| 860 | + |
| 861 | + |
| 862 | + |
| 863 | + |
| 864 | + |
| 865 | + |
| 866 | + |
| 867 | + |
| 868 | + |
| 869 | + |
| 870 | + |
| 871 | + |
| 872 | + |
| 873 | + |
| 874 | + |
| 875 | + |
| 876 | + |
| 877 | + |
| 878 | + |
| 879 | + |
| 880 | + |
| 881 | + |
| 882 | + |
| 883 | + |
| 884 | + |
| 885 | + |
| 886 | + |
| 887 | + |
| 888 | + |
| 889 | + |
| 890 | + |
| 891 | + |
| 892 | + |
| 893 | + |
| 894 | + |
| 895 | + |
| 896 | + |
| 897 | + |
| 898 | + |
| 899 | + |
| 900 | + |
| 901 | + |
| 902 | + |
| 903 | + |
| 904 | + |
| 905 | + |
| 906 | + |
| 907 | + |
| 908 | + |
| 909 | + |
| 910 | + |
| 911 | + |
| 912 | + |
| 913 | + |
| 914 | + |
| 915 | + |
| 916 | + |
| 917 | + |
| 918 | + |
| 919 | + |
| 920 | + |
| 921 | + |
| 922 | + |
| 923 | + |
| 924 | + |
| 925 | + |
| 926 | + |
| 927 | + |
| 928 | + |
| 929 | + |
| 930 | + |
| 931 | + |
| 932 | + |
| 933 | + |
| 934 | + |
| 935 | + |
| 936 | + |
| 937 | + |
| 938 | + |
| 939 | + |
| 940 | + |
| 941 | + |
| 942 | + |
| 943 | + |
| 944 | + |
| 945 | + |
| 946 | + |
| 947 | + |
| 948 | + |
| 949 | + |
| 950 | + |
| 951 | + |
| 952 | + |
| 953 | + |
| 954 | + |
| 955 | + |
| 956 | + |
| 957 | + |
| 958 | + |
| 959 | + |
| 960 | + |
| 961 | + |
| 962 | + |
| 963 | + |
| 964 | + |
| 965 | + |
| 966 | + |
| 967 | + |
| 968 | + |
| 969 | + |
| 970 | + |
| 971 | + |
| 972 | + |
| 973 | + |
| 974 | + |
| 975 | + |
| 976 | + |
| 977 | + |
| 978 | + |
| 979 | + |
| 980 | + |
| 981 | + |
| 982 | + |
| 983 | + |
| 984 | + |
| 985 | + |
| 986 | + |
834 | 987 | |
835 | 988 | |
Collapse file
src/testRunner/unittests/tsserver/configuredProjects.ts
Copy file name to clipboardExpand all lines: src/testRunner/unittests/tsserver/configuredProjects.ts+5-18Lines changed: 5 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
896 | 896 | |
897 | 897 | |
898 | 898 | |
899 | | - |
900 | | - |
901 | | - |
902 | | - |
903 | | - |
904 | | - |
905 | | - |
906 | | - |
| 899 | + |
907 | 900 | |
908 | 901 | |
909 | 902 | |
| ||
983 | 976 | |
984 | 977 | |
985 | 978 | |
986 | | - |
| 979 | + |
987 | 980 | |
988 | 981 | |
989 | | - |
990 | | - |
991 | | - |
992 | | - |
993 | | - |
994 | | - |
995 | | - |
996 | | - |
997 | | - |
| 982 | + |
| 983 | + |
| 984 | + |
998 | 985 | |
999 | 986 | |
1000 | 987 | |
|
Collapse file
src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts
Copy file name to clipboardExpand all lines: src/testRunner/unittests/tsserver/forceConsistentCasingInFileNames.ts+3-22Lines changed: 3 additions & 22 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
| 68 | + |
75 | 69 | |
76 | 70 | |
77 | 71 | |
| ||
97 | 91 | |
98 | 92 | |
99 | 93 | |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | | - |
105 | | - |
106 | | - |
107 | | - |
| 94 | + |
108 | 95 | |
109 | 96 | |
110 | 97 | |
| ||
130 | 117 | |
131 | 118 | |
132 | 119 | |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
139 | | - |
| 120 | + |
140 | 121 | |
141 | 122 | |
142 | 123 | |
|
Collapse file
src/testRunner/unittests/tsserver/helpers.ts
Copy file name to clipboardExpand all lines: src/testRunner/unittests/tsserver/helpers.ts+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
837 | 837 | |
838 | 838 | |
839 | 839 | |
| 840 | + |
| 841 | + |
| 842 | + |
| 843 | + |
| 844 | + |
| 845 | + |
| 846 | + |
| 847 | + |
| 848 | + |
| 849 | + |
840 | 850 | |
841 | 851 | |
842 | 852 | |
|
0 commit comments