@codingame/monaco-vscode-view-common-service-override 10.1.3 → 10.1.4
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 +3 -3
- package/viewCommon.js +4 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +159 -159
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -8
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +9 -9
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.4",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.1.
|
|
30
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "10.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.4",
|
|
30
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "10.1.4"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/viewCommon.js
CHANGED
|
@@ -42,6 +42,7 @@ import { IActionViewItemService } from 'vscode/vscode/vs/platform/actions/browse
|
|
|
42
42
|
import getServiceOverride$1 from '@codingame/monaco-vscode-bulk-edit-service-override';
|
|
43
43
|
import { changeUrlDomain } from './tools/url.js';
|
|
44
44
|
import { registerAssets } from 'vscode/assets';
|
|
45
|
+
import { registerServiceInitializePostParticipant } from 'vscode/lifecycle';
|
|
45
46
|
import './vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js';
|
|
46
47
|
import './vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js';
|
|
47
48
|
import './vscode/src/vs/workbench/browser/actions/listCommands.js';
|
|
@@ -73,6 +74,9 @@ registerAssets({
|
|
|
73
74
|
'vs/workbench/contrib/webview/browser/pre/index-no-csp.html': () => changeUrlDomain(new URL('./assets/index-no-csp.html', import.meta.url).href, webviewIframeAlternateDomains),
|
|
74
75
|
'vs/workbench/contrib/webview/browser/pre/fake.html': () => changeUrlDomain(new URL('./assets/fake.html', import.meta.url).href, webviewIframeAlternateDomains)
|
|
75
76
|
});
|
|
77
|
+
registerServiceInitializePostParticipant(async (accessor) => {
|
|
78
|
+
accessor.get(IHistoryService);
|
|
79
|
+
});
|
|
76
80
|
function getServiceOverride(_webviewIframeAlternateDomains) {
|
|
77
81
|
if (_webviewIframeAlternateDomains != null) {
|
|
78
82
|
webviewIframeAlternateDomains = _webviewIframeAlternateDomains;
|
|
@@ -179,7 +179,7 @@ let CompositeBar = class CompositeBar extends Widget {
|
|
|
179
179
|
return item && this.instantiationService.createInstance(CompositeActionViewItem, { ...options, draggable: true, colors: this.options.colors, icon: this.options.icon, hoverOptions: this.options.activityHoverOptions, compact: this.options.compact }, action, item.pinnedAction, item.toggleBadgeAction, compositeId => this.options.getContextMenuActionsForComposite(compositeId), () => this.getContextMenuActions(), this.options.dndHandler, this);
|
|
180
180
|
},
|
|
181
181
|
orientation: this.options.orientation,
|
|
182
|
-
ariaLabel: ( localize(
|
|
182
|
+
ariaLabel: ( localize(11271, "Active View Switcher")),
|
|
183
183
|
ariaRole: 'tablist',
|
|
184
184
|
preventLoopNavigation: this.options.preventLoopNavigation,
|
|
185
185
|
triggerKeys: { keyDown: true }
|
|
@@ -188,7 +188,7 @@ class CompositePart extends Part {
|
|
|
188
188
|
const keybinding = this.keybindingService.lookupKeybinding(compositeId);
|
|
189
189
|
this.titleLabel.updateTitle(compositeId, compositeTitle, keybinding?.getLabel() ?? undefined);
|
|
190
190
|
const toolBar = assertIsDefined(this.toolBar);
|
|
191
|
-
toolBar.setAriaLabel(( localize(
|
|
191
|
+
toolBar.setAriaLabel(( localize(11272, "{0} actions", compositeTitle)));
|
|
192
192
|
}
|
|
193
193
|
collectCompositeActions(composite) {
|
|
194
194
|
const menuIds = composite?.getMenuIds();
|
|
@@ -233,7 +233,7 @@ class CompositePart extends Part {
|
|
|
233
233
|
orientation: 0 ,
|
|
234
234
|
getKeyBinding: action => this.keybindingService.lookupKeybinding(action.id),
|
|
235
235
|
anchorAlignmentProvider: () => this.getTitleAreaDropDownAnchorAlignment(),
|
|
236
|
-
toggleMenuTitle: ( localize(
|
|
236
|
+
toggleMenuTitle: ( localize(11273, "Views and More Actions...")),
|
|
237
237
|
telemetrySource: this.nameForTelemetry,
|
|
238
238
|
hoverDelegate: this.toolbarHoverDelegate
|
|
239
239
|
}));
|
|
@@ -250,7 +250,7 @@ class CompositePart extends Part {
|
|
|
250
250
|
updateTitle: (id, title, keybinding) => {
|
|
251
251
|
if (!this.activeComposite || this.activeComposite.getId() === id) {
|
|
252
252
|
titleLabel.innerText = title;
|
|
253
|
-
hover.update(keybinding ? ( localize(
|
|
253
|
+
hover.update(keybinding ? ( localize(11274, "{0} ({1})", title, keybinding)) : title);
|
|
254
254
|
}
|
|
255
255
|
},
|
|
256
256
|
updateStyles: () => {
|
|
@@ -36,17 +36,17 @@ import { ShowMultipleEditorTabsAction, ShowSingleEditorTabAction, HideEditorTabs
|
|
|
36
36
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
37
37
|
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
|
|
38
38
|
|
|
39
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(
|
|
39
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(4300, "Text Editor"))), [
|
|
40
40
|
( (new SyncDescriptor(UntitledTextEditorInput))),
|
|
41
41
|
( (new SyncDescriptor(TextResourceEditorInput)))
|
|
42
42
|
]);
|
|
43
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(
|
|
43
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(4301, "Text Diff Editor"))), [
|
|
44
44
|
( (new SyncDescriptor(DiffEditorInput)))
|
|
45
45
|
]);
|
|
46
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(
|
|
46
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(4302, "Binary Diff Editor"))), [
|
|
47
47
|
( (new SyncDescriptor(DiffEditorInput)))
|
|
48
48
|
]);
|
|
49
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(
|
|
49
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(4303, "Side by Side Editor"))), [
|
|
50
50
|
( (new SyncDescriptor(SideBySideEditorInput)))
|
|
51
51
|
]);
|
|
52
52
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(UntitledTextEditorInput.ID, UntitledTextEditorInputSerializer);
|
|
@@ -66,22 +66,22 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
66
66
|
ctor: ActiveGroupEditorsByMostRecentlyUsedQuickAccess,
|
|
67
67
|
prefix: ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
68
68
|
contextKey: editorPickerContextKey,
|
|
69
|
-
placeholder: ( localize(
|
|
70
|
-
helpEntries: [{ description: ( localize(
|
|
69
|
+
placeholder: ( localize(4304, "Type the name of an editor to open it.")),
|
|
70
|
+
helpEntries: [{ description: ( localize(4305, "Show Editors in Active Group by Most Recently Used")), commandId: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID }]
|
|
71
71
|
});
|
|
72
72
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
73
73
|
ctor: AllEditorsByAppearanceQuickAccess,
|
|
74
74
|
prefix: AllEditorsByAppearanceQuickAccess.PREFIX,
|
|
75
75
|
contextKey: editorPickerContextKey,
|
|
76
|
-
placeholder: ( localize(
|
|
77
|
-
helpEntries: [{ description: ( localize(
|
|
76
|
+
placeholder: ( localize(4304, "Type the name of an editor to open it.")),
|
|
77
|
+
helpEntries: [{ description: ( localize(4306, "Show All Opened Editors By Appearance")), commandId: ShowAllEditorsByAppearanceAction.ID }]
|
|
78
78
|
});
|
|
79
79
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
80
80
|
ctor: AllEditorsByMostRecentlyUsedQuickAccess,
|
|
81
81
|
prefix: AllEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
82
82
|
contextKey: editorPickerContextKey,
|
|
83
|
-
placeholder: ( localize(
|
|
84
|
-
helpEntries: [{ description: ( localize(
|
|
83
|
+
placeholder: ( localize(4304, "Type the name of an editor to open it.")),
|
|
84
|
+
helpEntries: [{ description: ( localize(4307, "Show All Opened Editors By Most Recently Used")), commandId: ShowAllEditorsByMostRecentlyUsedAction.ID }]
|
|
85
85
|
});
|
|
86
86
|
registerAction2(ChangeLanguageAction);
|
|
87
87
|
registerAction2(ChangeEOLAction);
|
|
@@ -225,77 +225,77 @@ if (isMacintosh) {
|
|
|
225
225
|
order: 1
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
228
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(4308, "Lock Group")), icon: Codicon.unlock }, group: 'navigation', order: 10, when: ( (ContextKeyExpr.and(
|
|
229
229
|
IsAuxiliaryEditorPartContext,
|
|
230
230
|
(ActiveEditorGroupLockedContext.toNegated())
|
|
231
231
|
))) });
|
|
232
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
233
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(
|
|
234
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
235
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
236
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
237
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
238
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(
|
|
239
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
240
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(
|
|
241
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
242
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
243
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
244
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
245
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
246
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
247
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(
|
|
248
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(
|
|
249
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(
|
|
250
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(
|
|
251
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(
|
|
252
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(
|
|
253
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(
|
|
254
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(
|
|
255
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(
|
|
256
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(
|
|
257
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(
|
|
232
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(4309, "Unlock Group")), icon: Codicon.lock, toggled: ContextKeyExpr.true() }, group: 'navigation', order: 10, when: ActiveEditorGroupLockedContext });
|
|
233
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(4310, "Close Group")), icon: Codicon.close }, group: 'navigation', order: 20, when: ( (ContextKeyExpr.or(IsAuxiliaryEditorPartContext, EditorPartMultipleEditorGroupsContext))) });
|
|
234
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(4311, "Split Up")) }, group: '2_split', order: 10 });
|
|
235
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(4312, "Split Down")) }, group: '2_split', order: 20 });
|
|
236
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(4313, "Split Left")) }, group: '2_split', order: 30 });
|
|
237
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(4314, "Split Right")) }, group: '2_split', order: 40 });
|
|
238
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(4315, "New Window")) }, group: '3_window', order: 10 });
|
|
239
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(4316, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '4_lock', order: 10, when: ( (IsAuxiliaryEditorPartContext.toNegated())) });
|
|
240
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(4317, "Close")) }, group: '5_close', order: 10, when: MultipleEditorGroupsContext });
|
|
241
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(4311, "Split Up")) }, group: '2_split', order: 10 });
|
|
242
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(4312, "Split Down")) }, group: '2_split', order: 20 });
|
|
243
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(4313, "Split Left")) }, group: '2_split', order: 30 });
|
|
244
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(4314, "Split Right")) }, group: '2_split', order: 40 });
|
|
245
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4318, "Move into New Window")) }, group: '3_window', order: 10 });
|
|
246
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4319, "Copy into New Window")) }, group: '3_window', order: 20 });
|
|
247
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(4320, "Tab Bar")), group: '4_config', order: 10, when: ( (InEditorZenModeContext.negate())) });
|
|
248
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(4321, "Multiple Tabs")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'multiple'))) }, group: '1_config', order: 10 });
|
|
249
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(4322, "Single Tab")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'single'))) }, group: '1_config', order: 20 });
|
|
250
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(4323, "Hidden")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none'))) }, group: '1_config', order: 30 });
|
|
251
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(4320, "Tab Bar")), group: '4_config', order: 10, when: InEditorZenModeContext });
|
|
252
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(4321, "Multiple Tabs")), toggled: ( (ContextKeyExpr.equals('config.zenMode.showTabs', 'multiple'))) }, group: '1_config', order: 10 });
|
|
253
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(4322, "Single Tab")), toggled: ( (ContextKeyExpr.equals('config.zenMode.showTabs', 'single'))) }, group: '1_config', order: 20 });
|
|
254
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(4323, "Hidden")), toggled: ( (ContextKeyExpr.equals('config.zenMode.showTabs', 'none'))) }, group: '1_config', order: 30 });
|
|
255
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(4324, "Editor Actions Position")), group: '4_config', order: 20 });
|
|
256
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(4320, "Tab Bar")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default'))) }, group: '1_config', order: 10, when: ( (( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none'))).negate())) });
|
|
257
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(4325, "Title Bar")), toggled: ( (ContextKeyExpr.or(
|
|
258
258
|
(ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'titleBar')),
|
|
259
259
|
(ContextKeyExpr.and(
|
|
260
260
|
(ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')),
|
|
261
261
|
(ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default'))
|
|
262
262
|
))
|
|
263
263
|
))) }, group: '1_config', order: 20 });
|
|
264
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(
|
|
265
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(
|
|
266
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(
|
|
267
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
268
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(
|
|
264
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(4326, "Hidden")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'hidden'))) }, group: '1_config', order: 30 });
|
|
265
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(4327, "Configure Tabs")) }, group: '9_configure', order: 10 });
|
|
266
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(4317, "Close")) }, group: '1_close', order: 10 });
|
|
267
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(4328, "Close Others")), precondition: ( (EditorGroupEditorsCountContext.notEqualsTo('1'))) }, group: '1_close', order: 20 });
|
|
268
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(4329, "Close to the Right")), precondition: ( (ContextKeyExpr.and(
|
|
269
269
|
(ActiveEditorLastInGroupContext.toNegated()),
|
|
270
270
|
(MultipleEditorsSelectedInGroupContext.negate())
|
|
271
271
|
))) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
|
|
272
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(
|
|
273
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
274
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(
|
|
275
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(
|
|
276
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(
|
|
277
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(
|
|
278
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
279
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
280
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
281
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
282
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(
|
|
283
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localize(
|
|
284
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
285
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
286
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(
|
|
287
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(
|
|
288
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(
|
|
289
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
290
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(
|
|
291
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(
|
|
292
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(
|
|
272
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(4330, "Close Saved")) }, group: '1_close', order: 40 });
|
|
273
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(4331, "Close All")) }, group: '1_close', order: 50 });
|
|
274
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(4332, "Reopen Editor With...")) }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
|
|
275
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(4333, "Keep Open")), precondition: ( (ActiveEditorPinnedContext.toNegated())) }, group: '3_preview', order: 10, when: ( (ContextKeyExpr.has('config.workbench.editor.enablePreview'))) });
|
|
276
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(4334, "Pin")) }, group: '3_preview', order: 20, when: ( (ActiveEditorStickyContext.toNegated())) });
|
|
277
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(4335, "Unpin")) }, group: '3_preview', order: 20, when: ActiveEditorStickyContext });
|
|
278
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(4311, "Split Up")) }, group: '5_split', order: 10 });
|
|
279
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(4312, "Split Down")) }, group: '5_split', order: 20 });
|
|
280
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(4313, "Split Left")) }, group: '5_split', order: 30 });
|
|
281
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(4314, "Split Right")) }, group: '5_split', order: 40 });
|
|
282
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(4336, "Split in Group")), precondition: ( (MultipleEditorsSelectedInGroupContext.negate())) }, group: '6_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
|
|
283
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localize(4337, "Join in Group")), precondition: ( (MultipleEditorsSelectedInGroupContext.negate())) }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
|
|
284
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4338, "Move into New Window")) }, group: '7_new_window', order: 10 });
|
|
285
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4339, "Copy into New Window")) }, group: '7_new_window', order: 20 });
|
|
286
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(4340, "Share")), group: '11_share', order: -1, when: ( (MultipleEditorsSelectedInGroupContext.negate())) });
|
|
287
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(4341, "Inline View")), toggled: ( (ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false))) }, group: '1_diff', order: 10, when: ( (ContextKeyExpr.has('isInDiffEditor'))) });
|
|
288
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(4342, "Show Opened Editors")) }, group: '3_open', order: 10 });
|
|
289
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(4331, "Close All")) }, group: '5_close', order: 10 });
|
|
290
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(4330, "Close Saved")) }, group: '5_close', order: 20 });
|
|
291
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(4343, "Enable Preview Editors")), toggled: ( (ContextKeyExpr.has('config.workbench.editor.enablePreview'))) }, group: '7_settings', order: 10 });
|
|
292
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(4344, "Maximize Group")) }, group: '8_group_operations', order: 5, when: ( (ContextKeyExpr.and(
|
|
293
293
|
(EditorPartMaximizedEditorGroupContext.negate()),
|
|
294
294
|
EditorPartMultipleEditorGroupsContext
|
|
295
295
|
))) });
|
|
296
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(
|
|
297
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
298
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(
|
|
296
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(4345, "Unmaximize Group")) }, group: '8_group_operations', order: 5, when: EditorPartMaximizedEditorGroupContext });
|
|
297
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(4346, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( (IsAuxiliaryEditorPartContext.toNegated())) });
|
|
298
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(4347, "Configure Editors")) }, group: '9_configure', order: 10 });
|
|
299
299
|
function appendEditorToolItem(primary, when, order, alternative, precondition) {
|
|
300
300
|
const item = {
|
|
301
301
|
command: {
|
|
@@ -322,30 +322,30 @@ const SPLIT_ORDER = 100000;
|
|
|
322
322
|
const CLOSE_ORDER = 1000000;
|
|
323
323
|
appendEditorToolItem({
|
|
324
324
|
id: SPLIT_EDITOR,
|
|
325
|
-
title: ( localize(
|
|
325
|
+
title: ( localize(4348, "Split Editor Right")),
|
|
326
326
|
icon: Codicon.splitHorizontal
|
|
327
327
|
}, ContextKeyExpr.not('splitEditorsVertically'), SPLIT_ORDER, {
|
|
328
328
|
id: SPLIT_EDITOR_DOWN,
|
|
329
|
-
title: ( localize(
|
|
329
|
+
title: ( localize(4349, "Split Editor Down")),
|
|
330
330
|
icon: Codicon.splitVertical
|
|
331
331
|
});
|
|
332
332
|
appendEditorToolItem({
|
|
333
333
|
id: SPLIT_EDITOR,
|
|
334
|
-
title: ( localize(
|
|
334
|
+
title: ( localize(4349, "Split Editor Down")),
|
|
335
335
|
icon: Codicon.splitVertical
|
|
336
336
|
}, ( (ContextKeyExpr.has('splitEditorsVertically'))), SPLIT_ORDER, {
|
|
337
337
|
id: SPLIT_EDITOR_RIGHT,
|
|
338
|
-
title: ( localize(
|
|
338
|
+
title: ( localize(4348, "Split Editor Right")),
|
|
339
339
|
icon: Codicon.splitHorizontal
|
|
340
340
|
});
|
|
341
341
|
appendEditorToolItem({
|
|
342
342
|
id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
|
|
343
|
-
title: ( localize(
|
|
343
|
+
title: ( localize(4350, "Toggle Layout")),
|
|
344
344
|
icon: Codicon.editorLayout
|
|
345
345
|
}, SideBySideEditorActiveContext, SPLIT_ORDER - 1);
|
|
346
346
|
appendEditorToolItem({
|
|
347
347
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
348
|
-
title: ( localize(
|
|
348
|
+
title: ( localize(4317, "Close")),
|
|
349
349
|
icon: Codicon.close
|
|
350
350
|
}, ( (ContextKeyExpr.and(
|
|
351
351
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -353,12 +353,12 @@ appendEditorToolItem({
|
|
|
353
353
|
(ActiveEditorStickyContext.toNegated())
|
|
354
354
|
))), CLOSE_ORDER, {
|
|
355
355
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
356
|
-
title: ( localize(
|
|
356
|
+
title: ( localize(4331, "Close All")),
|
|
357
357
|
icon: Codicon.closeAll
|
|
358
358
|
});
|
|
359
359
|
appendEditorToolItem({
|
|
360
360
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
361
|
-
title: ( localize(
|
|
361
|
+
title: ( localize(4317, "Close")),
|
|
362
362
|
icon: Codicon.closeDirty
|
|
363
363
|
}, ( (ContextKeyExpr.and(
|
|
364
364
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -366,12 +366,12 @@ appendEditorToolItem({
|
|
|
366
366
|
(ActiveEditorStickyContext.toNegated())
|
|
367
367
|
))), CLOSE_ORDER, {
|
|
368
368
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
369
|
-
title: ( localize(
|
|
369
|
+
title: ( localize(4331, "Close All")),
|
|
370
370
|
icon: Codicon.closeAll
|
|
371
371
|
});
|
|
372
372
|
appendEditorToolItem({
|
|
373
373
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
374
|
-
title: ( localize(
|
|
374
|
+
title: ( localize(4335, "Unpin")),
|
|
375
375
|
icon: Codicon.pinned
|
|
376
376
|
}, ( (ContextKeyExpr.and(
|
|
377
377
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -379,12 +379,12 @@ appendEditorToolItem({
|
|
|
379
379
|
ActiveEditorStickyContext
|
|
380
380
|
))), CLOSE_ORDER, {
|
|
381
381
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
382
|
-
title: ( localize(
|
|
382
|
+
title: ( localize(4317, "Close")),
|
|
383
383
|
icon: Codicon.close
|
|
384
384
|
});
|
|
385
385
|
appendEditorToolItem({
|
|
386
386
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
387
|
-
title: ( localize(
|
|
387
|
+
title: ( localize(4335, "Unpin")),
|
|
388
388
|
icon: Codicon.pinnedDirty
|
|
389
389
|
}, ( (ContextKeyExpr.and(
|
|
390
390
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -392,12 +392,12 @@ appendEditorToolItem({
|
|
|
392
392
|
ActiveEditorStickyContext
|
|
393
393
|
))), CLOSE_ORDER, {
|
|
394
394
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
395
|
-
title: ( localize(
|
|
395
|
+
title: ( localize(4317, "Close")),
|
|
396
396
|
icon: Codicon.close
|
|
397
397
|
});
|
|
398
398
|
appendEditorToolItem({
|
|
399
399
|
id: LOCK_GROUP_COMMAND_ID,
|
|
400
|
-
title: ( localize(
|
|
400
|
+
title: ( localize(4351, "Lock Group")),
|
|
401
401
|
icon: Codicon.unlock
|
|
402
402
|
}, ( (ContextKeyExpr.and(
|
|
403
403
|
IsAuxiliaryEditorPartContext,
|
|
@@ -405,32 +405,32 @@ appendEditorToolItem({
|
|
|
405
405
|
))), CLOSE_ORDER - 1);
|
|
406
406
|
appendEditorToolItem({
|
|
407
407
|
id: UNLOCK_GROUP_COMMAND_ID,
|
|
408
|
-
title: ( localize(
|
|
408
|
+
title: ( localize(4352, "Unlock Group")),
|
|
409
409
|
icon: Codicon.lock,
|
|
410
410
|
toggled: ContextKeyExpr.true()
|
|
411
411
|
}, ActiveEditorGroupLockedContext, CLOSE_ORDER - 1);
|
|
412
|
-
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(
|
|
412
|
+
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(4353, 'Icon for the previous change action in the diff editor.')));
|
|
413
413
|
appendEditorToolItem({
|
|
414
414
|
id: GOTO_PREVIOUS_CHANGE,
|
|
415
|
-
title: ( localize(
|
|
415
|
+
title: ( localize(4354, "Previous Change")),
|
|
416
416
|
icon: previousChangeIcon
|
|
417
417
|
}, TextCompareEditorActiveContext, 10, undefined, EditorContextKeys.hasChanges);
|
|
418
|
-
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(
|
|
418
|
+
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(4355, 'Icon for the next change action in the diff editor.')));
|
|
419
419
|
appendEditorToolItem({
|
|
420
420
|
id: GOTO_NEXT_CHANGE,
|
|
421
|
-
title: ( localize(
|
|
421
|
+
title: ( localize(4356, "Next Change")),
|
|
422
422
|
icon: nextChangeIcon
|
|
423
423
|
}, TextCompareEditorActiveContext, 11, undefined, EditorContextKeys.hasChanges);
|
|
424
424
|
appendEditorToolItem({
|
|
425
425
|
id: DIFF_SWAP_SIDES,
|
|
426
|
-
title: ( localize(
|
|
426
|
+
title: ( localize(4357, "Swap Left and Right Side")),
|
|
427
427
|
icon: Codicon.arrowSwap
|
|
428
428
|
}, ( (ContextKeyExpr.and(TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext))), 15, undefined, undefined);
|
|
429
|
-
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(
|
|
429
|
+
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(4358, 'Icon for the toggle whitespace action in the diff editor.')));
|
|
430
430
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
431
431
|
command: {
|
|
432
432
|
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
433
|
-
title: ( localize(
|
|
433
|
+
title: ( localize(4359, "Show Leading/Trailing Whitespace Differences")),
|
|
434
434
|
icon: toggleWhitespace,
|
|
435
435
|
precondition: TextCompareEditorActiveContext,
|
|
436
436
|
toggled: ( (ContextKeyExpr.equals('config.diffEditor.ignoreTrimWhitespace', false))),
|
|
@@ -439,22 +439,22 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
439
439
|
when: TextCompareEditorActiveContext,
|
|
440
440
|
order: 20,
|
|
441
441
|
});
|
|
442
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(
|
|
443
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
444
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
445
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(
|
|
446
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(
|
|
447
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
448
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(
|
|
449
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
450
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(
|
|
451
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(
|
|
452
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(
|
|
442
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(4360, 'Keep Editor')), category: Categories.View }, when: ( (ContextKeyExpr.has('config.workbench.editor.enablePreview'))) });
|
|
443
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(4361, 'Pin Editor')), category: Categories.View } });
|
|
444
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(4362, 'Unpin Editor')), category: Categories.View } });
|
|
445
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(4363, 'Close Editor')), category: Categories.View } });
|
|
446
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(4364, 'Close Pinned Editor')), category: Categories.View } });
|
|
447
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(4365, 'Close All Editors in Group')), category: Categories.View } });
|
|
448
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(4366, 'Close Saved Editors in Group')), category: Categories.View } });
|
|
449
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(4367, 'Close Other Editors in Group')), category: Categories.View } });
|
|
450
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(4368, 'Close Editors to the Right in Group')), category: Categories.View }, when: ( (ActiveEditorLastInGroupContext.toNegated())) });
|
|
451
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(4369, 'Close Editor Group')), category: Categories.View }, when: MultipleEditorGroupsContext });
|
|
452
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(4332, "Reopen Editor With...")), category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
|
|
453
453
|
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
454
454
|
group: '1_editor',
|
|
455
455
|
command: {
|
|
456
456
|
id: ReopenClosedEditorAction.ID,
|
|
457
|
-
title: ( localize(
|
|
457
|
+
title: ( localize(4370, "&&Reopen Closed Editor")),
|
|
458
458
|
precondition: ( (ContextKeyExpr.has('canReopenClosedEditor')))
|
|
459
459
|
},
|
|
460
460
|
order: 1
|
|
@@ -463,19 +463,19 @@ MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
|
463
463
|
group: 'z_clear',
|
|
464
464
|
command: {
|
|
465
465
|
id: ClearRecentFilesAction.ID,
|
|
466
|
-
title: ( localize(
|
|
466
|
+
title: ( localize(4371, "&&Clear Recently Opened..."))
|
|
467
467
|
},
|
|
468
468
|
order: 1
|
|
469
469
|
});
|
|
470
470
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
471
|
-
title: ( localize(
|
|
471
|
+
title: ( localize(4372, "Share")),
|
|
472
472
|
submenu: MenuId.MenubarShare,
|
|
473
473
|
group: '45_share',
|
|
474
474
|
order: 1,
|
|
475
475
|
});
|
|
476
476
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
477
477
|
group: '2_appearance',
|
|
478
|
-
title: ( localize(
|
|
478
|
+
title: ( localize(4373, "Editor &&Layout")),
|
|
479
479
|
submenu: MenuId.MenubarLayoutMenu,
|
|
480
480
|
order: 2
|
|
481
481
|
});
|
|
@@ -484,8 +484,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
484
484
|
command: {
|
|
485
485
|
id: SPLIT_EDITOR_UP,
|
|
486
486
|
title: {
|
|
487
|
-
...( localize2(
|
|
488
|
-
mnemonicTitle: ( localize(
|
|
487
|
+
...( localize2(4374, "Split Up")),
|
|
488
|
+
mnemonicTitle: ( localize(4375, "Split &&Up")),
|
|
489
489
|
}
|
|
490
490
|
},
|
|
491
491
|
order: 1
|
|
@@ -495,8 +495,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
495
495
|
command: {
|
|
496
496
|
id: SPLIT_EDITOR_DOWN,
|
|
497
497
|
title: {
|
|
498
|
-
...( localize2(
|
|
499
|
-
mnemonicTitle: ( localize(
|
|
498
|
+
...( localize2(4376, "Split Down")),
|
|
499
|
+
mnemonicTitle: ( localize(4377, "Split &&Down")),
|
|
500
500
|
}
|
|
501
501
|
},
|
|
502
502
|
order: 2
|
|
@@ -506,8 +506,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
506
506
|
command: {
|
|
507
507
|
id: SPLIT_EDITOR_LEFT,
|
|
508
508
|
title: {
|
|
509
|
-
...( localize2(
|
|
510
|
-
mnemonicTitle: ( localize(
|
|
509
|
+
...( localize2(4378, "Split Left")),
|
|
510
|
+
mnemonicTitle: ( localize(4379, "Split &&Left")),
|
|
511
511
|
}
|
|
512
512
|
},
|
|
513
513
|
order: 3
|
|
@@ -517,8 +517,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
517
517
|
command: {
|
|
518
518
|
id: SPLIT_EDITOR_RIGHT,
|
|
519
519
|
title: {
|
|
520
|
-
...( localize2(
|
|
521
|
-
mnemonicTitle: ( localize(
|
|
520
|
+
...( localize2(4380, "Split Right")),
|
|
521
|
+
mnemonicTitle: ( localize(4381, "Split &&Right")),
|
|
522
522
|
}
|
|
523
523
|
},
|
|
524
524
|
order: 4
|
|
@@ -528,8 +528,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
528
528
|
command: {
|
|
529
529
|
id: SPLIT_EDITOR_IN_GROUP,
|
|
530
530
|
title: {
|
|
531
|
-
...( localize2(
|
|
532
|
-
mnemonicTitle: ( localize(
|
|
531
|
+
...( localize2(4382, "Split in Group")),
|
|
532
|
+
mnemonicTitle: ( localize(4383, "Split in &&Group")),
|
|
533
533
|
}
|
|
534
534
|
},
|
|
535
535
|
when: ActiveEditorCanSplitInGroupContext,
|
|
@@ -540,8 +540,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
540
540
|
command: {
|
|
541
541
|
id: JOIN_EDITOR_IN_GROUP,
|
|
542
542
|
title: {
|
|
543
|
-
...( localize2(
|
|
544
|
-
mnemonicTitle: ( localize(
|
|
543
|
+
...( localize2(4384, "Join in Group")),
|
|
544
|
+
mnemonicTitle: ( localize(4385, "Join in &&Group")),
|
|
545
545
|
}
|
|
546
546
|
},
|
|
547
547
|
when: SideBySideEditorActiveContext,
|
|
@@ -552,8 +552,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
552
552
|
command: {
|
|
553
553
|
id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
554
554
|
title: {
|
|
555
|
-
...( localize2(
|
|
556
|
-
mnemonicTitle: ( localize(
|
|
555
|
+
...( localize2(4386, "Move Editor into New Window")),
|
|
556
|
+
mnemonicTitle: ( localize(4387, "&&Move Editor into New Window")),
|
|
557
557
|
}
|
|
558
558
|
},
|
|
559
559
|
order: 1
|
|
@@ -563,8 +563,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
563
563
|
command: {
|
|
564
564
|
id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
565
565
|
title: {
|
|
566
|
-
...( localize2(
|
|
567
|
-
mnemonicTitle: ( localize(
|
|
566
|
+
...( localize2(4388, "Copy Editor into New Window")),
|
|
567
|
+
mnemonicTitle: ( localize(4389, "&&Copy Editor into New Window")),
|
|
568
568
|
}
|
|
569
569
|
},
|
|
570
570
|
order: 2
|
|
@@ -574,8 +574,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
574
574
|
command: {
|
|
575
575
|
id: EditorLayoutSingleAction.ID,
|
|
576
576
|
title: {
|
|
577
|
-
...( localize2(
|
|
578
|
-
mnemonicTitle: ( localize(
|
|
577
|
+
...( localize2(4390, "Single")),
|
|
578
|
+
mnemonicTitle: ( localize(4391, "&&Single")),
|
|
579
579
|
}
|
|
580
580
|
},
|
|
581
581
|
order: 1
|
|
@@ -585,8 +585,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
585
585
|
command: {
|
|
586
586
|
id: EditorLayoutTwoColumnsAction.ID,
|
|
587
587
|
title: {
|
|
588
|
-
...( localize2(
|
|
589
|
-
mnemonicTitle: ( localize(
|
|
588
|
+
...( localize2(4392, "Two Columns")),
|
|
589
|
+
mnemonicTitle: ( localize(4393, "&&Two Columns")),
|
|
590
590
|
}
|
|
591
591
|
},
|
|
592
592
|
order: 3
|
|
@@ -596,8 +596,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
596
596
|
command: {
|
|
597
597
|
id: EditorLayoutThreeColumnsAction.ID,
|
|
598
598
|
title: {
|
|
599
|
-
...( localize2(
|
|
600
|
-
mnemonicTitle: ( localize(
|
|
599
|
+
...( localize2(4394, "Three Columns")),
|
|
600
|
+
mnemonicTitle: ( localize(4395, "T&&hree Columns")),
|
|
601
601
|
}
|
|
602
602
|
},
|
|
603
603
|
order: 4
|
|
@@ -607,8 +607,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
607
607
|
command: {
|
|
608
608
|
id: EditorLayoutTwoRowsAction.ID,
|
|
609
609
|
title: {
|
|
610
|
-
...( localize2(
|
|
611
|
-
mnemonicTitle: ( localize(
|
|
610
|
+
...( localize2(4396, "Two Rows")),
|
|
611
|
+
mnemonicTitle: ( localize(4397, "T&&wo Rows")),
|
|
612
612
|
}
|
|
613
613
|
},
|
|
614
614
|
order: 5
|
|
@@ -618,8 +618,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
618
618
|
command: {
|
|
619
619
|
id: EditorLayoutThreeRowsAction.ID,
|
|
620
620
|
title: {
|
|
621
|
-
...( localize2(
|
|
622
|
-
mnemonicTitle: ( localize(
|
|
621
|
+
...( localize2(4398, "Three Rows")),
|
|
622
|
+
mnemonicTitle: ( localize(4399, "Three &&Rows")),
|
|
623
623
|
}
|
|
624
624
|
},
|
|
625
625
|
order: 6
|
|
@@ -629,8 +629,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
629
629
|
command: {
|
|
630
630
|
id: EditorLayoutTwoByTwoGridAction.ID,
|
|
631
631
|
title: {
|
|
632
|
-
...( localize2(
|
|
633
|
-
mnemonicTitle: ( localize(
|
|
632
|
+
...( localize2(4400, "Grid (2x2)")),
|
|
633
|
+
mnemonicTitle: ( localize(4401, "&&Grid (2x2)")),
|
|
634
634
|
}
|
|
635
635
|
},
|
|
636
636
|
order: 7
|
|
@@ -640,8 +640,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
640
640
|
command: {
|
|
641
641
|
id: EditorLayoutTwoRowsRightAction.ID,
|
|
642
642
|
title: {
|
|
643
|
-
...( localize2(
|
|
644
|
-
mnemonicTitle: ( localize(
|
|
643
|
+
...( localize2(4402, "Two Rows Right")),
|
|
644
|
+
mnemonicTitle: ( localize(4403, "Two R&&ows Right")),
|
|
645
645
|
}
|
|
646
646
|
},
|
|
647
647
|
order: 8
|
|
@@ -651,8 +651,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
651
651
|
command: {
|
|
652
652
|
id: EditorLayoutTwoColumnsBottomAction.ID,
|
|
653
653
|
title: {
|
|
654
|
-
...( localize2(
|
|
655
|
-
mnemonicTitle: ( localize(
|
|
654
|
+
...( localize2(4404, "Two Columns Bottom")),
|
|
655
|
+
mnemonicTitle: ( localize(4405, "Two &&Columns Bottom")),
|
|
656
656
|
}
|
|
657
657
|
},
|
|
658
658
|
order: 9
|
|
@@ -661,7 +661,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
661
661
|
group: '1_history_nav',
|
|
662
662
|
command: {
|
|
663
663
|
id: 'workbench.action.navigateToLastEditLocation',
|
|
664
|
-
title: ( localize(
|
|
664
|
+
title: ( localize(4406, "&&Last Edit Location")),
|
|
665
665
|
precondition: ( (ContextKeyExpr.has('canNavigateToLastEditLocation')))
|
|
666
666
|
},
|
|
667
667
|
order: 3
|
|
@@ -670,7 +670,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
670
670
|
group: '1_sideBySide',
|
|
671
671
|
command: {
|
|
672
672
|
id: FOCUS_FIRST_SIDE_EDITOR,
|
|
673
|
-
title: ( localize(
|
|
673
|
+
title: ( localize(4407, "&&First Side in Editor"))
|
|
674
674
|
},
|
|
675
675
|
when: ( (ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext))),
|
|
676
676
|
order: 1
|
|
@@ -679,7 +679,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
679
679
|
group: '1_sideBySide',
|
|
680
680
|
command: {
|
|
681
681
|
id: FOCUS_SECOND_SIDE_EDITOR,
|
|
682
|
-
title: ( localize(
|
|
682
|
+
title: ( localize(4408, "&&Second Side in Editor"))
|
|
683
683
|
},
|
|
684
684
|
when: ( (ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext))),
|
|
685
685
|
order: 2
|
|
@@ -688,7 +688,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
688
688
|
group: '2_any',
|
|
689
689
|
command: {
|
|
690
690
|
id: 'workbench.action.nextEditor',
|
|
691
|
-
title: ( localize(
|
|
691
|
+
title: ( localize(4409, "&&Next Editor"))
|
|
692
692
|
},
|
|
693
693
|
order: 1
|
|
694
694
|
});
|
|
@@ -696,7 +696,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
696
696
|
group: '2_any',
|
|
697
697
|
command: {
|
|
698
698
|
id: 'workbench.action.previousEditor',
|
|
699
|
-
title: ( localize(
|
|
699
|
+
title: ( localize(4410, "&&Previous Editor"))
|
|
700
700
|
},
|
|
701
701
|
order: 2
|
|
702
702
|
});
|
|
@@ -704,7 +704,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
704
704
|
group: '3_any_used',
|
|
705
705
|
command: {
|
|
706
706
|
id: 'workbench.action.openNextRecentlyUsedEditor',
|
|
707
|
-
title: ( localize(
|
|
707
|
+
title: ( localize(4411, "&&Next Used Editor"))
|
|
708
708
|
},
|
|
709
709
|
order: 1
|
|
710
710
|
});
|
|
@@ -712,7 +712,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
712
712
|
group: '3_any_used',
|
|
713
713
|
command: {
|
|
714
714
|
id: 'workbench.action.openPreviousRecentlyUsedEditor',
|
|
715
|
-
title: ( localize(
|
|
715
|
+
title: ( localize(4412, "&&Previous Used Editor"))
|
|
716
716
|
},
|
|
717
717
|
order: 2
|
|
718
718
|
});
|
|
@@ -720,7 +720,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
720
720
|
group: '4_group',
|
|
721
721
|
command: {
|
|
722
722
|
id: 'workbench.action.nextEditorInGroup',
|
|
723
|
-
title: ( localize(
|
|
723
|
+
title: ( localize(4413, "&&Next Editor in Group"))
|
|
724
724
|
},
|
|
725
725
|
order: 1
|
|
726
726
|
});
|
|
@@ -728,7 +728,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
728
728
|
group: '4_group',
|
|
729
729
|
command: {
|
|
730
730
|
id: 'workbench.action.previousEditorInGroup',
|
|
731
|
-
title: ( localize(
|
|
731
|
+
title: ( localize(4414, "&&Previous Editor in Group"))
|
|
732
732
|
},
|
|
733
733
|
order: 2
|
|
734
734
|
});
|
|
@@ -736,7 +736,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
736
736
|
group: '5_group_used',
|
|
737
737
|
command: {
|
|
738
738
|
id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
739
|
-
title: ( localize(
|
|
739
|
+
title: ( localize(4415, "&&Next Used Editor in Group"))
|
|
740
740
|
},
|
|
741
741
|
order: 1
|
|
742
742
|
});
|
|
@@ -744,13 +744,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
744
744
|
group: '5_group_used',
|
|
745
745
|
command: {
|
|
746
746
|
id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
747
|
-
title: ( localize(
|
|
747
|
+
title: ( localize(4416, "&&Previous Used Editor in Group"))
|
|
748
748
|
},
|
|
749
749
|
order: 2
|
|
750
750
|
});
|
|
751
751
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
752
752
|
group: '2_editor_nav',
|
|
753
|
-
title: ( localize(
|
|
753
|
+
title: ( localize(4417, "Switch &&Editor")),
|
|
754
754
|
submenu: MenuId.MenubarSwitchEditorMenu,
|
|
755
755
|
order: 1
|
|
756
756
|
});
|
|
@@ -758,7 +758,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
758
758
|
group: '1_focus_index',
|
|
759
759
|
command: {
|
|
760
760
|
id: 'workbench.action.focusFirstEditorGroup',
|
|
761
|
-
title: ( localize(
|
|
761
|
+
title: ( localize(4418, "Group &&1"))
|
|
762
762
|
},
|
|
763
763
|
order: 1
|
|
764
764
|
});
|
|
@@ -766,7 +766,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
766
766
|
group: '1_focus_index',
|
|
767
767
|
command: {
|
|
768
768
|
id: 'workbench.action.focusSecondEditorGroup',
|
|
769
|
-
title: ( localize(
|
|
769
|
+
title: ( localize(4419, "Group &&2"))
|
|
770
770
|
},
|
|
771
771
|
order: 2
|
|
772
772
|
});
|
|
@@ -774,7 +774,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
774
774
|
group: '1_focus_index',
|
|
775
775
|
command: {
|
|
776
776
|
id: 'workbench.action.focusThirdEditorGroup',
|
|
777
|
-
title: ( localize(
|
|
777
|
+
title: ( localize(4420, "Group &&3")),
|
|
778
778
|
precondition: MultipleEditorGroupsContext
|
|
779
779
|
},
|
|
780
780
|
order: 3
|
|
@@ -783,7 +783,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
783
783
|
group: '1_focus_index',
|
|
784
784
|
command: {
|
|
785
785
|
id: 'workbench.action.focusFourthEditorGroup',
|
|
786
|
-
title: ( localize(
|
|
786
|
+
title: ( localize(4421, "Group &&4")),
|
|
787
787
|
precondition: MultipleEditorGroupsContext
|
|
788
788
|
},
|
|
789
789
|
order: 4
|
|
@@ -792,7 +792,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
792
792
|
group: '1_focus_index',
|
|
793
793
|
command: {
|
|
794
794
|
id: 'workbench.action.focusFifthEditorGroup',
|
|
795
|
-
title: ( localize(
|
|
795
|
+
title: ( localize(4422, "Group &&5")),
|
|
796
796
|
precondition: MultipleEditorGroupsContext
|
|
797
797
|
},
|
|
798
798
|
order: 5
|
|
@@ -801,7 +801,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
801
801
|
group: '2_next_prev',
|
|
802
802
|
command: {
|
|
803
803
|
id: 'workbench.action.focusNextGroup',
|
|
804
|
-
title: ( localize(
|
|
804
|
+
title: ( localize(4423, "&&Next Group")),
|
|
805
805
|
precondition: MultipleEditorGroupsContext
|
|
806
806
|
},
|
|
807
807
|
order: 1
|
|
@@ -810,7 +810,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
810
810
|
group: '2_next_prev',
|
|
811
811
|
command: {
|
|
812
812
|
id: 'workbench.action.focusPreviousGroup',
|
|
813
|
-
title: ( localize(
|
|
813
|
+
title: ( localize(4424, "&&Previous Group")),
|
|
814
814
|
precondition: MultipleEditorGroupsContext
|
|
815
815
|
},
|
|
816
816
|
order: 2
|
|
@@ -819,7 +819,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
819
819
|
group: '3_directional',
|
|
820
820
|
command: {
|
|
821
821
|
id: 'workbench.action.focusLeftGroup',
|
|
822
|
-
title: ( localize(
|
|
822
|
+
title: ( localize(4425, "Group &&Left")),
|
|
823
823
|
precondition: MultipleEditorGroupsContext
|
|
824
824
|
},
|
|
825
825
|
order: 1
|
|
@@ -828,7 +828,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
828
828
|
group: '3_directional',
|
|
829
829
|
command: {
|
|
830
830
|
id: 'workbench.action.focusRightGroup',
|
|
831
|
-
title: ( localize(
|
|
831
|
+
title: ( localize(4426, "Group &&Right")),
|
|
832
832
|
precondition: MultipleEditorGroupsContext
|
|
833
833
|
},
|
|
834
834
|
order: 2
|
|
@@ -837,7 +837,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
837
837
|
group: '3_directional',
|
|
838
838
|
command: {
|
|
839
839
|
id: 'workbench.action.focusAboveGroup',
|
|
840
|
-
title: ( localize(
|
|
840
|
+
title: ( localize(4427, "Group &&Above")),
|
|
841
841
|
precondition: MultipleEditorGroupsContext
|
|
842
842
|
},
|
|
843
843
|
order: 3
|
|
@@ -846,14 +846,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
846
846
|
group: '3_directional',
|
|
847
847
|
command: {
|
|
848
848
|
id: 'workbench.action.focusBelowGroup',
|
|
849
|
-
title: ( localize(
|
|
849
|
+
title: ( localize(4428, "Group &&Below")),
|
|
850
850
|
precondition: MultipleEditorGroupsContext
|
|
851
851
|
},
|
|
852
852
|
order: 4
|
|
853
853
|
});
|
|
854
854
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
855
855
|
group: '2_editor_nav',
|
|
856
|
-
title: ( localize(
|
|
856
|
+
title: ( localize(4429, "Switch &&Group")),
|
|
857
857
|
submenu: MenuId.MenubarSwitchGroupMenu,
|
|
858
858
|
order: 2
|
|
859
859
|
});
|
|
@@ -24,22 +24,22 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
24
24
|
static { this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
25
25
|
{
|
|
26
26
|
id: 'workbench.input.interactive',
|
|
27
|
-
label: ( localize(
|
|
27
|
+
label: ( localize(9842, 'Interactive Window')),
|
|
28
28
|
priority: RegisteredEditorPriority.builtin
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
id: 'mainThreadWebview-markdown.preview',
|
|
32
|
-
label: ( localize(
|
|
32
|
+
label: ( localize(9843, "Markdown Preview")),
|
|
33
33
|
priority: RegisteredEditorPriority.builtin
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
id: 'mainThreadWebview-simpleBrowser.view',
|
|
37
|
-
label: ( localize(
|
|
37
|
+
label: ( localize(9844, "Simple Browser")),
|
|
38
38
|
priority: RegisteredEditorPriority.builtin
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
id: 'mainThreadWebview-browserPreview',
|
|
42
|
-
label: ( localize(
|
|
42
|
+
label: ( localize(9845, "Live Preview")),
|
|
43
43
|
priority: RegisteredEditorPriority.builtin
|
|
44
44
|
}
|
|
45
45
|
]; }
|
|
@@ -84,7 +84,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
84
84
|
'workbench.editor.autoLockGroups': {
|
|
85
85
|
type: 'object',
|
|
86
86
|
description: ( localize(
|
|
87
|
-
|
|
87
|
+
9846,
|
|
88
88
|
"If an editor matching one of the listed types is opened as the first in an editor group and more than one group is open, the group is automatically locked. Locked groups will only be used for opening editors when explicitly chosen by a user gesture (for example drag and drop), but not by default. Consequently, the active editor in a locked group is less likely to be replaced accidentally with a different editor."
|
|
89
89
|
)),
|
|
90
90
|
properties: autoLockGroupConfiguration,
|
|
@@ -102,7 +102,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
102
102
|
default: '',
|
|
103
103
|
enum: [...binaryEditorCandidates, ''],
|
|
104
104
|
description: ( localize(
|
|
105
|
-
|
|
105
|
+
9847,
|
|
106
106
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
107
107
|
)),
|
|
108
108
|
}
|
|
@@ -115,7 +115,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
115
115
|
'workbench.editorAssociations': {
|
|
116
116
|
type: 'object',
|
|
117
117
|
markdownDescription: ( localize(
|
|
118
|
-
|
|
118
|
+
9848,
|
|
119
119
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
120
120
|
)),
|
|
121
121
|
patternProperties: {
|
|
@@ -137,7 +137,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
137
137
|
minimum: 1,
|
|
138
138
|
scope: 4 ,
|
|
139
139
|
markdownDescription: ( localize(
|
|
140
|
-
|
|
140
|
+
9849,
|
|
141
141
|
"Controls the minimum size of a file in MB before asking for confirmation when opening in the editor. Note that this setting may not apply to all editor types and environments."
|
|
142
142
|
)),
|
|
143
143
|
}
|
|
@@ -15,7 +15,7 @@ const webviewActiveContextKeyExpr = ( (ContextKeyExpr.and(
|
|
|
15
15
|
)));
|
|
16
16
|
class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
17
17
|
static { this.ID = 'editor.action.webvieweditor.showFind'; }
|
|
18
|
-
static { this.LABEL = ( localize(
|
|
18
|
+
static { this.LABEL = ( localize(9644, "Show find")); }
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: ShowWebViewEditorFindWidgetAction.ID,
|
|
@@ -36,7 +36,7 @@ class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
|
36
36
|
}
|
|
37
37
|
class HideWebViewEditorFindCommand extends Action2 {
|
|
38
38
|
static { this.ID = 'editor.action.webvieweditor.hideFind'; }
|
|
39
|
-
static { this.LABEL = ( localize(
|
|
39
|
+
static { this.LABEL = ( localize(9645, "Stop find")); }
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: HideWebViewEditorFindCommand.ID,
|
|
@@ -57,7 +57,7 @@ class HideWebViewEditorFindCommand extends Action2 {
|
|
|
57
57
|
}
|
|
58
58
|
class WebViewEditorFindNextCommand extends Action2 {
|
|
59
59
|
static { this.ID = 'editor.action.webvieweditor.findNext'; }
|
|
60
|
-
static { this.LABEL = ( localize(
|
|
60
|
+
static { this.LABEL = ( localize(9646, 'Find next')); }
|
|
61
61
|
constructor() {
|
|
62
62
|
super({
|
|
63
63
|
id: WebViewEditorFindNextCommand.ID,
|
|
@@ -78,7 +78,7 @@ class WebViewEditorFindNextCommand extends Action2 {
|
|
|
78
78
|
}
|
|
79
79
|
class WebViewEditorFindPreviousCommand extends Action2 {
|
|
80
80
|
static { this.ID = 'editor.action.webvieweditor.findPrevious'; }
|
|
81
|
-
static { this.LABEL = ( localize(
|
|
81
|
+
static { this.LABEL = ( localize(9647, 'Find previous')); }
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: WebViewEditorFindPreviousCommand.ID,
|
|
@@ -99,7 +99,7 @@ class WebViewEditorFindPreviousCommand extends Action2 {
|
|
|
99
99
|
}
|
|
100
100
|
class ReloadWebviewAction extends Action2 {
|
|
101
101
|
static { this.ID = 'workbench.action.webview.reloadWebviewAction'; }
|
|
102
|
-
static { this.LABEL = ( localize2(
|
|
102
|
+
static { this.LABEL = ( localize2(9648, "Reload Webviews")); }
|
|
103
103
|
constructor() {
|
|
104
104
|
super({
|
|
105
105
|
id: ReloadWebviewAction.ID,
|
|
@@ -16,7 +16,7 @@ import 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbench
|
|
|
16
16
|
import 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
17
17
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
18
18
|
|
|
19
|
-
(( (Registry.as(EditorExtensions.EditorPane)))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(
|
|
19
|
+
(( (Registry.as(EditorExtensions.EditorPane)))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(4299, "webview editor"))), [( (new SyncDescriptor(WebviewInput)))]);
|
|
20
20
|
let WebviewPanelContribution = class WebviewPanelContribution extends Disposable {
|
|
21
21
|
static { this.ID = 'workbench.contrib.webviewPanel'; }
|
|
22
22
|
constructor(editorService, editorGroupService) {
|
|
@@ -448,8 +448,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
448
448
|
if (storedChoices[globForResource] && storedChoices[globForResource].find(editorID => editorID === currentEditor.editorId)) {
|
|
449
449
|
return;
|
|
450
450
|
}
|
|
451
|
-
const handle = this.notificationService.prompt(Severity$1.Warning, ( localize(
|
|
452
|
-
label: ( localize(
|
|
451
|
+
const handle = this.notificationService.prompt(Severity$1.Warning, ( localize(4149, 'There are multiple default editors available for the resource.')), [{
|
|
452
|
+
label: ( localize(4150, 'Configure Default')),
|
|
453
453
|
run: async () => {
|
|
454
454
|
const picked = await this.doPickEditor(untypedInput, true);
|
|
455
455
|
if (!picked) {
|
|
@@ -470,7 +470,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
470
470
|
}
|
|
471
471
|
},
|
|
472
472
|
{
|
|
473
|
-
label: ( localize(
|
|
473
|
+
label: ( localize(4151, 'Keep {0}', editorName)),
|
|
474
474
|
run: writeCurrentEditorsToStorage
|
|
475
475
|
}
|
|
476
476
|
]);
|
|
@@ -496,9 +496,9 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
496
496
|
}
|
|
497
497
|
});
|
|
498
498
|
const quickPickEntries = [];
|
|
499
|
-
const currentlyActiveLabel = ( localize(
|
|
500
|
-
const currentDefaultLabel = ( localize(
|
|
501
|
-
const currentDefaultAndActiveLabel = ( localize(
|
|
499
|
+
const currentlyActiveLabel = ( localize(4152, "Active"));
|
|
500
|
+
const currentDefaultLabel = ( localize(4153, "Default"));
|
|
501
|
+
const currentDefaultAndActiveLabel = ( localize(4154, "Active and Default"));
|
|
502
502
|
let defaultViewType = defaultSetting;
|
|
503
503
|
if (!defaultViewType && registeredEditors.length > 2 && registeredEditors[1]?.editorInfo.priority !== RegisteredEditorPriority.option) {
|
|
504
504
|
defaultViewType = registeredEditors[1]?.editorInfo.id;
|
|
@@ -523,7 +523,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
523
523
|
quickPickEntries.push(separator);
|
|
524
524
|
const configureDefaultEntry = {
|
|
525
525
|
id: EditorResolverService_1.configureDefaultID,
|
|
526
|
-
label: ( localize(
|
|
526
|
+
label: ( localize(4155, "Configure default editor for '{0}'...", `*${extname(resource)}`)),
|
|
527
527
|
};
|
|
528
528
|
quickPickEntries.push(configureDefaultEntry);
|
|
529
529
|
}
|
|
@@ -538,8 +538,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
538
538
|
const disposables = ( (new DisposableStore()));
|
|
539
539
|
const editorPicker = disposables.add(this.quickInputService.createQuickPick({ useSeparators: true }));
|
|
540
540
|
const placeHolderMessage = showDefaultPicker ?
|
|
541
|
-
( localize(
|
|
542
|
-
( localize(
|
|
541
|
+
( localize(4156, "Select new default editor for '{0}'", `*${extname(resource)}`)) :
|
|
542
|
+
( localize(4157, "Select editor for '{0}'", basename(resource)));
|
|
543
543
|
editorPicker.placeholder = placeHolderMessage;
|
|
544
544
|
editorPicker.canAcceptInBackground = true;
|
|
545
545
|
editorPicker.items = editorPicks;
|
|
@@ -583,7 +583,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
583
583
|
super({
|
|
584
584
|
id: `${viewDescriptor.id}.removeView`,
|
|
585
585
|
viewPaneContainerId: viewContainerModel.viewContainer.id,
|
|
586
|
-
title: ( localize(
|
|
586
|
+
title: ( localize(4158, "Hide '{0}'", viewDescriptor.name.value)),
|
|
587
587
|
precondition: viewDescriptor.canToggleVisibility && (!viewContainerModel.isVisible(viewDescriptor.id) || viewContainerModel.visibleViewDescriptors.length > 1) ? ContextKeyExpr.true() : ( (ContextKeyExpr.false())),
|
|
588
588
|
menu: [{
|
|
589
589
|
id: MenuId.ViewTitleContext,
|
|
@@ -610,7 +610,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
610
610
|
constructor() {
|
|
611
611
|
super({
|
|
612
612
|
id: `${viewContainer.id}.resetViewContainerLocation`,
|
|
613
|
-
title: ( localize2(
|
|
613
|
+
title: ( localize2(4159, "Reset Location")),
|
|
614
614
|
menu: [{
|
|
615
615
|
id: MenuId.ViewContainerTitleContext,
|
|
616
616
|
when: ( (ContextKeyExpr.or( (ContextKeyExpr.and(
|