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

Commit 19cdaef

Browse files
committed
give the fake workspace the name of the folder it's acting as workspace for
1 parent 5be2fe3 commit 19cdaef

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
@@ -34,7 +34,7 @@ export function nearestParentWorkspace(
3434
const cargoPath = path.join(current, 'Cargo.toml');
3535
if (fs.existsSync(cargoPath)) {
3636
// ghetto change the uri on Workspace folder to make vscode think it's located elsewhere
37-
return { ...curWorkspace, uri: Uri.file(current) };
37+
return { ...curWorkspace, name: path.basename(current), uri: Uri.file(current) };
3838
}
3939
}
4040

0 commit comments

Comments
 (0)