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

Commit 21eb25b

Browse files
committed
fix completely incorrect use of parse (by me)
parse obviously only takes URIs meaning it should be `file:///[path]` using the file command does that as well as fixing from windows format to file uri format.
1 parent 5750185 commit 21eb25b

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.parse(current) };
37+
return { ...curWorkspace, uri: Uri.file(current) };
3838
}
3939
}
4040

0 commit comments

Comments
 (0)