Commit Graph

176 Commits

Author SHA1 Message Date
Alex Ross
a6b766d8ad Fix an async test suite (#188380) 2023-07-20 15:46:52 +02:00
Matt Bierner
e0ebb7b740 Make script blocks respect js/ts.implicitProjectConfig.strictNullChecks (#179333)
Fixes #179331

Also fixes experimental decorators for script blocks
2023-04-06 15:59:44 +02:00
Martin Aeschlimann
92b87b0fd5 [html] files.insertFinalNewline affects embedded styles (#179118) 2023-04-04 12:55:17 +02:00
Matt Bierner
d11134fdf8 Make language servers use webworker typings (#172879)
This makes the css, html, and json language  servers to use the `webworker` typings. This lets us avoid having to redeclare `self`
2023-01-31 09:38:48 +01:00
Martin Aeschlimann
49e696c011 web: css language server not working when display language is set (#172430) 2023-01-25 20:19:40 +01:00
Martin Aeschlimann
2472a59bd6 [json/html/css] update dependencies (#172058) 2023-01-23 20:49:20 +01:00
Martin Aeschlimann
d4b18e0bc1 n10n lookup in node language servers (#171437)
* config node language servers with l10n location

* fix loading

* add workaround comment
2023-01-17 23:05:55 +01:00
Martin Aeschlimann
b27ee6b7b5 [html/css/json] pass the location of the localization bundle to the server (#168111)
pass the location of the localization bundle to the server
2022-12-05 14:49:27 -08:00
w1redch4d
70328b1b48 fix problems with html style comments in embedded code (#160981)
* fix problems with html style comments in embedded code

* add spacings to the replaced characters

add same amount of characters, in the replacements so that all offsets stays the same

* revert javascriptMode.ts

* add replace characters in embeddedSupport.ts instead

* added few more tests with javascript

more testcases with js code before and after the comments

* polish

Co-authored-by: UwUeeb <106700035+UwUeeb@users.noreply.github.com>
Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2022-10-26 08:41:05 +00:00
Martin Aeschlimann
320f338681 [html] Sytax Highlighting is way off with new line after event handler (#162319) 2022-09-29 12:19:36 +02:00
Martin Aeschlimann
5431050e5f Use Uri.Utils (#160780)
* Use Uri.Utils

* handle base as folder
2022-09-13 17:46:01 +02:00
Martin Aeschlimann
d0769c7e7f [html] update service and fix url resolving (#155725) 2022-07-20 14:38:10 +02:00
Martin Aeschlimann
ac74e9d093 [html] unresolved import error in embedded JavaScript (#154261)
[html] unresolved import error in embedded JavaScript #154002
2022-07-06 15:09:06 +02:00
Martin Aeschlimann
630809a1ea html: observe insertFinalNewline (#152446) 2022-06-17 12:38:36 +02:00
Johannes
0656d21d11 auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
Matt Bierner
a6724dcc10 Bump default JS target for scripts in html (#150240)
* Bump default JS target for scripts in html

For JS/TS files, we target ES2020 by default. However in html files we're still stuck targetting es6

This change aligns the two

* use es2020.full (includes dom), fix web, avoid searching in node_modules

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2022-05-25 11:50:44 +02:00
Martin Aeschlimann
f1b392ed55 polish names 2022-05-22 20:03:30 +02:00
Martin Aeschlimann
49944b1501 DiagnosticsSupport for json and html 2022-05-22 20:03:30 +02:00
Martin Aeschlimann
aacb387ef1 implement diagnostic pull 2022-05-22 20:03:30 +02:00
Martin Aeschlimann
e783fdc25e css/html/json update to lsp 8 (#148715) 2022-05-19 12:48:53 +02:00
Martin Aeschlimann
caa463191f add telemetry event comments and owner (#149070) 2022-05-17 15:20:02 +02:00
Matt Bierner
17ee4c4265 Pick up TS 4.7 for bundling with VS Code 2022-05-02 15:50:42 -07:00
Martin Aeschlimann
8f5b743a0b [json] Allow "json.validate.enable": false in settings / disable JSON validation or error checking. Fixes #114775 2022-04-12 15:33:25 +02:00
Martin Aeschlimann
a0612b2e04 [html] A 'return' statement can only be used within a function body. Fixes #143220 2022-04-04 18:19:29 +02:00
Martin Aeschlimann
c7a685113b Revert "[html] A 'return' statement can only be used within a function body. Fixes #143220"
This reverts commit 56661ec16a.
2022-04-04 18:19:29 +02:00
Martin Aeschlimann
56661ec16a [html] A 'return' statement can only be used within a function body. Fixes #143220 2022-03-21 20:27:20 +01:00
Martin Aeschlimann
50c8eb444d [html, json] update services 2022-03-18 18:04:10 +01:00
Matt Bierner
afa70ebba0 Adopt official semantic tokens api for JS/TS in html (#144223)
* Adopt official semantic tokens api for JS/TS in html

Fixes #114477

This switches the semantic tokens implementation for js/ts inside html to use the finalized `getEncodedSemanticClassifications` api instead of our custom impl

* Update tests
2022-03-02 13:02:43 -08:00
Alex Dima
0bf3071972 Fix hygiene 2022-02-04 15:49:50 +01:00
Johannes Rieken
4a130c40ed enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
Johannes Rieken
7ccb868835 make sure to use .eslintignore when running yarn eslint, this will ensure that cli failure and editor squiggles are always equal 2022-02-02 12:37:29 +01:00
Martin Aeschlimann
1f9d809e35 single AutoInsertRequest message for both autoQuote and autoClose 2021-12-14 16:00:35 +01:00
Martin Aeschlimann
72287bfab6 Merge branch 'main' into pr/jzyrobert/137080 2021-12-14 15:02:00 +01:00
Martin Aeschlimann
2858dd87e7 html: update constants in typescript mode (for #138677) 2021-12-09 14:27:50 +01:00
Robert Jin
e6c9ee0796 Update html-language-features to use doQuoteComplete 2021-11-30 17:50:47 +00:00
Martin Aeschlimann
3d8b5674c7 [html] clean up request service: add CustomDataRequestService #135459 2021-11-29 11:25:21 +01:00
Martin Aeschlimann
5e4bc951cd Hitting return after </button> element crashes VS Code (Insiders). Fixes #135806 2021-10-26 11:55:51 +02:00
Martin Aeschlimann
a78567110c html: polish reading of settings 2021-10-15 20:11:06 +02:00
Stephen Sigwart
ba48f5c1f0 Update to match new enum 2021-09-29 23:16:07 -04:00
Stephen Sigwart
c5d3ad08f0 Switch to settings.html.completion.attributeDefaultValue 2021-09-29 21:44:16 -04:00
Stephen Sigwart
40b976f056 Add doNotAddAttributeQuotes setting to disable automatic quotes 2021-09-29 21:44:16 -04:00
AkatQuas
e4fb11a1e7 fix: early return on cancellation 2021-09-07 16:28:21 +08:00
Martin Aeschlimann
7ebe6a6054 adopt web extensions to webpack 5 2021-07-08 21:41:03 +02:00
Martin Aeschlimann
05d22c6853 [html] duplicated onDocumentRangeFormatting handler (#122994) 2021-05-10 18:09:18 +02:00
Martin Aeschlimann
81643c948f HTML, CSS, JSON language servers don't provide the documentFormattingProvider capability. Fixes #122994 2021-05-07 17:03:16 +02:00
Logan Ramos
1469a9840f Update deprecated html language features 2021-05-04 14:03:20 -04:00
Matt Bierner
65c6a0a543 Pick up TS 4.3 nightly
For #122884
2021-05-03 16:15:30 -07:00
Andrew Branch
8426ff6475 Update language service call for 4.3 protocol 2021-04-01 10:21:34 -07:00
Martin Aeschlimann
8c7a3d8f6c html: fix compile errors 2021-03-23 19:30:46 +01:00
Matt Bierner
1f567e10f3 Fixing two more cases for promises in conditionals 2021-02-26 17:38:37 -08:00