Skip to content

Commit 0d0a8f1

Browse files
committed
Respect task close options on background tasks
Fixes microsoft#128416
1 parent 6e2b7dd commit 0d0a8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
12071207
}
12081208

12091209
if ((presentationOptions.close === undefined) || (presentationOptions.close === false)) {
1210-
if ((presentationOptions.reveal !== RevealKind.Never) || !task.configurationProperties.isBackground) {
1210+
if ((presentationOptions.reveal !== RevealKind.Never) || !task.configurationProperties.isBackground || (presentationOptions.close === false)) {
12111211
if (presentationOptions.panel === PanelKind.New) {
12121212
waitOnExit = nls.localize('closeTerminal', 'Press any key to close the terminal.');
12131213
} else if (presentationOptions.showReuseMessage) {

0 commit comments

Comments
 (0)