diff --git a/src/client.ts b/src/client.ts index fa119174..114b130a 100644 --- a/src/client.ts +++ b/src/client.ts @@ -107,7 +107,7 @@ function buildClientOptions(workspace: URI): LanguageClientOptions { * The workspace path is used to separate clients in multi-workspace environment. * Otherwise, each client will participate in each workspace. */ - const pattern = `${workspace.fsPath}/**`; + const pattern = `${workspace.fsPath.replace(/\\/g, '/')}/**`; return { documentSelector: [ @@ -117,7 +117,7 @@ function buildClientOptions(workspace: URI): LanguageClientOptions { synchronize: { configurationSection: ['scss'], fileEvents: vscode.workspace.createFileSystemWatcher({ - base: path.dirname(workspace.fsPath), + base: workspace.fsPath, pattern: '**/*.scss' }) },