Commit 1227142
committed
feat(watch): show file-level error summary in watch mode
This change updates the watch mode error reporting to include a detailed
summary of errors per file, similar to non-watch mode.
It uses 'getErrorSummaryText' to generate the summary and introduces
a new diagnostic message '_0_Watching_for_file_changes' to display it
alongside the watch status.
Verification:
- Verified manually with reproduction case (single error and zero errors).
- Ran existing 'tscWatch' tests and updated baselines for 213 scenarios.
- All 454 watch mode tests passed.1 parent 87aa917 commit 1227142
File tree
229 files changed
+2695
-654
lines changed- src/compiler
- tests/baselines/reference/tscWatch
- emitAndErrorUpdates
- assumeChangesOnlyAffectDirectDependenciesAndD
- transitive-exports
- no-circular-import
- yes-circular-import
- assumeChangesOnlyAffectDirectDependencies
- deepImportChanges
- transitive-exports
- no-circular-import
- yes-circular-import
- defaultAndD
- deepImportChanges
- transitive-exports
- no-circular-import
- yes-circular-import
- default
- deepImportChanges
- transitive-exports
- no-circular-import
- yes-circular-import
- isolatedModulesAndD
- deepImportChanges
- transitive-exports
- no-circular-import
- yes-circular-import
- isolatedModules
- deepImportChanges
- transitive-exports
- no-circular-import
- yes-circular-import
- emit
- emit-for-configured-projects
- emit-with-outFile-or-out-setting
- when-module-emit-is-specified-as-node
- extends
- forceConsistentCasingInFileNames
- incremental
- module-compilation
- libraryResolution
- moduleResolution
- noEmitOnError
- multiFile
- outFile
- noEmit
- multiFile
- outFile
- nodeNextWatch
- programUpdates
- should-not-trigger-recompilation-because-of-program-emit
- projectsWithReferences
- resolutionCache
- resolveJsonModule
- symlinks
- watchApi
- multiFile
- outFile
- watchEnvironment
- fsWatch
- watchDirectories
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
229 files changed
+2695
-654
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1539 | 1539 | | |
1540 | 1540 | | |
1541 | 1541 | | |
1542 | | - | |
1543 | 1542 | | |
1544 | 1543 | | |
1545 | 1544 | | |
| |||
1860 | 1859 | | |
1861 | 1860 | | |
1862 | 1861 | | |
1863 | | - | |
1864 | 1862 | | |
1865 | 1863 | | |
1866 | 1864 | | |
| |||
1901 | 1899 | | |
1902 | 1900 | | |
1903 | 1901 | | |
1904 | | - | |
1905 | 1902 | | |
1906 | 1903 | | |
1907 | 1904 | | |
| |||
1918 | 1915 | | |
1919 | 1916 | | |
1920 | 1917 | | |
1921 | | - | |
1922 | 1918 | | |
1923 | 1919 | | |
1924 | 1920 | | |
| |||
2899 | 2895 | | |
2900 | 2896 | | |
2901 | 2897 | | |
2902 | | - | |
2903 | 2898 | | |
2904 | 2899 | | |
2905 | 2900 | | |
| |||
3140 | 3135 | | |
3141 | 3136 | | |
3142 | 3137 | | |
3143 | | - | |
3144 | 3138 | | |
3145 | 3139 | | |
3146 | 3140 | | |
| |||
4022 | 4016 | | |
4023 | 4017 | | |
4024 | 4018 | | |
4025 | | - | |
4026 | 4019 | | |
4027 | 4020 | | |
4028 | 4021 | | |
| |||
4467 | 4460 | | |
4468 | 4461 | | |
4469 | 4462 | | |
4470 | | - | |
4471 | 4463 | | |
4472 | 4464 | | |
4473 | 4465 | | |
| |||
4744 | 4736 | | |
4745 | 4737 | | |
4746 | 4738 | | |
4747 | | - | |
4748 | 4739 | | |
4749 | 4740 | | |
4750 | 4741 | | |
| |||
5401 | 5392 | | |
5402 | 5393 | | |
5403 | 5394 | | |
| 5395 | + | |
| 5396 | + | |
| 5397 | + | |
| 5398 | + | |
5404 | 5399 | | |
5405 | 5400 | | |
5406 | 5401 | | |
| |||
5688 | 5683 | | |
5689 | 5684 | | |
5690 | 5685 | | |
5691 | | - | |
5692 | 5686 | | |
5693 | 5687 | | |
5694 | 5688 | | |
| |||
5781 | 5775 | | |
5782 | 5776 | | |
5783 | 5777 | | |
5784 | | - | |
5785 | 5778 | | |
5786 | 5779 | | |
5787 | 5780 | | |
| |||
6064 | 6057 | | |
6065 | 6058 | | |
6066 | 6059 | | |
6067 | | - | |
6068 | 6060 | | |
6069 | 6061 | | |
6070 | 6062 | | |
| |||
6593 | 6585 | | |
6594 | 6586 | | |
6595 | 6587 | | |
6596 | | - | |
6597 | 6588 | | |
6598 | 6589 | | |
6599 | 6590 | | |
| |||
6610 | 6601 | | |
6611 | 6602 | | |
6612 | 6603 | | |
6613 | | - | |
6614 | 6604 | | |
6615 | 6605 | | |
6616 | 6606 | | |
| |||
6723 | 6713 | | |
6724 | 6714 | | |
6725 | 6715 | | |
6726 | | - | |
6727 | 6716 | | |
6728 | 6717 | | |
6729 | 6718 | | |
| |||
6946 | 6935 | | |
6947 | 6936 | | |
6948 | 6937 | | |
6949 | | - | |
6950 | 6938 | | |
6951 | 6939 | | |
6952 | 6940 | | |
| |||
7091 | 7079 | | |
7092 | 7080 | | |
7093 | 7081 | | |
7094 | | - | |
7095 | 7082 | | |
7096 | 7083 | | |
7097 | 7084 | | |
| |||
7324 | 7311 | | |
7325 | 7312 | | |
7326 | 7313 | | |
7327 | | - | |
7328 | 7314 | | |
7329 | 7315 | | |
7330 | 7316 | | |
| |||
7365 | 7351 | | |
7366 | 7352 | | |
7367 | 7353 | | |
7368 | | - | |
7369 | 7354 | | |
7370 | 7355 | | |
7371 | 7356 | | |
| |||
7586 | 7571 | | |
7587 | 7572 | | |
7588 | 7573 | | |
7589 | | - | |
7590 | 7574 | | |
7591 | 7575 | | |
7592 | 7576 | | |
| |||
8355 | 8339 | | |
8356 | 8340 | | |
8357 | 8341 | | |
8358 | | - | |
8359 | 8342 | | |
8360 | 8343 | | |
8361 | 8344 | | |
| |||
8552 | 8535 | | |
8553 | 8536 | | |
8554 | 8537 | | |
8555 | | - | |
| 8538 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
266 | 274 | | |
267 | 275 | | |
268 | 276 | | |
| |||
293 | 301 | | |
294 | 302 | | |
295 | 303 | | |
296 | | - | |
| 304 | + | |
297 | 305 | | |
298 | 306 | | |
299 | 307 | | |
| |||
524 | 532 | | |
525 | 533 | | |
526 | 534 | | |
527 | | - | |
528 | | - | |
| 535 | + | |
| 536 | + | |
529 | 537 | | |
530 | 538 | | |
531 | 539 | | |
| |||
535 | 543 | | |
536 | 544 | | |
537 | 545 | | |
538 | | - | |
539 | | - | |
| 546 | + | |
| 547 | + | |
540 | 548 | | |
541 | 549 | | |
542 | 550 | | |
| |||
880 | 888 | | |
881 | 889 | | |
882 | 890 | | |
883 | | - | |
| 891 | + | |
884 | 892 | | |
885 | | - | |
| 893 | + | |
886 | 894 | | |
887 | 895 | | |
888 | 896 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
186 | 189 | | |
187 | 190 | | |
188 | 191 | | |
189 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
190 | 196 | | |
191 | 197 | | |
192 | 198 | | |
| |||
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| |||
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
214 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
215 | 221 | | |
216 | 222 | | |
217 | 223 | | |
| |||
346 | 352 | | |
347 | 353 | | |
348 | 354 | | |
349 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
350 | 363 | | |
351 | 364 | | |
352 | 365 | | |
| |||
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
125 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
126 | 132 | | |
127 | 133 | | |
128 | 134 | | |
| |||
199 | 205 | | |
200 | 206 | | |
201 | 207 | | |
202 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
203 | 212 | | |
204 | 213 | | |
205 | 214 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
122 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
| |||
0 commit comments