@theia/toolbar 1.39.0-next.9 → 1.40.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/lib/browser/abstract-toolbar-contribution.js +1 -1
- package/lib/browser/abstract-toolbar-contribution.js.map +1 -1
- package/lib/browser/application-shell-with-toolbar-override.js +1 -1
- package/lib/browser/application-shell-with-toolbar-override.js.map +1 -1
- package/lib/browser/codicons.js +1 -1
- package/lib/browser/codicons.js.map +1 -1
- package/lib/browser/font-awesome-icons.js +1 -1
- package/lib/browser/font-awesome-icons.js.map +1 -1
- package/lib/browser/package.spec.js +1 -1
- package/lib/browser/package.spec.js.map +1 -1
- package/lib/browser/toolbar-command-contribution.js +1 -1
- package/lib/browser/toolbar-command-contribution.js.map +1 -1
- package/lib/browser/toolbar-command-quick-input-service.js +8 -4
- package/lib/browser/toolbar-command-quick-input-service.js.map +1 -1
- package/lib/browser/toolbar-constants.js +1 -1
- package/lib/browser/toolbar-constants.js.map +1 -1
- package/lib/browser/toolbar-controller.js +2 -2
- package/lib/browser/toolbar-controller.js.map +1 -1
- package/lib/browser/toolbar-defaults.js +1 -1
- package/lib/browser/toolbar-defaults.js.map +1 -1
- package/lib/browser/toolbar-frontend-module.js +1 -1
- package/lib/browser/toolbar-frontend-module.js.map +1 -1
- package/lib/browser/toolbar-icon-selector-dialog.js +2 -2
- package/lib/browser/toolbar-icon-selector-dialog.js.map +1 -1
- package/lib/browser/toolbar-interfaces.js +1 -1
- package/lib/browser/toolbar-interfaces.js.map +1 -1
- package/lib/browser/toolbar-preference-contribution.js +1 -1
- package/lib/browser/toolbar-preference-contribution.js.map +1 -1
- package/lib/browser/toolbar-preference-schema.js +1 -1
- package/lib/browser/toolbar-preference-schema.js.map +1 -1
- package/lib/browser/toolbar-storage-provider.js +1 -1
- package/lib/browser/toolbar-storage-provider.js.map +1 -1
- package/lib/browser/toolbar.d.ts +0 -1
- package/lib/browser/toolbar.d.ts.map +1 -1
- package/lib/browser/toolbar.js +2 -14
- package/lib/browser/toolbar.js.map +1 -1
- package/package.json +11 -11
- package/src/browser/abstract-toolbar-contribution.tsx +1 -1
- package/src/browser/application-shell-with-toolbar-override.ts +1 -1
- package/src/browser/codicons.ts +1 -1
- package/src/browser/font-awesome-icons.ts +1 -1
- package/src/browser/package.spec.ts +1 -1
- package/src/browser/style/toolbar.css +107 -105
- package/src/browser/toolbar-command-contribution.ts +1 -1
- package/src/browser/toolbar-command-quick-input-service.ts +1 -1
- package/src/browser/toolbar-constants.ts +1 -1
- package/src/browser/toolbar-controller.ts +1 -1
- package/src/browser/toolbar-defaults.ts +1 -1
- package/src/browser/toolbar-frontend-module.ts +1 -1
- package/src/browser/toolbar-icon-selector-dialog.tsx +1 -1
- package/src/browser/toolbar-interfaces.ts +1 -1
- package/src/browser/toolbar-preference-contribution.ts +1 -1
- package/src/browser/toolbar-preference-schema.ts +1 -1
- package/src/browser/toolbar-storage-provider.ts +1 -1
- package/src/browser/toolbar.tsx +3 -16
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// with the GNU Classpath Exception which is available at
|
|
12
12
|
// https://www.gnu.org/software/classpath/license.html.
|
|
13
13
|
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import * as jsoncParser from 'jsonc-parser';
|
package/src/browser/toolbar.tsx
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// with the GNU Classpath Exception which is available at
|
|
12
12
|
// https://www.gnu.org/software/classpath/license.html.
|
|
13
13
|
//
|
|
14
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
14
|
+
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
15
15
|
// *****************************************************************************
|
|
16
16
|
|
|
17
17
|
import * as React from '@theia/core/shared/react';
|
|
@@ -51,7 +51,8 @@ export class ToolbarImpl extends TabBarToolbar {
|
|
|
51
51
|
protected isBusyDeferred = new Deferred<void>();
|
|
52
52
|
|
|
53
53
|
@postConstruct()
|
|
54
|
-
protected init(): void {
|
|
54
|
+
protected override init(): void {
|
|
55
|
+
super.init();
|
|
55
56
|
this.doInit();
|
|
56
57
|
}
|
|
57
58
|
|
|
@@ -312,20 +313,6 @@ export class ToolbarImpl extends TabBarToolbar {
|
|
|
312
313
|
);
|
|
313
314
|
}
|
|
314
315
|
|
|
315
|
-
protected resolveKeybindingForCommand(commandID: string | undefined): string {
|
|
316
|
-
if (!commandID) {
|
|
317
|
-
return '';
|
|
318
|
-
}
|
|
319
|
-
const keybindings = this.keybindingRegistry.getKeybindingsForCommand(commandID);
|
|
320
|
-
if (keybindings.length > 0) {
|
|
321
|
-
const binding = keybindings[0];
|
|
322
|
-
const bindingKeySequence = this.keybindingRegistry.resolveKeybinding(binding);
|
|
323
|
-
const keyCode = bindingKeySequence[0];
|
|
324
|
-
return ` (${this.keybindingRegistry.acceleratorForKeyCode(keyCode, '+')})`;
|
|
325
|
-
}
|
|
326
|
-
return '';
|
|
327
|
-
}
|
|
328
|
-
|
|
329
316
|
protected handleOnDragStart = (e: React.DragEvent<HTMLDivElement>): void => this.doHandleOnDragStart(e);
|
|
330
317
|
protected doHandleOnDragStart(e: React.DragEvent<HTMLDivElement>): void {
|
|
331
318
|
const draggedElement = e.currentTarget;
|