From 6cb76f6bd51e87cc65da3710000fbb81fca7614b Mon Sep 17 00:00:00 2001 From: mrmlnc Date: Sat, 8 May 2021 17:40:38 +0300 Subject: [PATCH] up --- package-lock.json | 5 ----- package.json | 1 - src/client.ts | 3 +-- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index dd6032ae..b8154069 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3166,11 +3166,6 @@ } } }, - "slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==" - }, "slice-ansi": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", diff --git a/package.json b/package.json index 2c3568fa..040002fe 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,6 @@ "color-name": "1.1.4", "fast-glob": "3.2.5", "scss-symbols-parser": "2.0.1", - "slash": "4.0.0", "vscode-css-languageservice": "5.1.1", "vscode-languageclient": "7.0.0", "vscode-languageserver": "7.0.0", diff --git a/src/client.ts b/src/client.ts index ab20dcb8..fa119174 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1,6 +1,5 @@ import * as path from 'path'; -import slash from 'slash'; import * as vscode from 'vscode'; import type { URI } from 'vscode-uri'; import type { LanguageClientOptions, NodeModule, ServerOptions } from 'vscode-languageclient/node'; @@ -108,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 = `${slash(workspace.fsPath)}/**`; + const pattern = `${workspace.fsPath}/**`; return { documentSelector: [