Merge pull request #44461 from oriash93/oriash93/42993

Added option whether to show terminal reuse alert
This commit is contained in:
Dirk Bäumer
2018-06-07 15:09:25 +02:00
committed by GitHub
7 changed files with 40 additions and 9 deletions

View File

@@ -232,13 +232,14 @@ namespace TaskPanelKind {
namespace PresentationOptions {
export function from(value: vscode.TaskPresentationOptions): tasks.PresentationOptions {
if (value === void 0 || value === null) {
return { reveal: tasks.RevealKind.Always, echo: true, focus: false, panel: tasks.PanelKind.Shared };
return { reveal: tasks.RevealKind.Always, echo: true, focus: false, panel: tasks.PanelKind.Shared, reuseMessage: true };
}
return {
reveal: TaskRevealKind.from(value.reveal),
echo: value.echo === void 0 ? true : !!value.echo,
focus: !!value.focus,
panel: TaskPanelKind.from(value.panel)
panel: TaskPanelKind.from(value.panel),
reuseMessage: value.reuseMessage === void 0 ? true : !!value.reuseMessage
};
}
}