editor toolbar: set debounce delay to 0 (fix #131584)

This commit is contained in:
Benjamin Pasero
2021-08-25 17:10:38 +02:00
parent 1c0b279cc7
commit bed61166fb

View File

@@ -227,7 +227,7 @@ export abstract class TitleControl extends Themable {
const activeEditorPane = this.group.activeEditorPane;
if (activeEditorPane instanceof EditorPane) {
const scopedContextKeyService = activeEditorPane.scopedContextKeyService ?? this.contextKeyService;
const titleBarMenu = this.menuService.createMenu(MenuId.EditorTitle, scopedContextKeyService, { emitEventsForSubmenuChanges: true });
const titleBarMenu = this.menuService.createMenu(MenuId.EditorTitle, scopedContextKeyService, { emitEventsForSubmenuChanges: true, eventDebounceDelay: 0 });
this.editorToolBarMenuDisposables.add(titleBarMenu);
this.editorToolBarMenuDisposables.add(titleBarMenu.onDidChange(() => {
this.updateEditorActionsToolbar(); // Update editor toolbar whenever contributed actions change