mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
@@ -120,11 +120,9 @@ class FolderDetector {
|
||||
}
|
||||
|
||||
public async getTask(_task: vscode.Task): Promise<vscode.Task | undefined> {
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
const jakeTask = (<any>_task.definition).task;
|
||||
const jakeTask = _task.definition.task;
|
||||
if (jakeTask) {
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
const kind: JakeTaskDefinition = (<any>_task.definition);
|
||||
const kind = _task.definition as JakeTaskDefinition;
|
||||
const options: vscode.ShellExecutionOptions = { cwd: this.workspaceFolder.uri.fsPath };
|
||||
const task = new vscode.Task(kind, this.workspaceFolder, jakeTask, 'jake', new vscode.ShellExecution(await this._jakeCommand, [jakeTask], options));
|
||||
return task;
|
||||
|
||||
Reference in New Issue
Block a user