From a5c195cfc0d54689de98487d01b015680076295f Mon Sep 17 00:00:00 2001 From: Maya Maddox Date: Sun, 8 Mar 2026 13:08:00 +0000 Subject: [PATCH] fix: glob patterns not matching on Windows --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index a7650df..5318ffc 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -90,7 +90,7 @@ class ColorDecorationProvider implements vscode.FileDecorationProvider { if (hasGlob) { // For glob patterns, match against the relative path from workspace root - const relativePath = path.relative(root, uri.fsPath).replace(/\\/g, '/'); + const relativePath = path.relative(root, uri.path).replace(/\\/g, '/'); return minimatch(relativePath, folder.path, { matchBase: true }); }