Skip to content

Make formatter settings resource scoped - #1287

Merged
datho7561 merged 1 commit into
redhat-developer:mainfrom
shin19991207:fix-formatter-scope
Oct 1, 2026
Merged

datho7561 merged 1 commit into
redhat-developer:mainfrom
shin19991207:fix-formatter-scope

Conversation

@shin19991207

@shin19991207 shin19991207 commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Changes YAML formatter preferences from the implicit window scope to resource scope.

What issues does this PR fix or reference?

Fixes #1240

Is it tested? How?

Manually tested with redhat-developer/yaml-language-server#1350 in a multi-root workspace with different formatter settings for each workspace folder. When hovering over the formatter settings, it should show the formatter settings' description instead of This setting cannot be applied in this workspace. It will be applied when you open the containing workspace folder directly.

Signed-off-by: Morgan Chang <shin19991207@gmail.com>

@datho7561 datho7561 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.

Looks good. Thanks, Morgan!

@datho7561
datho7561 merged commit 003f606 into redhat-developer:main Oct 1, 2026
5 checks passed
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.

Change yaml.format.singleQuote setting scope from window to resource

2 participants