Fix and cleanup VSCode task building

This commit is contained in:
Lukas Wirth 2024-06-17 14:06:01 +02:00
parent 6b8b8ff4c5
commit 8846b5cf4a
5 changed files with 85 additions and 72 deletions

View file

@ -223,8 +223,16 @@ export type OpenCargoTomlParams = {
export type Runnable = {
label: string;
location?: lc.LocationLink;
kind: "cargo" | "shell";
args: CargoRunnableArgs | ShellRunnableArgs;
} & (RunnableCargo | RunnableShell);
type RunnableCargo = {
kind: "cargo";
args: CargoRunnableArgs;
};
type RunnableShell = {
kind: "shell";
args: ShellRunnableArgs;
};
export type ShellRunnableArgs = {