Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
Fix activation when `files.excludes` contains braces (#789) * Fix activation when `files.excludes` contains braces * Fix file exclude when searching for CSS files
Signature
-----BEGIN PGP SIGNATURE----- wsBcBAABCAAQBQJkb1OGCRBK7hj4Ov3rIwAA/6QIADtGy/T1RUgc9WAgvHqcLjZX 7WS1+m+nX0/Qd9d8kTQU8ohLF7o/qJ8/92QqXAfVZzuwFnY3iJCV6fLuFc8/6/Mh siWk624x6xKlT1bMT1RBuvc4l/qVbpxdy4GLcAzsmyisn37dYZZU4bBgsmD0pTib swjo7OZgJHVLY6fFn+hcKb68oceZN0/AdcZkhHrVxEsvX8o4M978srT3H8JSDefw S9YoofX6dEv+GFMeYw5uwPqday0soY9q5QZhkytIkiuwDrUQBjApQ96DbatWAzXx 0uyPWJe+paIPWA78gq7yaozzJz8dy2kzIh+QSD+B4nWQ00kcJ/SbBN05JAU4PKo= =XJJw -----END PGP SIGNATURE-----
Brad Cornes <hello@bradley.dev>
2 years ago
1 changed files, 8 additions(+), 7 deletions(-)
M packages/vscode-tailwindcss/src/extension.ts -> packages/vscode-tailwindcss/src/extension.ts
diff --git a/packages/vscode-tailwindcss/src/extension.ts b/packages/vscode-tailwindcss/src/extension.ts
index b324b2c5fb4f04d1f3c36b6bd9087d7e1d0f56b5..ac8951b8b58e4e439b17b523d1987768cf487bfb 100755
--- a/packages/vscode-tailwindcss/src/extension.ts
+++ b/packages/vscode-tailwindcss/src/extension.ts
@@ -644,11 +644,15 @@       bootWorkspaceClient(folder)
       return
     }
 
+    let exclude = `{${getExcludePatterns(folder)
+      .flatMap((pattern) => braces.expand(pattern))
+      .join(',')
+      .replace(/{/g, '%7B')
+      .replace(/}/g, '%7D')}}`
+
     let [configFile] = await Workspace.findFiles(
       new RelativePattern(folder, `**/${CONFIG_GLOB}`),
-      `{${getExcludePatterns(folder)
-        .flatMap((pattern) => braces.expand(pattern))
-        .join(',')}}`,
+      exclude,
       1
     )
 
@@ -657,10 +661,7 @@       bootWorkspaceClient(folder)
       return
     }
 
-    let cssFiles = await Workspace.findFiles(
-      new RelativePattern(folder, `**/${CSS_GLOB}`),
-      `{${getExcludePatterns(folder).join(',')}}`
-    )
+    let cssFiles = await Workspace.findFiles(new RelativePattern(folder, `**/${CSS_GLOB}`), exclude)
 
     for (let cssFile of cssFiles) {
       if (await fileContainsAtConfig(cssFile)) {