Skip to content

Commit

Permalink
Update recent menu items on formatter registration
Browse files Browse the repository at this point in the history
  • Loading branch information
sbatten committed Jan 16, 2019
1 parent 041b930 commit 221da42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vs/workbench/browser/parts/titlebar/menubarControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ export class MenubarControl extends Disposable {
this.menubar.blur();
}));
}

// Update recent menu items on formatter registration
this._register(this.labelService.onDidRegisterFormatter(() => { this.onRecentlyOpenedChange(); }));
}

private doUpdateMenubar(firstTime: boolean): void {
Expand Down

0 comments on commit 221da42

Please sign in to comment.