Skip to content

Fix SchemaStore matching for nonstandard YAML filenames - #1347

Merged
datho7561 merged 1 commit into
redhat-developer:mainfrom
shin19991207:fix-1124
Sep 22, 2026
Merged

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

Conversation

@shin19991207

Copy link
Copy Markdown
Member

What does this PR do?

SchemaStore associations were previously retained only when their fileMatch patterns is empty or contained .yaml, .yml, or a pattern supplied through the files.associations setting. This excluded valid YAML files with nonstandard or extensionless names, such as .clang-format.

This PR changes SchemaStore catalog filtering to exclude file matches with JSON-specific extensions (.json, .jsonc, and .json5) instead of requiring a known YAML extension.

It also removes the now unused SettingsState.fileExtensions and files.associations.

What issues does this PR fix or reference?

Fixes redhat-developer/vscode-yaml#1124

Is it tested? How?

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 and works well. Thanks, Morgan!

@datho7561
datho7561 merged commit 34035cd into redhat-developer:main Sep 22, 2026
4 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.

.clang-format have schema, extension complain No JSON Schema

2 participants