Skip to content

Commit e5b980d

Browse files
committed
1 parent 1324426 commit e5b980d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/contrib/terminal/browser/terminalInstance.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,9 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
12161216
this._onDidInputData.fire(this);
12171217
this._onDidSendText.fire(text);
12181218
this.xterm?.scrollToBottom();
1219-
this._onDidRunText.fire();
1219+
if (shouldExecute) {
1220+
this._onDidRunText.fire();
1221+
}
12201222
}
12211223

12221224
async sendPath(originalPath: string | URI, shouldExecute: boolean): Promise<void> {

0 commit comments

Comments
 (0)