@theia/core 1.28.0-next.9 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/i18n/nls.cs.json +33 -2
- package/i18n/nls.de.json +33 -2
- package/i18n/nls.es.json +33 -2
- package/i18n/nls.fr.json +33 -2
- package/i18n/nls.hu.json +33 -2
- package/i18n/nls.it.json +33 -2
- package/i18n/nls.ja.json +33 -2
- package/i18n/nls.json +35 -4
- package/i18n/nls.pl.json +33 -2
- package/i18n/nls.pt-br.json +33 -2
- package/i18n/nls.pt-pt.json +33 -2
- package/i18n/nls.ru.json +33 -2
- package/i18n/nls.zh-cn.json +33 -2
- package/lib/browser/common-frontend-contribution.d.ts +1 -1
- package/lib/browser/common-frontend-contribution.d.ts.map +1 -1
- package/lib/browser/common-frontend-contribution.js +6 -5
- package/lib/browser/common-frontend-contribution.js.map +1 -1
- package/lib/browser/context-key-service.d.ts +3 -1
- package/lib/browser/context-key-service.d.ts.map +1 -1
- package/lib/browser/context-menu-renderer.d.ts +5 -0
- package/lib/browser/context-menu-renderer.d.ts.map +1 -1
- package/lib/browser/frontend-application-module.d.ts.map +1 -1
- package/lib/browser/frontend-application-module.js +2 -0
- package/lib/browser/frontend-application-module.js.map +1 -1
- package/lib/browser/frontend-application.d.ts +3 -2
- package/lib/browser/frontend-application.d.ts.map +1 -1
- package/lib/browser/frontend-application.js.map +1 -1
- package/lib/browser/keybinding.d.ts.map +1 -1
- package/lib/browser/keybinding.js +9 -7
- package/lib/browser/keybinding.js.map +1 -1
- package/lib/browser/keybinding.spec.js +13 -3
- package/lib/browser/keybinding.spec.js.map +1 -1
- package/lib/browser/menu/browser-context-menu-renderer.d.ts +1 -1
- package/lib/browser/menu/browser-context-menu-renderer.d.ts.map +1 -1
- package/lib/browser/menu/browser-context-menu-renderer.js +2 -2
- package/lib/browser/menu/browser-context-menu-renderer.js.map +1 -1
- package/lib/browser/menu/browser-menu-plugin.d.ts +23 -24
- package/lib/browser/menu/browser-menu-plugin.d.ts.map +1 -1
- package/lib/browser/menu/browser-menu-plugin.js +62 -79
- package/lib/browser/menu/browser-menu-plugin.js.map +1 -1
- package/lib/browser/resource-context-key.d.ts +1 -0
- package/lib/browser/resource-context-key.d.ts.map +1 -1
- package/lib/browser/resource-context-key.js +8 -6
- package/lib/browser/resource-context-key.js.map +1 -1
- package/lib/browser/shell/shell-layout-restorer.d.ts.map +1 -1
- package/lib/browser/shell/shell-layout-restorer.js +2 -1
- package/lib/browser/shell/shell-layout-restorer.js.map +1 -1
- package/lib/browser/shell/side-panel-toolbar.d.ts.map +1 -1
- package/lib/browser/shell/side-panel-toolbar.js +0 -1
- package/lib/browser/shell/side-panel-toolbar.js.map +1 -1
- package/lib/browser/shell/tab-bar-toolbar/index.d.ts +4 -0
- package/lib/browser/shell/tab-bar-toolbar/index.d.ts.map +1 -0
- package/lib/browser/shell/tab-bar-toolbar/index.js +31 -0
- package/lib/browser/shell/tab-bar-toolbar/index.js.map +1 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-menu-adapters.d.ts +16 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-menu-adapters.d.ts.map +1 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-menu-adapters.js +36 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-menu-adapters.js.map +1 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-registry.d.ts +51 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-registry.d.ts.map +1 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-registry.js +173 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-registry.js.map +1 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-types.d.ts +119 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-types.d.ts.map +1 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-types.js +67 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar-types.js.map +1 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.d.ts +53 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.d.ts.map +1 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.js +264 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.js.map +1 -0
- package/lib/browser/shell/{tab-bar-toolbar.spec.d.ts → tab-bar-toolbar/tab-bar-toolbar.spec.d.ts} +0 -0
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.spec.d.ts.map +1 -0
- package/lib/browser/shell/{tab-bar-toolbar.spec.js → tab-bar-toolbar/tab-bar-toolbar.spec.js} +3 -3
- package/lib/browser/shell/tab-bar-toolbar/tab-bar-toolbar.spec.js.map +1 -0
- package/lib/browser/view-container.d.ts.map +1 -1
- package/lib/browser/view-container.js +1 -10
- package/lib/browser/view-container.js.map +1 -1
- package/lib/browser/widget-manager.d.ts.map +1 -1
- package/lib/browser/widget-manager.js +2 -1
- package/lib/browser/widget-manager.js.map +1 -1
- package/lib/browser/widget-manager.spec.js +13 -0
- package/lib/browser/widget-manager.spec.js.map +1 -1
- package/lib/browser/window/default-window-service.d.ts +2 -1
- package/lib/browser/window/default-window-service.d.ts.map +1 -1
- package/lib/browser/window/default-window-service.js +9 -4
- package/lib/browser/window/default-window-service.js.map +1 -1
- package/lib/browser/window/window-service.d.ts +2 -1
- package/lib/browser/window/window-service.d.ts.map +1 -1
- package/lib/browser/window/window-service.js.map +1 -1
- package/lib/common/color.d.ts +3 -0
- package/lib/common/color.d.ts.map +1 -1
- package/lib/common/frontend-application-state.d.ts +14 -0
- package/lib/common/frontend-application-state.d.ts.map +1 -1
- package/lib/common/frontend-application-state.js +16 -0
- package/lib/common/frontend-application-state.js.map +1 -1
- package/lib/common/menu/action-menu-node.d.ts +20 -0
- package/lib/common/menu/action-menu-node.d.ts.map +1 -0
- package/lib/common/menu/action-menu-node.js +57 -0
- package/lib/common/menu/action-menu-node.js.map +1 -0
- package/lib/common/menu/composite-menu-node.d.ts +52 -0
- package/lib/common/menu/composite-menu-node.d.ts.map +1 -0
- package/lib/common/menu/composite-menu-node.js +102 -0
- package/lib/common/menu/composite-menu-node.js.map +1 -0
- package/lib/common/menu/index.d.ts +6 -0
- package/lib/common/menu/index.d.ts.map +1 -0
- package/lib/common/menu/index.js +33 -0
- package/lib/common/menu/index.js.map +1 -0
- package/lib/common/menu/menu-adapter.d.ts +36 -0
- package/lib/common/menu/menu-adapter.d.ts.map +1 -0
- package/lib/common/menu/menu-adapter.js +101 -0
- package/lib/common/menu/menu-adapter.js.map +1 -0
- package/lib/common/{menu.d.ts → menu/menu-model-registry.d.ts} +22 -124
- package/lib/common/menu/menu-model-registry.d.ts.map +1 -0
- package/lib/common/{menu.js → menu/menu-model-registry.js} +71 -147
- package/lib/common/menu/menu-model-registry.js.map +1 -0
- package/lib/common/menu/menu-types.d.ts +120 -0
- package/lib/common/menu/menu-types.d.ts.map +1 -0
- package/lib/common/menu/menu-types.js +84 -0
- package/lib/common/menu/menu-types.js.map +1 -0
- package/lib/common/{menu.spec.d.ts → menu/menu.spec.d.ts} +0 -0
- package/lib/common/menu/menu.spec.d.ts.map +1 -0
- package/lib/common/{menu.spec.js → menu/menu.spec.js} +3 -3
- package/lib/common/menu/menu.spec.js.map +1 -0
- package/lib/common/messaging/abstract-connection-provider.d.ts +1 -1
- package/lib/common/messaging/abstract-connection-provider.js +3 -3
- package/lib/common/quick-pick-service.d.ts +1 -0
- package/lib/common/quick-pick-service.d.ts.map +1 -1
- package/lib/common/quick-pick-service.js.map +1 -1
- package/lib/electron-browser/menu/electron-context-menu-renderer.js +2 -2
- package/lib/electron-browser/menu/electron-context-menu-renderer.js.map +1 -1
- package/lib/electron-browser/menu/electron-main-menu-factory.d.ts +14 -5
- package/lib/electron-browser/menu/electron-main-menu-factory.d.ts.map +1 -1
- package/lib/electron-browser/menu/electron-main-menu-factory.js +71 -82
- package/lib/electron-browser/menu/electron-main-menu-factory.js.map +1 -1
- package/lib/electron-browser/menu/electron-menu-contribution.d.ts.map +1 -1
- package/lib/electron-browser/menu/electron-menu-contribution.js +6 -0
- package/lib/electron-browser/menu/electron-menu-contribution.js.map +1 -1
- package/lib/electron-browser/messaging/electron-ws-connection-provider.js +1 -1
- package/lib/electron-browser/window/electron-window-service.js +1 -1
- package/lib/electron-browser/window/electron-window-service.js.map +1 -1
- package/lib/electron-common/messaging/electron-messages.d.ts +3 -14
- package/lib/electron-common/messaging/electron-messages.d.ts.map +1 -1
- package/lib/electron-common/messaging/electron-messages.js +3 -16
- package/lib/electron-common/messaging/electron-messages.js.map +1 -1
- package/lib/electron-main/messaging/electron-messaging-contribution.d.ts +3 -3
- package/lib/electron-main/messaging/electron-messaging-contribution.js +6 -6
- package/package.json +7 -6
- package/src/browser/common-frontend-contribution.ts +6 -5
- package/src/browser/context-key-service.ts +1 -1
- package/src/browser/context-menu-renderer.ts +5 -0
- package/src/browser/frontend-application-module.ts +7 -1
- package/src/browser/frontend-application.ts +3 -2
- package/src/browser/keybinding.spec.ts +13 -3
- package/src/browser/keybinding.ts +8 -9
- package/src/browser/menu/browser-context-menu-renderer.ts +2 -2
- package/src/browser/menu/browser-menu-plugin.ts +74 -86
- package/src/browser/resource-context-key.ts +9 -6
- package/src/browser/shell/shell-layout-restorer.ts +2 -1
- package/src/browser/shell/side-panel-toolbar.ts +0 -1
- package/src/browser/shell/tab-bar-toolbar/index.ts +19 -0
- package/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar-menu-adapters.ts +31 -0
- package/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar-registry.ts +170 -0
- package/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar-types.ts +186 -0
- package/src/browser/shell/{tab-bar-toolbar.spec.ts → tab-bar-toolbar/tab-bar-toolbar.spec.ts} +2 -2
- package/src/browser/shell/tab-bar-toolbar/tab-bar-toolbar.tsx +261 -0
- package/src/browser/style/alert-messages.css +6 -0
- package/src/browser/view-container.ts +1 -10
- package/src/browser/widget-manager.spec.ts +14 -0
- package/src/browser/widget-manager.ts +2 -1
- package/src/browser/window/default-window-service.ts +9 -4
- package/src/browser/window/window-service.ts +2 -1
- package/src/common/color.ts +3 -0
- package/src/common/frontend-application-state.ts +15 -0
- package/src/common/menu/action-menu-node.ts +65 -0
- package/src/common/menu/composite-menu-node.ts +121 -0
- package/src/common/menu/index.ts +21 -0
- package/src/common/menu/menu-adapter.ts +103 -0
- package/src/common/{menu.ts → menu/menu-model-registry.ts} +61 -222
- package/src/common/menu/menu-types.ts +183 -0
- package/src/common/{menu.spec.ts → menu/menu.spec.ts} +3 -2
- package/src/common/messaging/abstract-connection-provider.ts +4 -4
- package/src/common/quick-pick-service.ts +1 -0
- package/src/electron-browser/menu/electron-context-menu-renderer.ts +2 -2
- package/src/electron-browser/menu/electron-main-menu-factory.ts +82 -96
- package/src/electron-browser/menu/electron-menu-contribution.ts +8 -0
- package/src/electron-browser/messaging/electron-ws-connection-provider.ts +1 -1
- package/src/electron-browser/window/electron-window-service.ts +1 -1
- package/src/electron-common/messaging/electron-messages.ts +4 -15
- package/src/electron-main/messaging/electron-messaging-contribution.ts +8 -8
- package/lib/browser/shell/tab-bar-toolbar.d.ts +0 -186
- package/lib/browser/shell/tab-bar-toolbar.d.ts.map +0 -1
- package/lib/browser/shell/tab-bar-toolbar.js +0 -362
- package/lib/browser/shell/tab-bar-toolbar.js.map +0 -1
- package/lib/browser/shell/tab-bar-toolbar.spec.d.ts.map +0 -1
- package/lib/browser/shell/tab-bar-toolbar.spec.js.map +0 -1
- package/lib/common/menu.d.ts.map +0 -1
- package/lib/common/menu.js.map +0 -1
- package/lib/common/menu.spec.d.ts.map +0 -1
- package/lib/common/menu.spec.js.map +0 -1
- package/src/browser/shell/tab-bar-toolbar.tsx +0 -495
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import * as electronRemote from '../../../electron-shared/@electron/remote';
|
|
20
20
|
import { inject, injectable, postConstruct } from 'inversify';
|
|
21
|
-
import {
|
|
22
|
-
isOSX, ActionMenuNode, CompositeMenuNode, MAIN_MENU_BAR, MenuPath, MenuNode
|
|
23
|
-
} from '../../common';
|
|
21
|
+
import { isOSX, MAIN_MENU_BAR, MenuPath, MenuNode, CommandMenuNode, CompoundMenuNode, CompoundMenuNodeRole } from '../../common';
|
|
24
22
|
import { Keybinding } from '../../common/keybinding';
|
|
25
23
|
import { PreferenceService, CommonCommands } from '../../browser';
|
|
26
24
|
import debounce = require('lodash.debounce');
|
|
@@ -36,6 +34,15 @@ export interface ElectronMenuOptions {
|
|
|
36
34
|
* Defaults to `true`.
|
|
37
35
|
*/
|
|
38
36
|
readonly showDisabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* A DOM context to use when evaluating any `when` clauses
|
|
39
|
+
* of menu items registered for this item.
|
|
40
|
+
*/
|
|
41
|
+
context?: HTMLElement;
|
|
42
|
+
/**
|
|
43
|
+
* The root menu path for which the menu is being built.
|
|
44
|
+
*/
|
|
45
|
+
rootMenuPath: MenuPath
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
/**
|
|
@@ -100,7 +107,7 @@ export class ElectronMainMenuFactory extends BrowserMainMenuFactory {
|
|
|
100
107
|
const maxWidget = document.getElementsByClassName(MAXIMIZED_CLASS);
|
|
101
108
|
if (preference === 'visible' || (preference === 'classic' && maxWidget.length === 0)) {
|
|
102
109
|
const menuModel = this.menuProvider.getMenu(MAIN_MENU_BAR);
|
|
103
|
-
const template = this.fillMenuTemplate([], menuModel);
|
|
110
|
+
const template = this.fillMenuTemplate([], menuModel, [], { rootMenuPath: MAIN_MENU_BAR });
|
|
104
111
|
if (isOSX) {
|
|
105
112
|
template.unshift(this.createOSXMenu());
|
|
106
113
|
}
|
|
@@ -116,111 +123,90 @@ export class ElectronMainMenuFactory extends BrowserMainMenuFactory {
|
|
|
116
123
|
return null;
|
|
117
124
|
}
|
|
118
125
|
|
|
119
|
-
createElectronContextMenu(menuPath: MenuPath, args?: any[]): Electron.Menu {
|
|
126
|
+
createElectronContextMenu(menuPath: MenuPath, args?: any[], context?: HTMLElement): Electron.Menu {
|
|
120
127
|
const menuModel = this.menuProvider.getMenu(menuPath);
|
|
121
|
-
const template = this.fillMenuTemplate([], menuModel, args, { showDisabled: false });
|
|
128
|
+
const template = this.fillMenuTemplate([], menuModel, args, { showDisabled: false, context, rootMenuPath: menuPath });
|
|
122
129
|
return electronRemote.Menu.buildFromTemplate(template);
|
|
123
130
|
}
|
|
124
131
|
|
|
125
|
-
protected fillMenuTemplate(
|
|
126
|
-
|
|
127
|
-
args:
|
|
128
|
-
options
|
|
132
|
+
protected fillMenuTemplate(parentItems: Electron.MenuItemConstructorOptions[],
|
|
133
|
+
menu: MenuNode,
|
|
134
|
+
args: unknown[] = [],
|
|
135
|
+
options: ElectronMenuOptions
|
|
129
136
|
): Electron.MenuItemConstructorOptions[] {
|
|
130
|
-
const showDisabled =
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
label: menu.label,
|
|
145
|
-
submenu
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
} else { // group node
|
|
149
|
-
|
|
150
|
-
// process children
|
|
151
|
-
const submenu = this.fillMenuTemplate([], menu, args, options);
|
|
152
|
-
if (submenu.length === 0) {
|
|
153
|
-
continue;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
if (items.length > 0) {
|
|
157
|
-
// do not put a separator above the first group
|
|
158
|
-
|
|
159
|
-
items.push({
|
|
160
|
-
type: 'separator'
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// render children
|
|
165
|
-
items.push(...submenu);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
} else if (menu instanceof ActionMenuNode) {
|
|
169
|
-
const node = menu.altNode && this.context.altPressed ? menu.altNode : menu;
|
|
170
|
-
const commandId = node.action.commandId;
|
|
171
|
-
|
|
172
|
-
// That is only a sanity check at application startup.
|
|
173
|
-
if (!this.commandRegistry.getCommand(commandId)) {
|
|
174
|
-
console.debug(`Skipping menu item with missing command: "${commandId}".`);
|
|
175
|
-
continue;
|
|
137
|
+
const showDisabled = options?.showDisabled !== false;
|
|
138
|
+
|
|
139
|
+
if (CompoundMenuNode.is(menu) && menu.children.length && this.undefinedOrMatch(menu.when, options.context)) {
|
|
140
|
+
const role = CompoundMenuNode.getRole(menu);
|
|
141
|
+
if (role === CompoundMenuNodeRole.Group && menu.id === 'inline') { return parentItems; }
|
|
142
|
+
const children = CompoundMenuNode.getFlatChildren(menu.children);
|
|
143
|
+
const myItems: Electron.MenuItemConstructorOptions[] = [];
|
|
144
|
+
children.forEach(child => this.fillMenuTemplate(myItems, child, args, options));
|
|
145
|
+
if (myItems.length === 0) { return parentItems; }
|
|
146
|
+
if (role === CompoundMenuNodeRole.Submenu) {
|
|
147
|
+
parentItems.push({ label: menu.label, submenu: myItems });
|
|
148
|
+
} else if (role === CompoundMenuNodeRole.Group && menu.id !== 'inline') {
|
|
149
|
+
if (parentItems.length && parentItems[parentItems.length - 1].type !== 'separator') {
|
|
150
|
+
parentItems.push({ type: 'separator' });
|
|
176
151
|
}
|
|
152
|
+
parentItems.push(...myItems);
|
|
153
|
+
parentItems.push({ type: 'separator' });
|
|
154
|
+
}
|
|
155
|
+
} else if (menu.command) {
|
|
156
|
+
const node = menu.altNode && this.context.altPressed ? menu.altNode : (menu as MenuNode & CommandMenuNode);
|
|
157
|
+
const commandId = node.command;
|
|
158
|
+
|
|
159
|
+
// That is only a sanity check at application startup.
|
|
160
|
+
if (!this.commandRegistry.getCommand(commandId)) {
|
|
161
|
+
console.debug(`Skipping menu item with missing command: "${commandId}".`);
|
|
162
|
+
return parentItems;
|
|
163
|
+
}
|
|
177
164
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
165
|
+
if (!this.menuCommandExecutor.isVisible(options.rootMenuPath, commandId, ...args) || !this.undefinedOrMatch(node.when, options.context)) {
|
|
166
|
+
return parentItems;
|
|
167
|
+
}
|
|
182
168
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
169
|
+
// We should omit rendering context-menu items which are disabled.
|
|
170
|
+
if (!showDisabled && !this.menuCommandExecutor.isEnabled(options.rootMenuPath, commandId, ...args)) {
|
|
171
|
+
return parentItems;
|
|
172
|
+
}
|
|
187
173
|
|
|
188
|
-
|
|
174
|
+
const bindings = this.keybindingRegistry.getKeybindingsForCommand(commandId);
|
|
189
175
|
|
|
190
|
-
|
|
176
|
+
const accelerator = bindings[0] && this.acceleratorFor(bindings[0]);
|
|
191
177
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
178
|
+
const menuItem: Electron.MenuItemConstructorOptions = {
|
|
179
|
+
id: node.id,
|
|
180
|
+
label: node.label,
|
|
181
|
+
type: this.commandRegistry.getToggledHandler(commandId, ...args) ? 'checkbox' : 'normal',
|
|
182
|
+
checked: this.commandRegistry.isToggled(commandId, ...args),
|
|
183
|
+
enabled: true, // https://github.com/eclipse-theia/theia/issues/446
|
|
184
|
+
visible: true,
|
|
185
|
+
accelerator,
|
|
186
|
+
click: () => this.execute(commandId, args, options.rootMenuPath)
|
|
187
|
+
};
|
|
202
188
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
189
|
+
if (isOSX) {
|
|
190
|
+
const role = this.roleFor(node.id);
|
|
191
|
+
if (role) {
|
|
192
|
+
menuItem.role = role;
|
|
193
|
+
delete menuItem.click;
|
|
209
194
|
}
|
|
210
|
-
|
|
195
|
+
}
|
|
196
|
+
parentItems.push(menuItem);
|
|
211
197
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
} else {
|
|
216
|
-
items.push(...this.handleElectronDefault(menu, args, options));
|
|
198
|
+
if (this.commandRegistry.getToggledHandler(commandId, ...args)) {
|
|
199
|
+
this._toggledCommands.add(commandId);
|
|
217
200
|
}
|
|
218
201
|
}
|
|
219
|
-
return
|
|
202
|
+
return parentItems;
|
|
220
203
|
}
|
|
221
204
|
|
|
222
|
-
protected
|
|
223
|
-
|
|
205
|
+
protected undefinedOrMatch(expression?: string, context?: HTMLElement): boolean {
|
|
206
|
+
if (expression) {
|
|
207
|
+
return this.contextKeyService.match(expression, context);
|
|
208
|
+
}
|
|
209
|
+
return true;
|
|
224
210
|
}
|
|
225
211
|
|
|
226
212
|
/**
|
|
@@ -268,17 +254,17 @@ export class ElectronMainMenuFactory extends BrowserMainMenuFactory {
|
|
|
268
254
|
return role;
|
|
269
255
|
}
|
|
270
256
|
|
|
271
|
-
protected async execute(command: string, args: any[]): Promise<void> {
|
|
257
|
+
protected async execute(command: string, args: any[], menuPath: MenuPath): Promise<void> {
|
|
272
258
|
try {
|
|
273
259
|
// This is workaround for https://github.com/eclipse-theia/theia/issues/446.
|
|
274
260
|
// Electron menus do not update based on the `isEnabled`, `isVisible` property of the command.
|
|
275
261
|
// We need to check if we can execute it.
|
|
276
|
-
if (this.
|
|
277
|
-
await this.
|
|
278
|
-
if (this._menu && this.
|
|
262
|
+
if (this.menuCommandExecutor.isEnabled(menuPath, command, ...args)) {
|
|
263
|
+
await this.menuCommandExecutor.executeCommand(menuPath, command, ...args);
|
|
264
|
+
if (this._menu && this.menuCommandExecutor.isVisible(menuPath, command, ...args)) {
|
|
279
265
|
const item = this._menu.getMenuItemById(command);
|
|
280
266
|
if (item) {
|
|
281
|
-
item.checked = this.
|
|
267
|
+
item.checked = this.menuCommandExecutor.isToggled(menuPath, command, ...args);
|
|
282
268
|
electronRemote.getCurrentWindow().setMenu(this._menu);
|
|
283
269
|
}
|
|
284
270
|
}
|
|
@@ -337,6 +337,14 @@ export class ElectronMenuContribution extends BrowserMenuBarContribution impleme
|
|
|
337
337
|
command: ElectronCommands.ZOOM_IN.id,
|
|
338
338
|
keybinding: 'ctrlcmd+='
|
|
339
339
|
},
|
|
340
|
+
{
|
|
341
|
+
command: ElectronCommands.ZOOM_IN.id,
|
|
342
|
+
keybinding: 'ctrlcmd+add'
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
command: ElectronCommands.ZOOM_OUT.id,
|
|
346
|
+
keybinding: 'ctrlcmd+subtract'
|
|
347
|
+
},
|
|
340
348
|
{
|
|
341
349
|
command: ElectronCommands.ZOOM_OUT.id,
|
|
342
350
|
keybinding: 'ctrlcmd+-'
|
|
@@ -37,7 +37,7 @@ export class ElectronWebSocketConnectionProvider extends WebSocketConnectionProv
|
|
|
37
37
|
// Manually close the websocket connections `onStop`. Otherwise, the channels will be closed with 30 sec (`MessagingContribution#checkAliveTimeout`) delay.
|
|
38
38
|
// https://github.com/eclipse-theia/theia/issues/6499
|
|
39
39
|
// `1001` indicates that an endpoint is "going away", such as a server going down or a browser having navigated away from a page.
|
|
40
|
-
this.
|
|
40
|
+
this.channelMultiplexer?.onUnderlyingChannelClose({ reason: 'The frontend is "going away"', code: 1001 });
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
override async openChannel(path: string, handler: (channel: Channel) => void, options?: WebSocketOptions): Promise<void> {
|
|
@@ -72,7 +72,7 @@ export class ElectronWindowService extends DefaultWindowService {
|
|
|
72
72
|
* after running FrontendApplication `onWillStop` handlers or on the `cancelChannel` if it is not safe to exit.
|
|
73
73
|
*/
|
|
74
74
|
protected async handleCloseRequestedEvent(event: CloseRequestArguments): Promise<void> {
|
|
75
|
-
const safeToClose = await this.isSafeToShutDown();
|
|
75
|
+
const safeToClose = await this.isSafeToShutDown(event.reason);
|
|
76
76
|
if (safeToClose) {
|
|
77
77
|
console.debug(`Shutting down because of ${StopReason[event.reason]} request.`);
|
|
78
78
|
electron.ipcRenderer.send(event.confirmChannel);
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
|
+
import { StopReason } from '../../common/frontend-application-state';
|
|
18
|
+
/** @deprecated @since 1.28 import from common/frontend-application-state instead */
|
|
19
|
+
export { StopReason };
|
|
20
|
+
|
|
17
21
|
export const RequestTitleBarStyle = 'requestTitleBarStyle';
|
|
18
22
|
export const TitleBarStyleChanged = 'titleBarStyleChanged';
|
|
19
23
|
export const TitleBarStyleAtStartup = 'titleBarStyleAtStartup';
|
|
@@ -31,21 +35,6 @@ export const RELOAD_REQUESTED_SIGNAL = 'reload-requested';
|
|
|
31
35
|
*/
|
|
32
36
|
export const APPLICATION_STATE_CHANGE_SIGNAL = 'application-state-changed';
|
|
33
37
|
|
|
34
|
-
export enum StopReason {
|
|
35
|
-
/**
|
|
36
|
-
* Closing the window with no prospect of restart.
|
|
37
|
-
*/
|
|
38
|
-
Close,
|
|
39
|
-
/**
|
|
40
|
-
* Reload without closing the window.
|
|
41
|
-
*/
|
|
42
|
-
Reload,
|
|
43
|
-
/**
|
|
44
|
-
* Reload that includes closing the window.
|
|
45
|
-
*/
|
|
46
|
-
Restart, // eslint-disable-line @typescript-eslint/no-shadow
|
|
47
|
-
}
|
|
48
|
-
|
|
49
38
|
export interface CloseRequestArguments {
|
|
50
39
|
confirmChannel: string;
|
|
51
40
|
cancelChannel: string;
|
|
@@ -44,9 +44,9 @@ export class ElectronMessagingContribution implements ElectronMainApplicationCon
|
|
|
44
44
|
|
|
45
45
|
protected readonly channelHandlers = new MessagingContribution.ConnectionHandlers<Channel>();
|
|
46
46
|
/**
|
|
47
|
-
* Each electron window has a main
|
|
47
|
+
* Each electron window has a main channel and its own multiplexer to route multiple client messages the same IPC connection.
|
|
48
48
|
*/
|
|
49
|
-
protected readonly windowChannelMultiplexer = new Map<number, { channel: ElectronWebContentChannel,
|
|
49
|
+
protected readonly windowChannelMultiplexer = new Map<number, { channel: ElectronWebContentChannel, multiplexer: ChannelMultiplexer }>();
|
|
50
50
|
|
|
51
51
|
@postConstruct()
|
|
52
52
|
protected init(): void {
|
|
@@ -67,10 +67,10 @@ export class ElectronMessagingContribution implements ElectronMainApplicationCon
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
// Creates a new multiplexer for a given sender/window
|
|
70
|
-
protected createWindowChannelData(sender: Electron.WebContents): { channel: ElectronWebContentChannel,
|
|
70
|
+
protected createWindowChannelData(sender: Electron.WebContents): { channel: ElectronWebContentChannel, multiplexer: ChannelMultiplexer } {
|
|
71
71
|
const mainChannel = this.createWindowMainChannel(sender);
|
|
72
|
-
const
|
|
73
|
-
|
|
72
|
+
const multiplexer = new ChannelMultiplexer(mainChannel);
|
|
73
|
+
multiplexer.onDidOpenChannel(openEvent => {
|
|
74
74
|
const { channel, id } = openEvent;
|
|
75
75
|
if (this.channelHandlers.route(id, channel)) {
|
|
76
76
|
console.debug(`Opening channel for service path '${id}'.`);
|
|
@@ -78,9 +78,9 @@ export class ElectronMessagingContribution implements ElectronMainApplicationCon
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
sender.once('did-navigate', () =>
|
|
82
|
-
sender.once('destroyed', () =>
|
|
83
|
-
const data = { channel: mainChannel,
|
|
81
|
+
sender.once('did-navigate', () => multiplexer.onUnderlyingChannelClose({ reason: 'Window was refreshed' })); // When refreshing the browser window.
|
|
82
|
+
sender.once('destroyed', () => multiplexer.onUnderlyingChannelClose({ reason: 'Window was closed' })); // When closing the browser window.
|
|
83
|
+
const data = { channel: mainChannel, multiplexer };
|
|
84
84
|
this.windowChannelMultiplexer.set(sender.id, data);
|
|
85
85
|
return data;
|
|
86
86
|
}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
/// <reference types="lodash" />
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Widget, ReactWidget } from '../widgets';
|
|
4
|
-
import { LabelParser } from '../label-parser';
|
|
5
|
-
import { ContributionProvider } from '../../common/contribution-provider';
|
|
6
|
-
import { FrontendApplicationContribution } from '../frontend-application';
|
|
7
|
-
import { CommandRegistry } from '../../common/command';
|
|
8
|
-
import { Disposable, DisposableCollection } from '../../common/disposable';
|
|
9
|
-
import { ContextKeyService } from '../context-key-service';
|
|
10
|
-
import { Event, Emitter } from '../../common/event';
|
|
11
|
-
import { ContextMenuRenderer, Anchor } from '../context-menu-renderer';
|
|
12
|
-
import { MenuModelRegistry } from '../../common/menu';
|
|
13
|
-
/**
|
|
14
|
-
* Clients should implement this interface if they want to contribute to the tab-bar toolbar.
|
|
15
|
-
*/
|
|
16
|
-
export declare const TabBarToolbarContribution: unique symbol;
|
|
17
|
-
/**
|
|
18
|
-
* Representation of a tabbar toolbar contribution.
|
|
19
|
-
*/
|
|
20
|
-
export interface TabBarToolbarContribution {
|
|
21
|
-
/**
|
|
22
|
-
* Registers toolbar items.
|
|
23
|
-
* @param registry the tabbar toolbar registry.
|
|
24
|
-
*/
|
|
25
|
-
registerToolbarItems(registry: TabBarToolbarRegistry): void;
|
|
26
|
-
}
|
|
27
|
-
export interface TabBarDelegator extends Widget {
|
|
28
|
-
getTabBarDelegate(): Widget | undefined;
|
|
29
|
-
}
|
|
30
|
-
export declare namespace TabBarDelegator {
|
|
31
|
-
const is: (candidate?: Widget | undefined) => candidate is TabBarDelegator;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Representation of an item in the tab
|
|
35
|
-
*/
|
|
36
|
-
export interface TabBarToolbarItem {
|
|
37
|
-
/**
|
|
38
|
-
* The unique ID of the toolbar item.
|
|
39
|
-
*/
|
|
40
|
-
readonly id: string;
|
|
41
|
-
/**
|
|
42
|
-
* The command to execute.
|
|
43
|
-
*/
|
|
44
|
-
readonly command: string;
|
|
45
|
-
/**
|
|
46
|
-
* Optional text of the item.
|
|
47
|
-
*
|
|
48
|
-
* Shamelessly copied and reused from `status-bar`:
|
|
49
|
-
*
|
|
50
|
-
* More details about the available `fontawesome` icons and CSS class names can be hound [here](http://fontawesome.io/icons/).
|
|
51
|
-
* To set a text with icon use the following pattern in text string:
|
|
52
|
-
* ```typescript
|
|
53
|
-
* $(fontawesomeClassName)
|
|
54
|
-
* ```
|
|
55
|
-
*
|
|
56
|
-
* To use animated icons use the following pattern:
|
|
57
|
-
* ```typescript
|
|
58
|
-
* $(fontawesomeClassName~typeOfAnimation)
|
|
59
|
-
* ````
|
|
60
|
-
* The type of animation can be either `spin` or `pulse`.
|
|
61
|
-
* Look [here](http://fontawesome.io/examples/#animated) for more information to animated icons.
|
|
62
|
-
*/
|
|
63
|
-
readonly text?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Priority among the items. Can be negative. The smaller the number the left-most the item will be placed in the toolbar. It is `0` by default.
|
|
66
|
-
*/
|
|
67
|
-
readonly priority?: number;
|
|
68
|
-
/**
|
|
69
|
-
* Optional group for the item. Default `navigation`.
|
|
70
|
-
* `navigation` group will be inlined, while all the others will be within the `...` dropdown.
|
|
71
|
-
* A group in format `submenu_group_1/submenu 1/.../submenu_group_n/ submenu n/item_group` means that the item will be located in a submenu(s) of the `...` dropdown.
|
|
72
|
-
* The submenu's title is named by the submenu section name, e.g. `group/<submenu name>/subgroup`.
|
|
73
|
-
*/
|
|
74
|
-
readonly group?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Optional tooltip for the item.
|
|
77
|
-
*/
|
|
78
|
-
readonly tooltip?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Optional icon for the item.
|
|
81
|
-
*/
|
|
82
|
-
readonly icon?: string | (() => string);
|
|
83
|
-
/**
|
|
84
|
-
* https://code.visualstudio.com/docs/getstarted/keybindings#_when-clause-contexts
|
|
85
|
-
*/
|
|
86
|
-
readonly when?: string;
|
|
87
|
-
/**
|
|
88
|
-
* When defined, the container tool-bar will be updated if this event is fired.
|
|
89
|
-
*
|
|
90
|
-
* Note: currently, each item of the container toolbar will be re-rendered if any of the items have changed.
|
|
91
|
-
*/
|
|
92
|
-
readonly onDidChange?: Event<void>;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Tab-bar toolbar item backed by a `React.ReactNode`.
|
|
96
|
-
* Unlike the `TabBarToolbarItem`, this item is not connected to the command service.
|
|
97
|
-
*/
|
|
98
|
-
export interface ReactTabBarToolbarItem {
|
|
99
|
-
readonly id: string;
|
|
100
|
-
render(widget?: Widget): React.ReactNode;
|
|
101
|
-
readonly onDidChange?: Event<void>;
|
|
102
|
-
isVisible?(widget: Widget): boolean;
|
|
103
|
-
readonly when?: string;
|
|
104
|
-
readonly priority?: number;
|
|
105
|
-
/**
|
|
106
|
-
* Optional group for the item. Default `navigation`. Always inlined.
|
|
107
|
-
*/
|
|
108
|
-
readonly group?: string;
|
|
109
|
-
}
|
|
110
|
-
export declare namespace TabBarToolbarItem {
|
|
111
|
-
/**
|
|
112
|
-
* Compares the items by `priority` in ascending. Undefined priorities will be treated as `0`.
|
|
113
|
-
*/
|
|
114
|
-
const PRIORITY_COMPARATOR: (left: TabBarToolbarItem, right: TabBarToolbarItem) => number;
|
|
115
|
-
function is(arg: Object | undefined): arg is TabBarToolbarItem;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Main, shared registry for tab-bar toolbar items.
|
|
119
|
-
*/
|
|
120
|
-
export declare class TabBarToolbarRegistry implements FrontendApplicationContribution {
|
|
121
|
-
protected items: Map<string, TabBarToolbarItem | ReactTabBarToolbarItem>;
|
|
122
|
-
protected readonly commandRegistry: CommandRegistry;
|
|
123
|
-
protected readonly contextKeyService: ContextKeyService;
|
|
124
|
-
protected readonly contributionProvider: ContributionProvider<TabBarToolbarContribution>;
|
|
125
|
-
protected readonly onDidChangeEmitter: Emitter<void>;
|
|
126
|
-
readonly onDidChange: Event<void>;
|
|
127
|
-
protected fireOnDidChange: import("lodash").DebouncedFunc<() => any>;
|
|
128
|
-
onStart(): void;
|
|
129
|
-
/**
|
|
130
|
-
* Registers the given item. Throws an error, if the corresponding command cannot be found or an item has been already registered for the desired command.
|
|
131
|
-
*
|
|
132
|
-
* @param item the item to register.
|
|
133
|
-
*/
|
|
134
|
-
registerItem(item: TabBarToolbarItem | ReactTabBarToolbarItem): Disposable;
|
|
135
|
-
/**
|
|
136
|
-
* Returns an array of tab-bar toolbar items which are visible when the `widget` argument is the current one.
|
|
137
|
-
*
|
|
138
|
-
* By default returns with all items where the command is enabled and `item.isVisible` is `true`.
|
|
139
|
-
*/
|
|
140
|
-
visibleItems(widget: Widget): Array<TabBarToolbarItem | ReactTabBarToolbarItem>;
|
|
141
|
-
unregisterItem(itemOrId: TabBarToolbarItem | ReactTabBarToolbarItem | string): void;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Factory for instantiating tab-bar toolbars.
|
|
145
|
-
*/
|
|
146
|
-
export declare const TabBarToolbarFactory: unique symbol;
|
|
147
|
-
export interface TabBarToolbarFactory {
|
|
148
|
-
(): TabBarToolbar;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Tab-bar toolbar widget representing the active [tab-bar toolbar items](TabBarToolbarItem).
|
|
152
|
-
*/
|
|
153
|
-
export declare class TabBarToolbar extends ReactWidget {
|
|
154
|
-
protected current: Widget | undefined;
|
|
155
|
-
protected inline: Map<string, TabBarToolbarItem | ReactTabBarToolbarItem>;
|
|
156
|
-
protected more: Map<string, TabBarToolbarItem>;
|
|
157
|
-
protected readonly commands: CommandRegistry;
|
|
158
|
-
protected readonly labelParser: LabelParser;
|
|
159
|
-
protected readonly menus: MenuModelRegistry;
|
|
160
|
-
protected readonly contextMenuRenderer: ContextMenuRenderer;
|
|
161
|
-
protected readonly toolbarRegistry: TabBarToolbarRegistry;
|
|
162
|
-
constructor();
|
|
163
|
-
updateItems(items: Array<TabBarToolbarItem | ReactTabBarToolbarItem>, current: Widget | undefined): void;
|
|
164
|
-
updateTarget(current?: Widget): void;
|
|
165
|
-
protected readonly toDisposeOnSetCurrent: DisposableCollection;
|
|
166
|
-
protected setCurrent(current: Widget | undefined): void;
|
|
167
|
-
protected render(): React.ReactNode;
|
|
168
|
-
protected renderItem(item: TabBarToolbarItem): React.ReactNode;
|
|
169
|
-
protected getToolbarItemClassNames(commandId: string | undefined): string;
|
|
170
|
-
protected renderMore(): React.ReactNode;
|
|
171
|
-
protected showMoreContextMenu: (event: React.MouseEvent) => void;
|
|
172
|
-
renderMoreContextMenu(anchor: Anchor): any;
|
|
173
|
-
shouldHandleMouseEvent(event: MouseEvent): boolean;
|
|
174
|
-
protected commandIsEnabled(command: string): boolean;
|
|
175
|
-
protected commandIsToggled(command: string): boolean;
|
|
176
|
-
protected executeCommand: (e: React.MouseEvent<HTMLElement>) => void;
|
|
177
|
-
protected onMouseDownEvent: (e: React.MouseEvent<HTMLElement>) => void;
|
|
178
|
-
protected onMouseUpEvent: (e: React.MouseEvent<HTMLElement>) => void;
|
|
179
|
-
}
|
|
180
|
-
export declare namespace TabBarToolbar {
|
|
181
|
-
namespace Styles {
|
|
182
|
-
const TAB_BAR_TOOLBAR = "p-TabBar-toolbar";
|
|
183
|
-
const TAB_BAR_TOOLBAR_ITEM = "item";
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
//# sourceMappingURL=tab-bar-toolbar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tab-bar-toolbar.d.ts","sourceRoot":"","sources":["../../../src/browser/shell/tab-bar-toolbar.tsx"],"names":[],"mappings":";AAiBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,WAAW,EAAwB,MAAM,YAAY,CAAC;AACvE,OAAO,EAAE,WAAW,EAAa,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAA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