Commit 3da85df
authored
Clean up error messages for using TypeScript syntax in JavaScr… (microsoft#35254)
* Fix up quotation marks in error messages in JavaScript files.
* Accepted baselines.
* Typescript -> TypeScript
* Accepted baselines.
* Migrate syntactic diagnostics tests to baselining tests.
* Accepted baselines.
* Update diagnosticMessages.json
* Removed markers.
* Add ability to baseline both semantic and syntactic diagnostics.
* Fix up broken diagnostics when using a server LS.
* Accepted baselines.
* Lints.
* Fake up sourcefile objects in the tsserver session client instead.
* Fewer allocations.1 parent 3e32946 commit 3da85dfCopy full SHA for 3da85df
79 files changed
+547-387Lines changed: 547 additions & 387 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src
- compiler
- harness
- tests
- baselines/reference
- cases/fourslash
- server
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/compiler/commandLineParser.ts
Copy file name to clipboardExpand all lines: src/compiler/commandLineParser.ts+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1539 | 1539 | |
1540 | 1540 | |
1541 | 1541 | |
1542 | | - |
| 1542 | + |
1543 | 1543 | |
1544 | 1544 | |
1545 | 1545 | |
|
Collapse file
src/compiler/diagnosticMessages.json
Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json+12-20Lines changed: 12 additions & 20 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4543 | 4543 | |
4544 | 4544 | |
4545 | 4545 | |
4546 | | - |
| 4546 | + |
4547 | 4547 | |
4548 | 4548 | |
4549 | 4549 | |
4550 | | - |
| 4550 | + |
4551 | 4551 | |
4552 | 4552 | |
4553 | 4553 | |
4554 | | - |
| 4554 | + |
4555 | 4555 | |
4556 | 4556 | |
4557 | 4557 | |
4558 | | - |
| 4558 | + |
4559 | 4559 | |
4560 | 4560 | |
4561 | 4561 | |
4562 | | - |
| 4562 | + |
4563 | 4563 | |
4564 | 4564 | |
4565 | 4565 | |
4566 | | - |
4567 | | - |
4568 | | - |
4569 | | - |
4570 | | - |
| 4566 | + |
4571 | 4567 | |
4572 | 4568 | |
4573 | 4569 | |
4574 | | - |
| 4570 | + |
4575 | 4571 | |
4576 | 4572 | |
4577 | 4573 | |
4578 | | - |
| 4574 | + |
4579 | 4575 | |
4580 | 4576 | |
4581 | 4577 | |
4582 | | - |
| 4578 | + |
4583 | 4579 | |
4584 | 4580 | |
4585 | 4581 | |
4586 | | - |
| 4582 | + |
4587 | 4583 | |
4588 | 4584 | |
4589 | 4585 | |
4590 | | - |
| 4586 | + |
4591 | 4587 | |
4592 | 4588 | |
4593 | 4589 | |
4594 | | - |
4595 | | - |
4596 | | - |
4597 | | - |
4598 | | - |
| 4590 | + |
4599 | 4591 | |
4600 | 4592 | |
4601 | 4593 | |
|
Collapse file
+19-16Lines changed: 19 additions & 16 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1797 | 1797 | |
1798 | 1798 | |
1799 | 1799 | |
1800 | | - |
| 1800 | + |
1801 | 1801 | |
1802 | 1802 | |
1803 | 1803 | |
| ||
1811 | 1811 | |
1812 | 1812 | |
1813 | 1813 | |
1814 | | - |
| 1814 | + |
1815 | 1815 | |
1816 | 1816 | |
1817 | 1817 | |
1818 | 1818 | |
1819 | 1819 | |
1820 | 1820 | |
1821 | | - |
| 1821 | + |
1822 | 1822 | |
1823 | 1823 | |
1824 | 1824 | |
1825 | | - |
| 1825 | + |
1826 | 1826 | |
1827 | 1827 | |
1828 | 1828 | |
1829 | 1829 | |
1830 | 1830 | |
1831 | 1831 | |
1832 | | - |
| 1832 | + |
1833 | 1833 | |
1834 | 1834 | |
1835 | 1835 | |
1836 | 1836 | |
1837 | | - |
| 1837 | + |
1838 | 1838 | |
1839 | 1839 | |
1840 | | - |
| 1840 | + |
| 1841 | + |
| 1842 | + |
1841 | 1843 | |
1842 | 1844 | |
1843 | | - |
| 1845 | + |
1844 | 1846 | |
1845 | 1847 | |
1846 | | - |
| 1848 | + |
| 1849 | + |
1847 | 1850 | |
1848 | 1851 | |
1849 | | - |
| 1852 | + |
1850 | 1853 | |
1851 | 1854 | |
1852 | | - |
| 1855 | + |
1853 | 1856 | |
1854 | 1857 | |
1855 | 1858 | |
| ||
1878 | 1881 | |
1879 | 1882 | |
1880 | 1883 | |
1881 | | - |
| 1884 | + |
1882 | 1885 | |
1883 | 1886 | |
1884 | 1887 | |
| ||
1894 | 1897 | |
1895 | 1898 | |
1896 | 1899 | |
1897 | | - |
| 1900 | + |
1898 | 1901 | |
1899 | 1902 | |
1900 | 1903 | |
| ||
1903 | 1906 | |
1904 | 1907 | |
1905 | 1908 | |
1906 | | - |
| 1909 | + |
1907 | 1910 | |
1908 | 1911 | |
1909 | 1912 | |
| ||
1915 | 1918 | |
1916 | 1919 | |
1917 | 1920 | |
1918 | | - |
| 1921 | + |
1919 | 1922 | |
1920 | 1923 | |
1921 | 1924 | |
| ||
1941 | 1944 | |
1942 | 1945 | |
1943 | 1946 | |
1944 | | - |
| 1947 | + |
1945 | 1948 | |
1946 | 1949 | |
1947 | 1950 | |
|
Collapse file
+5-3Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
374 | 374 | |
375 | 375 | |
376 | 376 | |
| 377 | + |
| 378 | + |
377 | 379 | |
378 | 380 | |
379 | 381 | |
380 | 382 | |
381 | 383 | |
382 | | - |
| 384 | + |
383 | 385 | |
384 | 386 | |
385 | 387 | |
| ||
518 | 520 | |
519 | 521 | |
520 | 522 | |
521 | | - |
| 523 | + |
522 | 524 | |
523 | 525 | |
524 | 526 | |
525 | 527 | |
526 | 528 | |
527 | 529 | |
528 | | - |
| 530 | + |
529 | 531 | |
530 | 532 | |
531 | 533 | |
|
0 commit comments