Skip to content

Commit 5ccfd89

Browse files
authored
Fix activation when connected to Windows with Remote SSH (#748)
1 parent 6c2dbf7 commit 5ccfd89

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/vscode-tailwindcss/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@
327327
"color-name": "1.1.4",
328328
"concurrently": "7.0.0",
329329
"minimatch": "5.1.4",
330+
"normalize-path": "3.0.0",
330331
"rimraf": "3.0.2",
331332
"vsce": "2.15.0",
332333
"vscode-languageclient": "8.0.2"

packages/vscode-tailwindcss/src/extension.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import namedColors from 'color-name'
4444
import minimatch from 'minimatch'
4545
import { CONFIG_GLOB, CSS_GLOB } from 'tailwindcss-language-server/src/lib/constants'
4646
import braces from 'braces'
47+
import normalizePath from 'normalize-path'
4748

4849
const colorNames = Object.keys(namedColors)
4950

@@ -443,7 +444,7 @@ export async function activate(context: ExtensionContext) {
443444
documentSelector: languages.get(folder.uri.toString()).map((language) => ({
444445
scheme: 'file',
445446
language,
446-
pattern: `${folder.uri.fsPath.replace(/[\[\]\{\}]/g, '?')}/**/*`,
447+
pattern: normalizePath(`${folder.uri.fsPath.replace(/[\[\]\{\}]/g, '?')}/**/*`),
447448
})),
448449
diagnosticCollectionName: CLIENT_ID,
449450
workspaceFolder: folder,

0 commit comments

Comments
 (0)