Context should be undefined when there nis no context (#214656)

* fix titlebar editor actions context on startup

* fix titlebar editor actions context on startup

* remove listener
This commit is contained in:
Benjamin Christopher Simmonds 2024-06-07 17:11:02 -07:00 committed by GitHub
parent 76664e7ce6
commit 39b3c5b936
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -634,7 +634,7 @@ export class BrowserTitlebarPart extends Part implements ITitlebarPart {
this.editorToolbarMenuDisposables.add(this.actionToolBar.actionRunner);
} else {
this.actionToolBar.actionRunner = new ActionRunner();
this.actionToolBar.context = {};
this.actionToolBar.context = undefined;
this.editorToolbarMenuDisposables.add(this.actionToolBar.actionRunner);
}