From aaa65aa0ec1b5b6896c0de47b4f6f7cd22b9f018 Mon Sep 17 00:00:00 2001 From: mrmlnc Date: Sat, 8 May 2021 17:55:56 +0300 Subject: [PATCH] up --- src/client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' }) },