Skip to content

Commit

Permalink
fix: git diff semantic color incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Oct 9, 2022
1 parent a4012a9 commit 77ce7e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/language-server/src/utils/workspaces.ts
Expand Up @@ -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));

Expand Down

0 comments on commit 77ce7e6

Please sign in to comment.