@codingame/monaco-vscode-view-title-bar-service-override 23.2.2 → 24.1.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/package.json +2 -10
- package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +4 -4
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +12 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-title-bar-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-title-bar service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,15 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-
|
|
19
|
-
"@codingame/monaco-vscode-18b21911-2b39-5976-87a4-ea863f4c4e0e-common": "23.2.2",
|
|
20
|
-
"@codingame/monaco-vscode-3b5a5cd1-d4ff-500a-b609-57e0cd4afa0a-common": "23.2.2",
|
|
21
|
-
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "23.2.2",
|
|
22
|
-
"@codingame/monaco-vscode-4bf376c2-03c7-58cb-8303-c67aeefa3d3d-common": "23.2.2",
|
|
23
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "23.2.2",
|
|
24
|
-
"@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "23.2.2",
|
|
25
|
-
"@codingame/monaco-vscode-96e83782-7f38-572e-8787-02e981f1c54f-common": "23.2.2",
|
|
26
|
-
"@codingame/monaco-vscode-api": "23.2.2"
|
|
18
|
+
"@codingame/monaco-vscode-api": "24.1.0"
|
|
27
19
|
},
|
|
28
20
|
"main": "index.js",
|
|
29
21
|
"module": "index.js",
|
|
@@ -2,7 +2,7 @@ import { IHoverDelegate } from "@codingame/monaco-vscode-api/vscode/vs/base/brow
|
|
|
2
2
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
3
3
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
4
|
import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
5
|
-
import { WindowTitle } from "@codingame/monaco-vscode-
|
|
5
|
+
import { WindowTitle } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/titlebar/windowTitle";
|
|
6
6
|
export declare class CommandCenterControl {
|
|
7
7
|
private readonly _disposables;
|
|
8
8
|
private readonly _onDidChangeVisibility;
|
|
@@ -146,13 +146,13 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
|
|
|
146
146
|
label = that._windowTitle.fileName ?? label;
|
|
147
147
|
}
|
|
148
148
|
if (!label) {
|
|
149
|
-
label = ( localize(
|
|
149
|
+
label = ( localize(3617, "Search"));
|
|
150
150
|
}
|
|
151
151
|
if (prefix) {
|
|
152
|
-
label = ( localize(
|
|
152
|
+
label = ( localize(3618, "{0} {1}", prefix, label));
|
|
153
153
|
}
|
|
154
154
|
if (suffix) {
|
|
155
|
-
label = ( localize(
|
|
155
|
+
label = ( localize(3619, "{0} {1}", label, suffix));
|
|
156
156
|
}
|
|
157
157
|
return label.replaceAll(/\r\n|\r|\n/g, '\u23CE');
|
|
158
158
|
}
|
|
@@ -174,14 +174,14 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
|
|
|
174
174
|
const kb = this._keybindingService.lookupKeybinding(this.action.id)?.getLabel();
|
|
175
175
|
const title = kb
|
|
176
176
|
? ( localize(
|
|
177
|
-
|
|
177
|
+
3620,
|
|
178
178
|
"Search {0} ({1}) \u2014 {2}",
|
|
179
179
|
this._windowTitle.workspaceName,
|
|
180
180
|
kb,
|
|
181
181
|
this._windowTitle.value
|
|
182
182
|
))
|
|
183
183
|
: ( localize(
|
|
184
|
-
|
|
184
|
+
3621,
|
|
185
185
|
"Search {0} \u2014 {1}",
|
|
186
186
|
this._windowTitle.workspaceName,
|
|
187
187
|
this._windowTitle.value
|
|
@@ -197,7 +197,7 @@ CommandCenterCenterViewItem = CommandCenterCenterViewItem_1 = ( __decorate([
|
|
|
197
197
|
], CommandCenterCenterViewItem));
|
|
198
198
|
MenuRegistry.appendMenuItem(MenuId.CommandCenter, {
|
|
199
199
|
submenu: MenuId.CommandCenterCenter,
|
|
200
|
-
title: ( localize(
|
|
200
|
+
title: ( localize(3622, "Command Center")),
|
|
201
201
|
icon: Codicon.shield,
|
|
202
202
|
order: 101,
|
|
203
203
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MultiWindowParts, Part } from "@codingame/monaco-vscode-
|
|
1
|
+
import { MultiWindowParts, Part } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/part";
|
|
2
2
|
import { ITitleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/title/browser/titleService.service";
|
|
3
3
|
import { MenuBarVisibility } from "@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window";
|
|
4
4
|
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
5
5
|
import { IConfigurationChangeEvent } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration";
|
|
6
6
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
7
7
|
import { IDisposable, MutableDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
8
|
-
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-
|
|
8
|
+
import { IBrowserWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service";
|
|
9
9
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
10
|
-
import { CustomMenubarControl } from "@codingame/monaco-vscode-
|
|
10
|
+
import { CustomMenubarControl } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/titlebar/menubarControl";
|
|
11
11
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
12
12
|
import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
|
|
13
13
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
@@ -21,7 +21,7 @@ import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/wor
|
|
|
21
21
|
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
22
22
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
23
23
|
import { CodeWindow } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/window";
|
|
24
|
-
import { IView } from "@codingame/monaco-vscode-
|
|
24
|
+
import { IView } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/grid/grid";
|
|
25
25
|
export interface ITitleVariable {
|
|
26
26
|
readonly name: string;
|
|
27
27
|
readonly contextKey: string;
|
|
@@ -3,20 +3,20 @@ import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
|
3
3
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
4
4
|
import * as titlebarpart from './media/titlebarpart.css';
|
|
5
5
|
import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
|
-
import { MultiWindowParts, Part } from '@codingame/monaco-vscode-
|
|
6
|
+
import { MultiWindowParts, Part } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/part';
|
|
7
7
|
import { isWCOEnabled, getWCOTitlebarAreaRect, getZoomFactor } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/browser';
|
|
8
8
|
import { DEFAULT_CUSTOM_TITLEBAR_HEIGHT, getTitleBarStyle, hasNativeMenu, MenuSettings, hasNativeTitlebar, getWindowControlsStyle, WindowControlsStyle, getMenuBarVisibility } from '@codingame/monaco-vscode-api/vscode/vs/platform/window/common/window';
|
|
9
9
|
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
10
10
|
import { StandardMouseEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/mouseEvent';
|
|
11
11
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
12
12
|
import { DisposableStore, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
13
|
-
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-
|
|
13
|
+
import { IBrowserWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/browser/environmentService.service';
|
|
14
14
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
15
15
|
import { TITLE_BAR_INACTIVE_BACKGROUND, TITLE_BAR_ACTIVE_BACKGROUND, WORKBENCH_BACKGROUND, TITLE_BAR_INACTIVE_FOREGROUND, TITLE_BAR_ACTIVE_FOREGROUND, TITLE_BAR_BORDER } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/theme';
|
|
16
16
|
import { isWeb, isMacintosh, isWindows, isLinux, isNative, platformLocale } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
17
17
|
import { Color } from '@codingame/monaco-vscode-api/vscode/vs/base/common/color';
|
|
18
18
|
import { getActiveDocument, $, getWindow, getWindowId, append, prepend, addDisposableListener, EventType, EventHelper, isHTMLElement, isAncestor, reset, Dimension } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
19
|
-
import { CustomMenubarControl } from '@codingame/monaco-vscode-
|
|
19
|
+
import { CustomMenubarControl } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/titlebar/menubarControl';
|
|
20
20
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
21
21
|
import { Event, Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
22
22
|
import { StorageScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
@@ -28,24 +28,24 @@ import { registerAction2, Action2, MenuId } from '@codingame/monaco-vscode-api/v
|
|
|
28
28
|
import { IMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service';
|
|
29
29
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
30
30
|
import { IHostService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service';
|
|
31
|
-
import { WindowTitle } from '@codingame/monaco-vscode-
|
|
31
|
+
import { WindowTitle } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/titlebar/windowTitle';
|
|
32
32
|
import { CommandCenterControl } from './commandCenterControl.js';
|
|
33
33
|
import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/action/common/actionCommonCategories';
|
|
34
34
|
import { WorkbenchToolBar } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/browser/toolbar';
|
|
35
|
-
import { GLOBAL_ACTIVITY_ID, ACCOUNTS_ACTIVITY_ID } from '@codingame/monaco-vscode-
|
|
36
|
-
import { SimpleGlobalActivityActionViewItem, SimpleAccountActivityActionViewItem, isAccountsActionVisible, AccountsActivityActionViewItem } from '@codingame/monaco-vscode-
|
|
35
|
+
import { GLOBAL_ACTIVITY_ID, ACCOUNTS_ACTIVITY_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/activity';
|
|
36
|
+
import { SimpleGlobalActivityActionViewItem, SimpleAccountActivityActionViewItem, isAccountsActionVisible, AccountsActivityActionViewItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/globalCompositeBar';
|
|
37
37
|
import { HoverPosition } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverWidget';
|
|
38
38
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
39
39
|
import { ActionRunner } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
40
40
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
41
41
|
import { ActionsOrientation, prepareActions } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
42
|
-
import { EDITOR_CORE_NAVIGATION_COMMANDS } from '@codingame/monaco-vscode-
|
|
42
|
+
import { EDITOR_CORE_NAVIGATION_COMMANDS } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
43
43
|
import { AnchorAlignment } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/contextview/contextview';
|
|
44
|
-
import { EditorPane } from '@codingame/monaco-vscode-
|
|
44
|
+
import { EditorPane } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
45
45
|
import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service';
|
|
46
|
-
import { EditorCommandsContextActionRunner } from '@codingame/monaco-vscode-
|
|
46
|
+
import { EditorCommandsContextActionRunner } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorTabsControl';
|
|
47
47
|
import { mainWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/window';
|
|
48
|
-
import { ACCOUNTS_ACTIVITY_TILE_ACTION, GLOBAL_ACTIVITY_TITLE_ACTION } from '@codingame/monaco-vscode-
|
|
48
|
+
import { ACCOUNTS_ACTIVITY_TILE_ACTION, GLOBAL_ACTIVITY_TITLE_ACTION } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/titlebar/titlebarActions';
|
|
49
49
|
import { createInstantHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
50
50
|
import { CommandsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands';
|
|
51
51
|
import { safeIntl } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
|
|
@@ -74,7 +74,7 @@ let BrowserTitleService = class BrowserTitleService extends MultiWindowParts {
|
|
|
74
74
|
constructor() {
|
|
75
75
|
super({
|
|
76
76
|
id: `workbench.action.focusTitleBar`,
|
|
77
|
-
title: ( localize2(
|
|
77
|
+
title: ( localize2(3656, 'Focus Title Bar')),
|
|
78
78
|
category: Categories.View,
|
|
79
79
|
f1: true,
|
|
80
80
|
precondition: TitleBarVisibleContext
|
|
@@ -399,7 +399,7 @@ let BrowserTitlebarPart = class BrowserTitlebarPart extends Part {
|
|
|
399
399
|
this.actionToolBar = this.actionToolBarDisposable.add(this.instantiationService.createInstance(WorkbenchToolBar, this.actionToolBarElement, {
|
|
400
400
|
contextMenu: MenuId.TitleBarContext,
|
|
401
401
|
orientation: ActionsOrientation.HORIZONTAL,
|
|
402
|
-
ariaLabel: ( localize(
|
|
402
|
+
ariaLabel: ( localize(3657, "Title actions")),
|
|
403
403
|
getKeyBinding: action => this.getKeybinding(action),
|
|
404
404
|
overflowBehavior: { maxItems: 9, exempted: [ACCOUNTS_ACTIVITY_ID, GLOBAL_ACTIVITY_ID, ...EDITOR_CORE_NAVIGATION_COMMANDS] },
|
|
405
405
|
anchorAlignmentProvider: () => AnchorAlignment.RIGHT,
|