From 77ce7e6bb180258718e0a0676cc93366bf0d0bbc Mon Sep 17 00:00:00 2001 From: johnsoncodehk Date: Sun, 9 Oct 2022 20:24:36 +0800 Subject: [PATCH] fix: git diff semantic color incorrect https://github.com/johnsoncodehk/volar/issues/1946#issuecomment-1272430742 --- packages/language-server/src/utils/workspaces.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/language-server/src/utils/workspaces.ts b/packages/language-server/src/utils/workspaces.ts index bda9ad8fe..7885cbe75 100644 --- a/packages/language-server/src/utils/workspaces.ts +++ b/packages/language-server/src/utils/workspaces.ts @@ -166,6 +166,7 @@ export function createWorkspaces( async function getProject(uri: string) { const rootUris = [...workspaces.keys()] + .filter(rootUri => URI.parse(rootUri).scheme === URI.parse(uri).scheme) // fix https://github.com/johnsoncodehk/volar/issues/1946#issuecomment-1272430742 .filter(rootUri => shared.isFileInDir(URI.parse(uri).fsPath as path.OsPath, URI.parse(rootUri).fsPath as path.OsPath)) .sort((a, b) => sortTsConfigs(URI.parse(uri).fsPath as path.OsPath, URI.parse(a).fsPath as path.OsPath, URI.parse(b).fsPath as path.OsPath));