@codingame/monaco-vscode-view-title-bar-service-override 1.83.2 → 1.83.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-title-bar-service-override",
|
|
3
|
-
"version": "1.83.
|
|
3
|
+
"version": "1.83.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.83.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.83.3",
|
|
22
22
|
"monaco-editor": "0.44.0"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -7,7 +7,7 @@ import { SubmenuAction } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
|
7
7
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
8
8
|
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
9
9
|
import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
10
|
-
import {
|
|
10
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
11
11
|
import { createActionViewItem } from 'monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.js';
|
|
12
12
|
import { WorkbenchToolBar, MenuWorkbenchToolBar } from 'monaco-editor/esm/vs/platform/actions/browser/toolbar.js';
|
|
13
13
|
import { MenuRegistry, MenuId, SubmenuItemAction } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
@@ -126,13 +126,13 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
|
|
|
126
126
|
const { prefix, suffix } = that._windowTitle.getTitleDecorations();
|
|
127
127
|
let label = that._windowTitle.isCustomTitleFormat() ? that._windowTitle.getWindowTitle() : that._windowTitle.workspaceName;
|
|
128
128
|
if (!label) {
|
|
129
|
-
label = (
|
|
129
|
+
label = localizeWithPath('vs/workbench/browser/parts/titlebar/commandCenterControl', 'label.dfl', "Search");
|
|
130
130
|
}
|
|
131
131
|
if (prefix) {
|
|
132
|
-
label = (
|
|
132
|
+
label = localizeWithPath('vs/workbench/browser/parts/titlebar/commandCenterControl', 'label1', "{0} {1}", prefix, label);
|
|
133
133
|
}
|
|
134
134
|
if (suffix) {
|
|
135
|
-
label = (
|
|
135
|
+
label = localizeWithPath('vs/workbench/browser/parts/titlebar/commandCenterControl', 'label2', "{0} {1}", label, suffix);
|
|
136
136
|
}
|
|
137
137
|
return label;
|
|
138
138
|
}
|
|
@@ -153,19 +153,8 @@ let CommandCenterCenterViewItem = class CommandCenterCenterViewItem extends Base
|
|
|
153
153
|
getTooltip() {
|
|
154
154
|
const kb = this._keybindingService.lookupKeybinding(this.action.id)?.getLabel();
|
|
155
155
|
const title = kb
|
|
156
|
-
? (
|
|
157
|
-
'
|
|
158
|
-
"Search {0} ({1}) \u2014 {2}",
|
|
159
|
-
this._windowTitle.workspaceName,
|
|
160
|
-
kb,
|
|
161
|
-
this._windowTitle.value
|
|
162
|
-
))
|
|
163
|
-
: ( localize(
|
|
164
|
-
'title2',
|
|
165
|
-
"Search {0} \u2014 {1}",
|
|
166
|
-
this._windowTitle.workspaceName,
|
|
167
|
-
this._windowTitle.value
|
|
168
|
-
));
|
|
156
|
+
? localizeWithPath('vs/workbench/browser/parts/titlebar/commandCenterControl', 'title', "Search {0} ({1}) \u2014 {2}", this._windowTitle.workspaceName, kb, this._windowTitle.value)
|
|
157
|
+
: localizeWithPath('vs/workbench/browser/parts/titlebar/commandCenterControl', 'title2', "Search {0} \u2014 {1}", this._windowTitle.workspaceName, this._windowTitle.value);
|
|
169
158
|
return title;
|
|
170
159
|
}
|
|
171
160
|
};
|
|
@@ -175,7 +164,7 @@ CommandCenterCenterViewItem = CommandCenterCenterViewItem_1 = ( __decorate([
|
|
|
175
164
|
], CommandCenterCenterViewItem));
|
|
176
165
|
MenuRegistry.appendMenuItem(MenuId.CommandCenter, {
|
|
177
166
|
submenu: MenuId.CommandCenterCenter,
|
|
178
|
-
title: (
|
|
167
|
+
title: localizeWithPath('vs/workbench/browser/parts/titlebar/commandCenterControl', 'title3', "Command Center"),
|
|
179
168
|
icon: Codicon.shield,
|
|
180
169
|
order: 101,
|
|
181
170
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import './media/titlebarpart.css.js';
|
|
3
|
-
import {
|
|
3
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
4
4
|
import { Part } from 'vscode/vscode/vs/workbench/browser/part';
|
|
5
5
|
import { isWCOEnabled, getZoomFactor } from 'monaco-editor/esm/vs/base/browser/browser.js';
|
|
6
6
|
import { getTitleBarStyle, getMenuBarVisibility } from 'vscode/vscode/vs/platform/window/common/window';
|
|
@@ -220,7 +220,7 @@ let TitlebarPart = class TitlebarPart extends Part {
|
|
|
220
220
|
constructor() {
|
|
221
221
|
super({
|
|
222
222
|
id: `workbench.action.focusTitleBar`,
|
|
223
|
-
title: { value: (
|
|
223
|
+
title: { value: localizeWithPath('vs/workbench/browser/parts/titlebar/titlebarPart', 'focusTitleBar', "Focus Title Bar"), original: 'Focus Title Bar' },
|
|
224
224
|
category: Categories.View,
|
|
225
225
|
f1: true,
|
|
226
226
|
});
|
|
@@ -338,12 +338,12 @@ class ToogleConfigAction extends Action2 {
|
|
|
338
338
|
}
|
|
339
339
|
registerAction2(class ToogleCommandCenter extends ToogleConfigAction {
|
|
340
340
|
constructor() {
|
|
341
|
-
super('window.commandCenter', (
|
|
341
|
+
super('window.commandCenter', localizeWithPath('vs/workbench/browser/parts/titlebar/titlebarPart', 'toggle.commandCenter', 'Command Center'), 1);
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
344
|
registerAction2(class ToogleLayoutControl extends ToogleConfigAction {
|
|
345
345
|
constructor() {
|
|
346
|
-
super('workbench.layoutControl.enabled', (
|
|
346
|
+
super('workbench.layoutControl.enabled', localizeWithPath('vs/workbench/browser/parts/titlebar/titlebarPart', 'toggle.layout', 'Layout Controls'), 2);
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
349
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
3
3
|
import { dirname, basename } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
4
4
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
5
5
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
|
|
@@ -23,8 +23,8 @@ import { IViewsService } from 'vscode/vscode/vs/workbench/common/views';
|
|
|
23
23
|
var WindowTitle_1;
|
|
24
24
|
let WindowTitle = class WindowTitle extends Disposable {
|
|
25
25
|
static { WindowTitle_1 = this; }
|
|
26
|
-
static { this.NLS_USER_IS_ADMIN = isWindows ? (
|
|
27
|
-
static { this.NLS_EXTENSION_HOST = (
|
|
26
|
+
static { this.NLS_USER_IS_ADMIN = isWindows ? localizeWithPath('vs/workbench/browser/parts/titlebar/windowTitle', 'userIsAdmin', "[Administrator]") : localizeWithPath('vs/workbench/browser/parts/titlebar/windowTitle', 'userIsSudo', "[Superuser]"); }
|
|
27
|
+
static { this.NLS_EXTENSION_HOST = localizeWithPath('vs/workbench/browser/parts/titlebar/windowTitle', 'devExtensionWindowTitlePrefix', "[Extension Development Host]"); }
|
|
28
28
|
static { this.TITLE_DIRTY = '\u25cf '; }
|
|
29
29
|
constructor(configurationService, editorService, environmentService, contextService, instantiationService, labelService, userDataProfileService, productService, viewsService) {
|
|
30
30
|
super();
|