Commit Graph
55 Commits
Author SHA1 Message Date
Martin Aeschlimann 165c1094cd polish 2025-04-10 11:24:30 +02:00
nknguyenhc 618a091f90 Remove sending of extension URI 2025-03-28 23:00:30 +08:00
nknguyenhc 4baf61eeb2 Add reading library files to HTML server 2025-03-28 22:48:10 +08:00
nknguyenhc c1da035939 Some error handling 2025-03-22 00:53:20 +08:00
nknguyenhc c8c2281cba Handle libs on web 2025-03-22 00:47:25 +08:00
nknguyenhc f2ea517495 Move function to javascriptLib 2025-03-21 19:02:12 +08:00
nknguyenhc d9d05285b9 Goto definition for DOM classes in HTML 2025-03-20 11:23:00 +08:00
Martin Aeschlimann fc6d94b806 [css/json/html] adopt latest lsp, update to module: node16 (#230371)
* adopt latest language-server/client

* update package-locks

* transpiler to support Node16
2024-10-03 13:49:56 +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 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
Johannes 0656d21d11 auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
Matt BiernerandMartin Aeschlimann 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 e783fdc25e css/html/json update to lsp 8 (#148715) 2022-05-19 12:48:53 +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 a0612b2e04 [html] A 'return' statement can only be used within a function body. Fixes #143220 2022-04-04 18:19:29 +02: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
Johannes Rieken 4a130c40ed enable @typescript-eslint/member-delimiter-style, https://github.com/microsoft/vscode/issues/140391 2022-02-02 14:35:33 +01:00
Martin Aeschlimann 2858dd87e7 html: update constants in typescript mode (for #138677) 2021-12-09 14:27:50 +01: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
Matt Bierner 1f567e10f3 Fixing two more cases for promises in conditionals 2021-02-26 17:38:37 -08:00
chenjigeng c8e490e5e6 chore: optimized code 2020-12-02 23:00:23 +08:00
chenjigeng 8f712866cf fix: check canRename before findRenameLocations 2020-12-02 22:27:32 +08:00
condichen@tencent.com 94b2772f8c feat: add rename symbol within <script> tags 2020-12-02 01:00:54 +08:00
chenjigeng eae037b391 Fixed Hover style incorrect when writing javascript in HTML 2020-11-22 10:52:27 +08:00
Martin Aeschlimann a180933669 [html] make mode services async 2020-06-25 11:48:24 +02:00
Martin Aeschlimann 05c5be7b87 extract loadLibrary 2020-06-23 22:43:25 +02:00
Martin Aeschlimann d16e306c2e html headless 2020-06-19 23:35:45 +02:00
Liyingandliyche ec5c1264bc Update compilerOptions returned by host for javascript.implicitProjectConfig.experimentalDecorators. (#95923)
Co-authored-by: liyche <liyche@umich.edu>
2020-04-24 11:34:03 -07:00
Martin Aeschlimann 8f08c2ffa7 more tests 2020-01-07 22:21:03 +01:00
Martin Aeschlimann f24b58c186 ts sem tokens in html 2020-01-07 17:54:47 +01:00
Martin Aeschlimann e53c9568f3 refactor 2019-12-18 22:29:46 +01:00
Martin Aeschlimann f07fae16be extract js semantic tokens 2019-12-18 22:29:46 +01:00
Martin Aeschlimann d6aa8f540d fixes 2019-12-18 22:29:46 +01:00
Martin Aeschlimann 03e79666c7 sem highlighting in HTML 2019-12-18 22:29:46 +01:00
Martin Aeschlimann b58c6fafad [html] add semantic highlight 2019-12-18 22:29:45 +01:00
Martin Aeschlimann 873fc72278 [html] "Expand selection" misses { } in <script> tag. Fixes #85306 2019-11-26 17:11:41 +01:00
Martin Aeschlimann 1476c4e20b [html] update to TextDocument and switch to incremental 2019-11-05 22:19:43 +01:00
Matt Bierner d81145d3f0 Use proper documentHighlights api for html js intellisense 2019-04-10 15:21:53 -07:00
Rob Lourens ef2547d547 replace void 0 with undefined 2019-01-03 11:20:19 -08:00
Matt Bierner 92a9a07213 Remove duplicate blank lines at the start of some extension src files 2018-10-02 16:28:19 -07:00
Matt Bierner ff957050db Remove use strict in extensions (part 2)
We compile using alwaysStrict so this directive is not needed
2018-10-02 16:23:27 -07:00
Matt Bierner 9116ec29ab Use shared config for html server 2018-10-02 10:24:20 -07:00
Martin Aeschlimann 486ac95f43 [html] embedded folding ranges computed too many times (fixes #47712) 2018-09-18 18:33:35 +02:00
Martin Aeschlimann 085854cd2b [html] jquery completions no longer work. Fixes #58299 2018-09-11 13:55:25 +02:00
Martin Aeschlimann 21c22840c5 [html] adopt lsp (folding, colors) 2018-07-25 12:22:04 +02:00
Matt Bierner 3ea1e53bbd Update to TS 3.0 insiders 2018-07-09 09:34:24 -07:00
Matt Bierner 2355af8bf5 Fix compile error from TS update 2018-05-24 15:34:46 -07:00
Matt Bierner bf99321408 Pick up new TS insiders 2018-05-03 16:51:46 -07:00
Martin Aeschlimann a322ceb0f6 [html] adopt folding APIs 2018-04-17 19:04:59 +02:00