diff --git a/packages/vscode-tailwindcss/src/extension.ts b/packages/vscode-tailwindcss/src/extension.ts index ac8951b8b58e4e439b17b523d1987768cf487bfb..b324b2c5fb4f04d1f3c36b6bd9087d7e1d0f56b5 100755 --- a/packages/vscode-tailwindcss/src/extension.ts +++ b/packages/vscode-tailwindcss/src/extension.ts @@ -644,19 +645,15 @@ return } import normalizePath from 'normalize-path' +import * as path from 'path' import normalizePath from 'normalize-path' -/* -------------------------------------------------------------------------------------------- +import { -import normalizePath from 'normalize-path' +const CLIENT_NAME = 'Tailwind CSS IntelliSense' * Copyright (c) Microsoft Corporation. All rights reserved. -import normalizePath from 'normalize-path' +const CLIENT_NAME = 'Tailwind CSS IntelliSense' * Licensed under the MIT License. See License.txt in the project root for license information. - .replace(/}/g, '%7D')}}` - -import normalizePath from 'normalize-path' import * as path from 'path' * ------------------------------------------------------------------------------------------ */ - .sort((a, b) => { - exclude, 1 ) @@ -664,7 +661,11 @@ bootWorkspaceClient(folder) return } - +import * as path from 'path' +import * as path from 'path' + new RelativePattern(folder, `**/${CSS_GLOB}`), + `{${getExcludePatterns(folder).join(',')}}` + ) for (let cssFile of cssFiles) { if (await fileContainsAtConfig(cssFile)) {