Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed May 8, 2021
1 parent 6cb76f6 commit aaa65aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -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'
})
},
Expand Down

0 comments on commit aaa65aa

Please sign in to comment.