Skip to content

fix: match schema file patterns in dot folders - #1376

Merged
shin19991207 merged 1 commit into
redhat-developer:mainfrom
h55n:fix/schema-dot-folders-1372
Nov 5, 2026
Merged

shin19991207 merged 1 commit into
redhat-developer:mainfrom
h55n:fix/schema-dot-folders-1372

Conversation

@h55n

@h55n h55n commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Allows schema file patterns to match files below dot folders such as .github, .config, and .dotfiles by enabling dot: true for both positive and negative picomatch patterns.

Adds 10 regression tests covering hidden directories and filenames, Windows-style file URIs, exclusions, single-star depth, folder URI boundaries, and schema resolution through YAMLSchemaService.

What issues does this PR fix or reference?

Fixes #1372.

Is it tested? How?

  • All 10 new regression tests fail against the original source and pass with the fix.
  • Disabling only the negative matcher's dot option makes the dedicated exclusion regression fail.
  • Local baseline: 1,385 passed, 5 skipped. With the fix: 1,395 passed, 5 skipped; build and lint pass.
  • Fork CI on Node 22.13.0: Ubuntu and macOS each have 1,395 passed and 5 skipped; Windows has 1,399 passed and 1 skipped. All three builds and full coverage test runs pass.
  • Verification: https://github.com/h55n/yaml-language-server/actions/runs/42057692127

To run locally: npm ci && npm run build && npm run coveralls.

The fork-only verification workflow is not included in this PR.

AI assistance was used for this fix and its tests.

Signed-off-by: hassan <144530465+h55n@users.noreply.github.com>
@h55n
h55n requested a review from datho7561 as a code owner November 5, 2026 16:21
@shin19991207

Copy link
Copy Markdown
Member

Looks good and works well from my testing. Thanks @h55n!

@shin19991207 shin19991207 added this to the 2.1.0 milestone Nov 5, 2026
@shin19991207
shin19991207 merged commit 4bf9c81 into redhat-developer:main Nov 5, 2026
4 checks passed
@shin19991207 shin19991207 removed this from the 2.1.0 milestone Nov 5, 2026
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.

Schema fileMatch patterns don't match files inside dot-folders such as .github

2 participants