Commit Graph

29 Commits

Author SHA1 Message Date
Yogeshwaran C
7466d76783 fix: modernize HTML sample snippet (#304818)
Update the built-in HTML sample snippet to follow current web standards
and reduce unnecessary boilerplate:

- Add lang attribute to <html> tag as first tab stop (W3C recommended)
- Remove outdated IE compatibility meta tag (IE is no longer supported)
- Remove unnecessary type='text/css' and media='screen' from <link>
  (default values in HTML5)
- Remove <script> tag (modern templates often handle scripts differently)
- Move viewport meta before title (following common convention)

Fixes #272331

Co-authored-by: Raymond Zhao <7199958+rzhao271@users.noreply.github.com>
2026-03-27 10:25:15 -07:00
Martin Aeschlimann
36d424971f [html/css/json] update services (#297113) 2026-02-23 22:17:23 +00:00
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
27c3a8b588 html client: switch to LogOutputChannel (#248706) 2025-05-12 13:02:26 +02:00
Matt Bierner
c884598a94 Fix a few more type errors for TextDecoder 2025-03-24 16:36:41 -07: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
afac9524b6 [css/json/html] move to l10n (#165725)
[css/json/html] move to l10n (for #164438)
2022-11-08 07:32:38 -08:00
Angelo
cef02dae8d Contribute to html language server with a custom language. (#146731)
* Contribute to html language server with a custom language.

Fixes #146730

Signed-off-by: azerr <azerr@redhat.com>

* refactor out LanguageParticipants

* restart client on language selector change

* htmlLanguage -> htmlLanguageParticipants

* tune autoInsert wording

* tune autoInsert description

Co-authored-by: azerr <azerr@redhat.com>
Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
2022-07-21 13:19:01 +02:00
Johannes
0656d21d11 auto-fixed prefer-const violation 2022-06-08 17:49:21 +02:00
Martin Aeschlimann
e783fdc25e css/html/json update to lsp 8 (#148715) 2022-05-19 12:48:53 +02:00
Martin Aeschlimann
50c8eb444d [html, json] update services 2022-03-18 18:04:10 +01:00
Martin Aeschlimann
4274ec05b8 [html][json] fix some missing dispose registrations 2022-03-02 11:57:20 +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
Martin Aeschlimann
1f9d809e35 single AutoInsertRequest message for both autoQuote and autoClose 2021-12-14 16:00:35 +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
f1455eabed revert request changes & polish 2021-11-26 11:45:08 +01:00
Jan Kretschmer
b074018c3e sketch for virtual document support for 2021-11-01 14:50:32 +01:00
AkatQuas
779e587197 fix(html-language-feature): remove vague statement 2021-09-07 11:35:18 +08:00
Martin Aeschlimann
7ebe6a6054 adopt web extensions to webpack 5 2021-07-08 21:41:03 +02:00
Henning Dieterichs
a1af8aa651 Refactors calls to languages.setLanguageConfiguration to declarative descriptions in language-configuration.json. This fixes #98621. 2021-05-17 09:12:01 +02:00
Martin Aeschlimann
ae510aec2a no indent after 'source' tag: for #118902 2021-03-15 15:16:43 +01:00
Martin Aeschlimann
c49ef6df61 [html] update auto-rename-tag to linkedEditing migration 2021-01-06 15:49:06 +01:00
Martin Aeschlimann
a22b5d54ad [json/css/html] adopt lsp 316 2020-12-14 18:18:58 +01:00
Martin Aeschlimann
627ad0b4ee rename OnTypeRename -> LinkedEditing (for #109923) 2020-11-27 16:31:56 +01:00
Martin Aeschlimann
8134d8c9e7 rename to OnTypeRenameRangeProvider. For #109923 2020-11-16 18:07:15 +01:00
Martin Aeschlimann
fae07df7c3 onTypeRename: wordPattern (for #104823) 2020-08-21 13:54:43 +02:00
Martin Aeschlimann
d16e306c2e html headless 2020-06-19 23:35:45 +02:00