Skip to content

Commit

Permalink
update listener name
Browse files Browse the repository at this point in the history
Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto committed Feb 15, 2023
1 parent e0c89a7 commit 7953978
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ export class WebviewContextKeys {
@postConstruct()
protected postConstruct(): void {
this.activeWebviewPanelId = this.contextKeyService.createKey('activeWebviewPanelId', undefined);
this.applicationShell.onDidChangeCurrentWidget(this.handleDidChangeActiveWidget, this);
this.applicationShell.onDidChangeCurrentWidget(this.handleDidChangeCurrentWidget, this);
}

protected handleDidChangeActiveWidget(change: FocusTracker.IChangedArgs<Widget>): void {
protected handleDidChangeCurrentWidget(change: FocusTracker.IChangedArgs<Widget>): void {
if (change.newValue instanceof WebviewWidget) {
this.activeWebviewPanelId.set(change.newValue.viewType);
} else {
Expand Down

0 comments on commit 7953978

Please sign in to comment.