Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 5750185

Browse files
committed
fix incorrectly stripping the root workspace folder
1 parent df44bfd commit 5750185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/workspace_util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function nearestParentWorkspace(
88
filePath: string,
99
): WorkspaceFolder {
1010
// check that the workspace folder already contains the "Cargo.toml"
11-
const workspaceRoot = path.parse(curWorkspace.uri.fsPath).dir;
11+
const workspaceRoot = curWorkspace.uri.fsPath;
1212
const rootManifest = path.join(workspaceRoot, 'Cargo.toml');
1313
if (fs.existsSync(rootManifest)) {
1414
return curWorkspace;

0 commit comments

Comments
 (0)