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

Commit 12378b1

Browse files
committed
apply prettifier
1 parent 4581581 commit 12378b1

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/tasks.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,11 @@ 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], cwd: target.uri.fsPath }),
81+
execution: createShellExecution({
82+
command: 'cargo',
83+
args: [subcommand],
84+
cwd: target.uri.fsPath,
85+
}),
8286
group,
8387
problemMatchers: ['$rustc'],
8488
}))

src/workspace_util.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ 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, name: path.basename(current), uri: Uri.file(current) };
37+
return {
38+
...curWorkspace,
39+
name: path.basename(current),
40+
uri: Uri.file(current),
41+
};
3842
}
3943
}
4044

0 commit comments

Comments
 (0)