Re-use code in the terminal instance for handling extension task callback shutdown

This commit is contained in:
Gabriel DeBacker
2019-01-26 13:00:38 -08:00
parent 3f66432eb2
commit 5404905f0b
3 changed files with 22 additions and 50 deletions

View File

@@ -1787,22 +1787,14 @@ export class Task implements vscode.TaskWithExtensionCallback {
}
set execution(value: ProcessExecution | ShellExecution | undefined) {
this.executionInternal = value;
this.executionWithExtensionCallback = value;
}
get executionWithExtensionCallback(): ProcessExecution | ShellExecution | ExtensionCallbackExecution | undefined {
return this.executionInternal;
}
set executionWithExtensionCallback(value: ProcessExecution | ShellExecution | ExtensionCallbackExecution | undefined) {
this.executionInternal = value;
}
private get executionInternal(): ProcessExecution | ShellExecution | ExtensionCallbackExecution | undefined {
return this._execution;
}
private set executionInternal(value: ProcessExecution | ShellExecution | ExtensionCallbackExecution | undefined) {
set executionWithExtensionCallback(value: ProcessExecution | ShellExecution | ExtensionCallbackExecution | undefined) {
if (value === null) {
value = undefined;
}