Skip to content

Commit

Permalink
#40196 Check active panel before revealing last line
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Dec 18, 2017
1 parent c79a70b commit 2f99434
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
(<OutputPanel>this.panelService.getActivePanel()).revealLastLine();
const panel = this.panelService.getActivePanel();
if (panel && panel.getId() === OUTPUT_PANEL_ID) {
(<OutputPanel>panel).revealLastLine();
}
}
}
}
Expand Down

0 comments on commit 2f99434

Please sign in to comment.