Skip to content

Commit

Permalink
[terminal] fix #6797: terminal change event bug
Browse files Browse the repository at this point in the history
TerminalFrontendContribution.onDidChangeCurrentTerminal should be assigned this.onDidChangeCurrentTerminalEmitter.event

Signed-off-by: Gan Lin <ganlinbupt@163.com>
  • Loading branch information
Gan Lin authored and akosyakov committed Dec 30, 2019
1 parent c99cc1d commit a99b585
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class TerminalFrontendContribution implements TerminalService, CommandCon
readonly onDidCreateTerminal: Event<TerminalWidget> = this.onDidCreateTerminalEmitter.event;

protected readonly onDidChangeCurrentTerminalEmitter = new Emitter<TerminalWidget | undefined>();
readonly onDidChangeCurrentTerminal: Event<TerminalWidget | undefined> = this.onDidCreateTerminalEmitter.event;
readonly onDidChangeCurrentTerminal: Event<TerminalWidget | undefined> = this.onDidChangeCurrentTerminalEmitter.event;

@inject(ContextKeyService)
protected readonly contextKeyService: ContextKeyService;
Expand Down

0 comments on commit a99b585

Please sign in to comment.