From 2f994348b93e9fff74146e96e2d32383898d84f7 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Mon, 18 Dec 2017 20:21:50 +0100 Subject: [PATCH] #40196 Check active panel before revealing last line --- .../parts/output/electron-browser/outputServices.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/parts/output/electron-browser/outputServices.ts b/src/vs/workbench/parts/output/electron-browser/outputServices.ts index 43c19872cd99a..1fc89cd43ae38 100644 --- a/src/vs/workbench/parts/output/electron-browser/outputServices.ts +++ b/src/vs/workbench/parts/output/electron-browser/outputServices.ts @@ -143,7 +143,10 @@ abstract class AbstractOutputChannel extends Disposable { model.applyEdits([EditOperation.insert(new Position(lastLine, lastLineMaxColumn), content)]); this.endOffset = this.endOffset + new Buffer(content).byteLength; if (!this.scrollLock) { - (this.panelService.getActivePanel()).revealLastLine(); + const panel = this.panelService.getActivePanel(); + if (panel && panel.getId() === OUTPUT_PANEL_ID) { + (panel).revealLastLine(); + } } } }