Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSeage committed May 21, 2024
1 parent e166d4d commit 623d9cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/language-server/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,15 @@ export default class CSSLanguageServer {
onlyFiles: true,
ignore: ['**/node_modules/**']
}))
.forEach((workspaceFile) => resolvedWorkspaceDirectories.add(path.dirname(workspaceFile)))
.forEach((workspaceFile) => resolvedWorkspaceDirectories.add(path.dirname(path.resolve(workspaceFile))))
} else if (workspaces?.length) {
(await glob(workspaces, {
cwd: workspaceFolderCWD,
absolute: true,
onlyDirectories: true,
ignore: ['**/node_modules/**']
}))
.forEach((workspaceDir) => resolvedWorkspaceDirectories.add(workspaceDir))
.forEach((workspaceDir) => resolvedWorkspaceDirectories.add(path.resolve(workspaceDir)))
}
resolvedWorkspaceDirectories.forEach(async (workspaceDir) => {
const workspaceURI = URI.file(workspaceDir).toString()
Expand Down

0 comments on commit 623d9cf

Please sign in to comment.