mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
More work on #27581
This commit is contained in:
@@ -338,7 +338,7 @@ namespace Tasks {
|
||||
name: value.process,
|
||||
args: Strings.from(value.args),
|
||||
type: TaskSystem.CommandType.Process,
|
||||
terminal: TerminalBehaviour.from(value.terminal)
|
||||
terminalBehavior: TerminalBehaviour.from(value.terminalBehavior)
|
||||
};
|
||||
if (value.options) {
|
||||
result.options = CommandOptions.from(value.options);
|
||||
@@ -353,7 +353,7 @@ namespace Tasks {
|
||||
let result: TaskSystem.CommandConfiguration = {
|
||||
name: value.commandLine,
|
||||
type: TaskSystem.CommandType.Shell,
|
||||
terminal: TerminalBehaviour.from(value.terminal)
|
||||
terminalBehavior: TerminalBehaviour.from(value.terminalBehavior)
|
||||
};
|
||||
if (value.options) {
|
||||
result.options = CommandOptions.from(value.options);
|
||||
|
||||
@@ -1045,7 +1045,7 @@ export class BaseTask {
|
||||
private _isBackground: boolean;
|
||||
private _source: string;
|
||||
private _group: string;
|
||||
private _terminal: vscode.TaskTerminalBehavior;
|
||||
private _terminalBehavior: vscode.TaskTerminalBehavior;
|
||||
|
||||
constructor(name: string, problemMatchers: string[]) {
|
||||
if (typeof name !== 'string') {
|
||||
@@ -1054,7 +1054,7 @@ export class BaseTask {
|
||||
this._name = name;
|
||||
this._problemMatchers = problemMatchers || [];
|
||||
this._isBackground = false;
|
||||
this._terminal = Object.create(null);
|
||||
this._terminalBehavior = Object.create(null);
|
||||
}
|
||||
|
||||
get identifier(): string {
|
||||
@@ -1116,15 +1116,15 @@ export class BaseTask {
|
||||
this._group = value;
|
||||
}
|
||||
|
||||
get terminal(): vscode.TaskTerminalBehavior {
|
||||
return this._terminal;
|
||||
get terminalBehavior(): vscode.TaskTerminalBehavior {
|
||||
return this._terminalBehavior;
|
||||
}
|
||||
|
||||
set terminal(value: vscode.TaskTerminalBehavior) {
|
||||
set terminalBehavior(value: vscode.TaskTerminalBehavior) {
|
||||
if (value === void 0 || value === null) {
|
||||
value = Object.create(null);
|
||||
}
|
||||
this._terminal = value;
|
||||
this._terminalBehavior = value;
|
||||
}
|
||||
|
||||
get problemMatchers(): string[] {
|
||||
|
||||
Reference in New Issue
Block a user