Fix activation when connected to Windows with Remote SSH (#748)
parent
6c2dbf7355
commit
5ccfd895c7
|
@ -327,6 +327,7 @@
|
||||||
"color-name": "1.1.4",
|
"color-name": "1.1.4",
|
||||||
"concurrently": "7.0.0",
|
"concurrently": "7.0.0",
|
||||||
"minimatch": "5.1.4",
|
"minimatch": "5.1.4",
|
||||||
|
"normalize-path": "3.0.0",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"vsce": "2.15.0",
|
"vsce": "2.15.0",
|
||||||
"vscode-languageclient": "8.0.2"
|
"vscode-languageclient": "8.0.2"
|
||||||
|
|
|
@ -44,6 +44,7 @@ import namedColors from 'color-name'
|
||||||
import minimatch from 'minimatch'
|
import minimatch from 'minimatch'
|
||||||
import { CONFIG_GLOB, CSS_GLOB } from 'tailwindcss-language-server/src/lib/constants'
|
import { CONFIG_GLOB, CSS_GLOB } from 'tailwindcss-language-server/src/lib/constants'
|
||||||
import braces from 'braces'
|
import braces from 'braces'
|
||||||
|
import normalizePath from 'normalize-path'
|
||||||
|
|
||||||
const colorNames = Object.keys(namedColors)
|
const colorNames = Object.keys(namedColors)
|
||||||
|
|
||||||
|
@ -443,7 +444,7 @@ export async function activate(context: ExtensionContext) {
|
||||||
documentSelector: languages.get(folder.uri.toString()).map((language) => ({
|
documentSelector: languages.get(folder.uri.toString()).map((language) => ({
|
||||||
scheme: 'file',
|
scheme: 'file',
|
||||||
language,
|
language,
|
||||||
pattern: `${folder.uri.fsPath.replace(/[\[\]\{\}]/g, '?')}/**/*`,
|
pattern: normalizePath(`${folder.uri.fsPath.replace(/[\[\]\{\}]/g, '?')}/**/*`),
|
||||||
})),
|
})),
|
||||||
diagnosticCollectionName: CLIENT_ID,
|
diagnosticCollectionName: CLIENT_ID,
|
||||||
workspaceFolder: folder,
|
workspaceFolder: folder,
|
||||||
|
|
Loading…
Reference in New Issue