Skip to content

html: allow language overrides for wrapAttributes and wrapAttributesIndentSize (#343532) - #343551

Open
MOHAMMED WASIM KHAN (wasim-builds) wants to merge 1 commit into
microsoft:mainfrom
wasim-builds:fix/issue-343532-html-wrap-attributes-language-overridable
Open

MOHAMMED WASIM KHAN (wasim-builds) wants to merge 1 commit into
microsoft:mainfrom
wasim-builds:fix/issue-343532-html-wrap-attributes-language-overridable

Conversation

@wasim-builds

Copy link
Copy Markdown
Contributor

Summary

Fixes #343532

When attempting to configure html.format.wrapAttributes (or html.format.wrapAttributesIndentSize) in language-specific override blocks (such as "[vue]": { "html.format.wrapAttributes": "force-expand-multiline" }), VS Code displays a schema warning:

This setting cannot be applied because it is not registered as language override setting.

and does not apply the language-specific override when formatting documents in that language.

Changes

  • Changed scope from "resource" to "language-overridable" for html.format.wrapAttributes and html.format.wrapAttributesIndentSize in extensions/html-language-features/package.json.
  • This permits users and frameworks (such as Vue, Svelte, Handlebars) to specify custom attribute wrapping rules without affecting standard HTML formatting or causing schema errors.

Verification

  • Configuration registry and models tests pass under Node 24:
    • src/vs/platform/configuration/test/common/configurationRegistry.test.js (23/23 tests pass).
    • src/vs/workbench/services/configuration/test/common/configurationModels.test.js (8/8 tests pass).
  • Pre-commit hygiene checked cleanly.

Copilot AI balanced review requested due to automatic review settings October 22, 2026 16:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

…ndentSize (microsoft#343532)

Change scope from resource to language-overridable for html.format.wrapAttributes and html.format.wrapAttributesIndentSize so users can configure attribute wrapping per language (such as vue or html).

Fixes microsoft#343532
@wasim-builds
MOHAMMED WASIM KHAN (wasim-builds) force-pushed the fix/issue-343532-html-wrap-attributes-language-overridable branch from f81f4c4 to 4fcbbd1 Compare October 28, 2026 16:53

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set html.format.wrapAttributes as language override setting

3 participants