Commit graph

4 commits

Author SHA1 Message Date
Daniel Rosenwasser 3da85df511
Clean up error messages for using TypeScript syntax in JavaScr… (#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.
2019-11-22 14:51:22 -08:00
Andy 6385c66215
Simplify diagnostics fourslash tests (#22245) 2018-03-01 07:34:51 -08:00
Andy 0b1e21794d
fourslash diagnostics tests: use objects instead of strings (#22193) 2018-02-26 14:55:26 -08:00
Jason Ramsay 1b16c0b94b For JavaScript files, we report semantic errors for using TypeScript-only constructs from within a JavaScript file as syntactic errors. 2016-10-25 18:09:04 -07:00
Renamed from tests/cases/fourslash/getJavaScriptSemanticDiagnostics12.ts (Browse further)