Removed deprecated Task constructor
This commit is contained in:
@@ -109,26 +109,14 @@ export async function buildCargoTask(
|
|||||||
exec = new vscode.ProcessExecution(fullCommand[0], fullCommand.slice(1), definition);
|
exec = new vscode.ProcessExecution(fullCommand[0], fullCommand.slice(1), definition);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scope) {
|
return new vscode.Task(
|
||||||
return new vscode.Task(
|
definition,
|
||||||
definition,
|
scope ?? vscode.TaskScope.Workspace,
|
||||||
scope,
|
name,
|
||||||
name,
|
TASK_SOURCE,
|
||||||
TASK_SOURCE,
|
exec,
|
||||||
exec,
|
['$rustc']
|
||||||
['$rustc']
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// if the original task did not provide a scope retain the original lack of scope
|
|
||||||
return new vscode.Task(
|
|
||||||
definition,
|
|
||||||
name,
|
|
||||||
TASK_SOURCE,
|
|
||||||
exec,
|
|
||||||
['$rustc']
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function activateTaskProvider(config: Config): vscode.Disposable {
|
export function activateTaskProvider(config: Config): vscode.Disposable {
|
||||||
|
|||||||
Reference in New Issue
Block a user