Skip to content

Commit

Permalink
Fix activation when connected to Windows with Remote SSH (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc committed Mar 28, 2023
1 parent 6c2dbf7 commit 5ccfd89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/vscode-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@
"color-name": "1.1.4",
"concurrently": "7.0.0",
"minimatch": "5.1.4",
"normalize-path": "3.0.0",
"rimraf": "3.0.2",
"vsce": "2.15.0",
"vscode-languageclient": "8.0.2"
Expand Down
3 changes: 2 additions & 1 deletion packages/vscode-tailwindcss/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import namedColors from 'color-name'
import minimatch from 'minimatch'
import { CONFIG_GLOB, CSS_GLOB } from 'tailwindcss-language-server/src/lib/constants'
import braces from 'braces'
import normalizePath from 'normalize-path'

const colorNames = Object.keys(namedColors)

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

0 comments on commit 5ccfd89

Please sign in to comment.