mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-27 10:37:38 +01:00
get rid of task as any (#1953)
* try to get rid of as any * figure out way
This commit is contained in:
@@ -32,7 +32,7 @@ export class TasksService extends DisposableStore implements ITasksService {
|
||||
) {
|
||||
super();
|
||||
this.add(vscode.tasks.onDidStartTask(e => {
|
||||
const terminal: vscode.Terminal | undefined = (e.execution as any).terminal;
|
||||
const terminal: vscode.Terminal | undefined = (e.execution as unknown as { terminal?: vscode.Terminal }).terminal;
|
||||
if (!terminal) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user