mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Re-use code in the terminal instance for handling extension task callback shutdown
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user