manual fixing of prefer-const violations

This commit is contained in:
Johannes
2022-06-09 10:19:56 +02:00
parent 0f6f41890b
commit 43c31079ee
37 changed files with 99 additions and 106 deletions

View File

@@ -4,7 +4,7 @@
*--------------------------------------------------------------------------------------------*/
import * as assert from 'assert';
import { commands, ConfigurationTarget, CustomExecution, Disposable, env, Event, EventEmitter, Pseudoterminal, ShellExecution, Task, TaskDefinition, TaskExecution, TaskProcessStartEvent, tasks, TaskScope, Terminal, UIKind, window, workspace } from 'vscode';
import { commands, ConfigurationTarget, CustomExecution, Disposable, env, Event, EventEmitter, Pseudoterminal, ShellExecution, Task, TaskDefinition, TaskProcessStartEvent, tasks, TaskScope, Terminal, UIKind, window, workspace } from 'vscode';
import { assertNoRpc } from '../utils';
// Disable tasks tests:
@@ -57,7 +57,6 @@ import { assertNoRpc } from '../utils';
});
const task = new Task({ type: 'testTask' }, TaskScope.Workspace, 'echo', 'testTask', new ShellExecution('echo', ['hello test']));
let taskExecution: TaskExecution | undefined;
disposables.push(tasks.onDidStartTaskProcess(async (e) => {
await taskExecutionShouldBeSet;
@@ -74,7 +73,7 @@ import { assertNoRpc } from '../utils';
progressMade.fire();
}
}));
taskExecution = await tasks.executeTask(task);
const taskExecution = await tasks.executeTask(task);
executeDoneEvent.fire();
await testDonePromise;
});