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

Commit 4581581

Browse files
committed
set cwd to be the workspace folder, fixes cargo build command for "enableMultiProjectSetup" feature.
1 parent 19cdaef commit 4581581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function detectCargoTasks(target: WorkspaceFolder): Task[] {
7878
.map(({ subcommand, group }) => ({
7979
definition: { subcommand, type: TASK_TYPE },
8080
label: `cargo ${subcommand}`,
81-
execution: createShellExecution({ command: 'cargo', args: [subcommand] }),
81+
execution: createShellExecution({ command: 'cargo', args: [subcommand], cwd: target.uri.fsPath }),
8282
group,
8383
problemMatchers: ['$rustc'],
8484
}))

0 commit comments

Comments
 (0)