From 9b7577420d947e32fc43ad74c0497be24f180938 Mon Sep 17 00:00:00 2001 From: Megan Rogge Date: Thu, 12 May 2022 14:24:28 -0700 Subject: [PATCH] Fix #148957 (#149392) --- .../workbench/contrib/terminal/browser/xterm/decorationAddon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.ts b/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.ts index 825b5173d4f..d4dba2076d2 100644 --- a/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.ts +++ b/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.ts @@ -217,7 +217,7 @@ export class DecorationAddon extends Disposable implements ITerminalAddon { if (beforeCommandExecution && !this._placeholderDecoration) { this._placeholderDecoration = decoration; this._placeholderDecoration.onDispose(() => this._placeholderDecoration = undefined); - } else { + } else if (!this._decorations.get(decoration.marker.id)) { decoration.onDispose(() => this._decorations.delete(decoration.marker.id)); this._decorations.set(decoration.marker.id, {