Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Jul 26, 2018
1 parent c412116 commit ef5c70c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export class MarkersPanel extends Panel {
this.delayedRefresh = new Delayer<void>(500);
this.autoExpanded = new Set<string>();
this.panelSettings = this.getMemento(storageService, Scope.WORKSPACE);
this.setCurrentActiveEditor();
}

public create(parent: HTMLElement): TPromise<void> {
Expand Down Expand Up @@ -269,9 +270,13 @@ export class MarkersPanel extends Panel {
}

private onActiveEditorChanged(): void {
this.setCurrentActiveEditor();
this.autoReveal();
}

private setCurrentActiveEditor(): void {
const activeEditor = this.editorService.activeEditor;
this.currentActiveResource = activeEditor ? activeEditor.getResource() : void 0;
this.autoReveal();
}

private onSelected(): void {
Expand Down

0 comments on commit ef5c70c

Please sign in to comment.