Martin Aeschlimann
cee904f80c
remove some anys ( #271651 )
2025-10-16 11:48:38 +02:00
Matt Bierner
360c9fd134
Add lint rule for as any and bulk ignore all existing breaks
...
For #269213
This adds a new eslint rule for `as any` and `<any>({... })`. We'd like to remove almost all of these, however right now the first goal is to prevent them in new code. That's why with this first PR I simply add `eslint-disable` comments for all breaks
Trying to get this change in soon after branching off for release to hopefully minimize disruption during debt week work
2025-10-02 23:38:33 -07:00
Martin Aeschlimann
d9951c029e
[html] JavaScript IntelliSense in <script type=module> HTML without quotes breaks ( #247405 )
2025-04-29 14:32:54 +00:00
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
Derek Yang
77f0483dcd
Add additional test case containing no escaped quotes
2024-12-05 14:22:54 -05:00
Derek Yang
4685d75964
Fix CSS errors when using HTML escaped quotes
2024-12-04 23:48:25 -05: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
Johannes
e6f315d2fc
eng - use esModuleInterop for extensions
2024-10-01 21:57:30 +02:00
Matt Bierner
51fa4d0172
Fix more type assertions ( #230156 )
...
* Fix more type assertions
For #211878
* Fix type error
2024-09-30 14:17:06 -07:00
Robo
5216c04428
chore: update to electron 29 ( #209818 )
...
* chore: update electron@29.1.0
* chore: update typings to 20.x
* chore: bump electron@29.1.5
* ci: fix crash in compiling extensions-ci
* chore: disable .d.ts check for build/
$ ../node_modules/.bin/tsc -p tsconfig.build.json
node_modules/@types/chokidar/index.d.ts:21:14 - error TS2420: Class 'import("/Users/demohan/github/vscode/build/node_modules/@types/chokidar/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'.
Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref
21 export class FSWatcher extends EventEmitter implements fs.FSWatcher {
~~~~~~~~~
node_modules/chokidar/types/index.d.ts:8:14 - error TS2420: Class 'import("/Users/demohan/github/vscode/build/node_modules/chokidar/types/index").FSWatcher' incorrectly implements interface 'import("fs").FSWatcher'.
Type 'FSWatcher' is missing the following properties from type 'FSWatcher': ref, unref
8 export class FSWatcher extends EventEmitter implements fs.FSWatcher {
~~~~~~~~~
Found 2 errors in 2 files.
Errors Files
1 node_modules/@types/chokidar/index.d.ts:21
1 node_modules/chokidar/types/index.d.ts:8
Refs a0f9e09f64
* chore: update core types
* temp: fix layer validation
* chore: update nodejs checksums
* ci: use latest v20 LTS for missing node-gyp
Refs eacec5f490
* ci: define LIBCPP_HARDENING_MODE
* ci: fix crash in vscode-web-min-ci
* chore: update rpm deps-list
* chore: bump tree-sitter-typescript@0.20 .5
* chore: bump electron@29.3.0
* chore: bump electron@29.3.1
* chore: update rpm deps-list for x86_64
* ci: disable io_uring UV backend on linux
* ci: disable io_uring backend for oss as well
* chore: update typings to 20.x
* ci: add TODO for io_uring workaround
* chore: bump distro
* chore: update preinstall node version checks
* chore: update @types/gulp
Refs https://github.com/microsoft/vscode/issues/212442
* ci: disable io_uring in more test suites
2024-05-11 01:20:28 +09:00
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