@codingame/monaco-vscode-api 11.0.2 → 11.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/extensions.d.ts +1 -1
- package/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +15 -6
- package/vscode/src/vs/editor/browser/editorExtensions.js +6 -6
- package/vscode/src/vs/editor/common/config/editorOptions.js +364 -364
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/window.js +16 -16
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +8 -8
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +60 -60
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +13 -13
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +10 -10
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +10 -10
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +8 -8
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
|
@@ -25,13 +25,13 @@ let TextInputActionsProvider = class TextInputActionsProvider extends Disposable
|
|
|
25
25
|
createActions() {
|
|
26
26
|
return [
|
|
27
27
|
(
|
|
28
|
-
(new Action('undo', ( localize(
|
|
29
|
-
( (new Action('redo', ( localize(
|
|
28
|
+
(new Action('undo', ( localize(699, "Undo")), undefined, true, async () => getActiveDocument().execCommand('undo')))),
|
|
29
|
+
( (new Action('redo', ( localize(700, "Redo")), undefined, true, async () => getActiveDocument().execCommand('redo')))),
|
|
30
30
|
( (new Separator())),
|
|
31
31
|
(
|
|
32
|
-
(new Action('editor.action.clipboardCutAction', ( localize(
|
|
33
|
-
( (new Action('editor.action.clipboardCopyAction', ( localize(
|
|
34
|
-
( (new Action('editor.action.clipboardPasteAction', ( localize(
|
|
32
|
+
(new Action('editor.action.clipboardCutAction', ( localize(701, "Cut")), undefined, true, async () => getActiveDocument().execCommand('cut')))),
|
|
33
|
+
( (new Action('editor.action.clipboardCopyAction', ( localize(702, "Copy")), undefined, true, async () => getActiveDocument().execCommand('copy')))),
|
|
34
|
+
( (new Action('editor.action.clipboardPasteAction', ( localize(703, "Paste")), undefined, true, async (element) => {
|
|
35
35
|
if (isNative) {
|
|
36
36
|
getActiveDocument().execCommand('paste');
|
|
37
37
|
}
|
|
@@ -50,7 +50,7 @@ let TextInputActionsProvider = class TextInputActionsProvider extends Disposable
|
|
|
50
50
|
}))),
|
|
51
51
|
( (new Separator())),
|
|
52
52
|
(
|
|
53
|
-
(new Action('editor.action.selectAll', ( localize(
|
|
53
|
+
(new Action('editor.action.selectAll', ( localize(704, "Select All")), undefined, true, async () => getActiveDocument().execCommand('selectAll'))))
|
|
54
54
|
];
|
|
55
55
|
}
|
|
56
56
|
registerListeners() {
|
|
@@ -35,16 +35,16 @@ class BaseOpenRecentAction extends Action2 {
|
|
|
35
35
|
super(desc);
|
|
36
36
|
this.removeFromRecentlyOpened = {
|
|
37
37
|
iconClass: ThemeIcon.asClassName(Codicon.removeClose),
|
|
38
|
-
tooltip: ( localize(
|
|
38
|
+
tooltip: ( localize(10276, "Remove from Recently Opened"))
|
|
39
39
|
};
|
|
40
40
|
this.dirtyRecentlyOpenedFolder = {
|
|
41
41
|
iconClass: 'dirty-workspace ' + ThemeIcon.asClassName(Codicon.closeDirty),
|
|
42
|
-
tooltip: ( localize(
|
|
42
|
+
tooltip: ( localize(10277, "Folder With Unsaved Files")),
|
|
43
43
|
alwaysVisible: true
|
|
44
44
|
};
|
|
45
45
|
this.dirtyRecentlyOpenedWorkspace = {
|
|
46
46
|
...this.dirtyRecentlyOpenedFolder,
|
|
47
|
-
tooltip: ( localize(
|
|
47
|
+
tooltip: ( localize(10278, "Workspace With Unsaved Files")),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
async run(accessor) {
|
|
@@ -101,17 +101,17 @@ class BaseOpenRecentAction extends Action2 {
|
|
|
101
101
|
const firstEntry = recentlyOpened.workspaces[0];
|
|
102
102
|
const autoFocusSecondEntry = firstEntry && contextService.isCurrentWorkspace(isRecentWorkspace(firstEntry) ? firstEntry.workspace : firstEntry.folderUri);
|
|
103
103
|
let keyMods;
|
|
104
|
-
const workspaceSeparator = { type: 'separator', label: hasWorkspaces ? ( localize(
|
|
105
|
-
const fileSeparator = { type: 'separator', label: ( localize(
|
|
104
|
+
const workspaceSeparator = { type: 'separator', label: hasWorkspaces ? ( localize(10279, "folders & workspaces")) : ( localize(10280, "folders")) };
|
|
105
|
+
const fileSeparator = { type: 'separator', label: ( localize(10281, "files")) };
|
|
106
106
|
const picks = [workspaceSeparator, ...workspacePicks, fileSeparator, ...filePicks];
|
|
107
107
|
const pick = await quickInputService.pick(picks, {
|
|
108
108
|
contextKey: inRecentFilesPickerContextKey,
|
|
109
109
|
activeItem: [...workspacePicks, ...filePicks][autoFocusSecondEntry ? 1 : 0],
|
|
110
110
|
placeHolder: isMacintosh ? ( localize(
|
|
111
|
-
|
|
111
|
+
10282,
|
|
112
112
|
"Select to open (hold Cmd-key to force new window or Option-key for same window)"
|
|
113
113
|
)) : ( localize(
|
|
114
|
-
|
|
114
|
+
10283,
|
|
115
115
|
"Select to open (hold Ctrl-key to force new window or Alt-key for same window)"
|
|
116
116
|
)),
|
|
117
117
|
matchOnDescription: true,
|
|
@@ -126,13 +126,13 @@ class BaseOpenRecentAction extends Action2 {
|
|
|
126
126
|
else if (context.button === this.dirtyRecentlyOpenedFolder || context.button === this.dirtyRecentlyOpenedWorkspace) {
|
|
127
127
|
const isDirtyWorkspace = context.button === this.dirtyRecentlyOpenedWorkspace;
|
|
128
128
|
const { confirmed } = await dialogService.confirm({
|
|
129
|
-
title: isDirtyWorkspace ? ( localize(
|
|
130
|
-
message: isDirtyWorkspace ? ( localize(
|
|
129
|
+
title: isDirtyWorkspace ? ( localize(10284, "Workspace with Unsaved Files")) : ( localize(10285, "Folder with Unsaved Files")),
|
|
130
|
+
message: isDirtyWorkspace ? ( localize(10286, "Do you want to open the workspace to review the unsaved files?")) : ( localize(10287, "Do you want to open the folder to review the unsaved files?")),
|
|
131
131
|
detail: isDirtyWorkspace ? ( localize(
|
|
132
|
-
|
|
132
|
+
10288,
|
|
133
133
|
"Workspaces with unsaved files cannot be removed until all unsaved files have been saved or reverted."
|
|
134
134
|
)) : ( localize(
|
|
135
|
-
|
|
135
|
+
10289,
|
|
136
136
|
"Folders with unsaved files cannot be removed until all unsaved files have been saved or reverted."
|
|
137
137
|
))
|
|
138
138
|
});
|
|
@@ -182,7 +182,7 @@ class BaseOpenRecentAction extends Action2 {
|
|
|
182
182
|
return {
|
|
183
183
|
iconClasses,
|
|
184
184
|
label: name,
|
|
185
|
-
ariaLabel: isDirty ? isWorkspace ? ( localize(
|
|
185
|
+
ariaLabel: isDirty ? isWorkspace ? ( localize(10290, "{0}, workspace with unsaved changes", name)) : ( localize(10291, "{0}, folder with unsaved changes", name)) : name,
|
|
186
186
|
description: parentPath,
|
|
187
187
|
buttons: isDirty ? [isWorkspace ? this.dirtyRecentlyOpenedWorkspace : this.dirtyRecentlyOpenedFolder] : [this.removeFromRecentlyOpened],
|
|
188
188
|
openable,
|
|
@@ -197,8 +197,8 @@ class OpenRecentAction extends BaseOpenRecentAction {
|
|
|
197
197
|
super({
|
|
198
198
|
id: OpenRecentAction.ID,
|
|
199
199
|
title: {
|
|
200
|
-
...( localize2(
|
|
201
|
-
mnemonicTitle: ( localize(
|
|
200
|
+
...( localize2(10292, "Open Recent...")),
|
|
201
|
+
mnemonicTitle: ( localize(10293, "&&More...")),
|
|
202
202
|
},
|
|
203
203
|
category: Categories.File,
|
|
204
204
|
f1: true,
|
|
@@ -222,7 +222,7 @@ class QuickPickRecentAction extends BaseOpenRecentAction {
|
|
|
222
222
|
constructor() {
|
|
223
223
|
super({
|
|
224
224
|
id: 'workbench.action.quickOpenRecent',
|
|
225
|
-
title: ( localize2(
|
|
225
|
+
title: ( localize2(10294, 'Quick Open Recent...')),
|
|
226
226
|
category: Categories.File,
|
|
227
227
|
f1: false
|
|
228
228
|
});
|
|
@@ -236,8 +236,8 @@ class ToggleFullScreenAction extends Action2 {
|
|
|
236
236
|
super({
|
|
237
237
|
id: 'workbench.action.toggleFullScreen',
|
|
238
238
|
title: {
|
|
239
|
-
...( localize2(
|
|
240
|
-
mnemonicTitle: ( localize(
|
|
239
|
+
...( localize2(10295, "Toggle Full Screen")),
|
|
240
|
+
mnemonicTitle: ( localize(10296, "&&Full Screen")),
|
|
241
241
|
},
|
|
242
242
|
category: Categories.View,
|
|
243
243
|
f1: true,
|
|
@@ -267,7 +267,7 @@ class ReloadWindowAction extends Action2 {
|
|
|
267
267
|
constructor() {
|
|
268
268
|
super({
|
|
269
269
|
id: ReloadWindowAction.ID,
|
|
270
|
-
title: ( localize2(
|
|
270
|
+
title: ( localize2(10297, 'Reload Window')),
|
|
271
271
|
category: Categories.Developer,
|
|
272
272
|
f1: true,
|
|
273
273
|
keybinding: {
|
|
@@ -287,8 +287,8 @@ class ShowAboutDialogAction extends Action2 {
|
|
|
287
287
|
super({
|
|
288
288
|
id: 'workbench.action.showAboutDialog',
|
|
289
289
|
title: {
|
|
290
|
-
...( localize2(
|
|
291
|
-
mnemonicTitle: ( localize(
|
|
290
|
+
...( localize2(10298, "About")),
|
|
291
|
+
mnemonicTitle: ( localize(10299, "&&About")),
|
|
292
292
|
},
|
|
293
293
|
category: Categories.Help,
|
|
294
294
|
f1: true,
|
|
@@ -310,8 +310,8 @@ class NewWindowAction extends Action2 {
|
|
|
310
310
|
super({
|
|
311
311
|
id: 'workbench.action.newWindow',
|
|
312
312
|
title: {
|
|
313
|
-
...( localize2(
|
|
314
|
-
mnemonicTitle: ( localize(
|
|
313
|
+
...( localize2(10300, "New Window")),
|
|
314
|
+
mnemonicTitle: ( localize(10301, "New &&Window")),
|
|
315
315
|
},
|
|
316
316
|
f1: true,
|
|
317
317
|
keybinding: {
|
|
@@ -335,7 +335,7 @@ class BlurAction extends Action2 {
|
|
|
335
335
|
constructor() {
|
|
336
336
|
super({
|
|
337
337
|
id: 'workbench.action.blur',
|
|
338
|
-
title: ( localize2(
|
|
338
|
+
title: ( localize2(10302, 'Remove keyboard focus from focused element'))
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
341
|
run() {
|
|
@@ -383,14 +383,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
383
383
|
group: 'z_ConfirmClose',
|
|
384
384
|
command: {
|
|
385
385
|
id: 'workbench.action.toggleConfirmBeforeClose',
|
|
386
|
-
title: ( localize(
|
|
386
|
+
title: ( localize(10303, "Confirm Before Close")),
|
|
387
387
|
toggled: ( (ContextKeyExpr.notEquals('config.window.confirmBeforeClose', 'never')))
|
|
388
388
|
},
|
|
389
389
|
order: 1,
|
|
390
390
|
when: IsWebContext
|
|
391
391
|
});
|
|
392
392
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
393
|
-
title: ( localize(
|
|
393
|
+
title: ( localize(10304, "Open &&Recent")),
|
|
394
394
|
submenu: MenuId.MenubarRecentMenu,
|
|
395
395
|
group: '2_open',
|
|
396
396
|
order: 4
|
|
@@ -20,7 +20,7 @@ import { IWorkspacesService } from '../../../platform/workspaces/common/workspac
|
|
|
20
20
|
import { IPathService } from '../../services/path/common/pathService.service.js';
|
|
21
21
|
|
|
22
22
|
const ADD_ROOT_FOLDER_COMMAND_ID = 'addRootFolder';
|
|
23
|
-
const ADD_ROOT_FOLDER_LABEL = ( localize2(
|
|
23
|
+
const ADD_ROOT_FOLDER_LABEL = ( localize2(5553, 'Add Folder to Workspace...'));
|
|
24
24
|
const SET_ROOT_FOLDER_COMMAND_ID = 'setRootFolder';
|
|
25
25
|
const PICK_WORKSPACE_FOLDER_COMMAND_ID = '_workbench.pickWorkspaceFolder';
|
|
26
26
|
CommandsRegistry.registerCommand({
|
|
@@ -70,8 +70,8 @@ async function selectWorkspaceFolders(accessor) {
|
|
|
70
70
|
const dialogsService = accessor.get(IFileDialogService);
|
|
71
71
|
const pathService = accessor.get(IPathService);
|
|
72
72
|
const folders = await dialogsService.showOpenDialog({
|
|
73
|
-
openLabel: mnemonicButtonLabel(( localize(
|
|
74
|
-
title: ( localize(
|
|
73
|
+
openLabel: mnemonicButtonLabel(( localize(5554, "&&Add"))),
|
|
74
|
+
title: ( localize(5555, "Add Folder to Workspace")),
|
|
75
75
|
canSelectFolders: true,
|
|
76
76
|
canSelectMany: true,
|
|
77
77
|
defaultUri: await dialogsService.defaultFolderPath(),
|
|
@@ -104,7 +104,7 @@ CommandsRegistry.registerCommand(PICK_WORKSPACE_FOLDER_COMMAND_ID, async functio
|
|
|
104
104
|
options.activeItem = folderPicks[0];
|
|
105
105
|
}
|
|
106
106
|
if (!options.placeHolder) {
|
|
107
|
-
options.placeHolder = ( localize(
|
|
107
|
+
options.placeHolder = ( localize(5556, "Select workspace folder"));
|
|
108
108
|
}
|
|
109
109
|
if (typeof options.matchOnDescription !== 'boolean') {
|
|
110
110
|
options.matchOnDescription = true;
|
|
@@ -158,10 +158,10 @@ function whenEditorClosed(accessor, resources) {
|
|
|
158
158
|
function computeEditorAriaLabel(input, index, group, groupCount) {
|
|
159
159
|
let ariaLabel = input.getAriaLabel();
|
|
160
160
|
if (group && !group.isPinned(input)) {
|
|
161
|
-
ariaLabel = ( localize(
|
|
161
|
+
ariaLabel = ( localize(4647, "{0}, preview", ariaLabel));
|
|
162
162
|
}
|
|
163
163
|
if (group?.isSticky(index ?? input)) {
|
|
164
|
-
ariaLabel = ( localize(
|
|
164
|
+
ariaLabel = ( localize(4648, "{0}, pinned", ariaLabel));
|
|
165
165
|
}
|
|
166
166
|
if (group && typeof groupCount === 'number' && groupCount > 1) {
|
|
167
167
|
ariaLabel = `${ariaLabel}, ${group.ariaLabel}`;
|
|
@@ -130,12 +130,12 @@ function registerActiveEditorMoveCopyCommand() {
|
|
|
130
130
|
primary: 0,
|
|
131
131
|
handler: (accessor, args) => moveCopyActiveEditor(true, args, accessor),
|
|
132
132
|
metadata: {
|
|
133
|
-
description: ( localize(
|
|
133
|
+
description: ( localize(5557, "Move the active editor by tabs or groups")),
|
|
134
134
|
args: [
|
|
135
135
|
{
|
|
136
|
-
name: ( localize(
|
|
136
|
+
name: ( localize(5558, "Active editor move argument")),
|
|
137
137
|
description: ( localize(
|
|
138
|
-
|
|
138
|
+
5559,
|
|
139
139
|
"Argument Properties:\n\t* 'to': String value providing where to move.\n\t* 'by': String value providing the unit for move (by tab or by group).\n\t* 'value': Number value providing how many positions or an absolute position to move."
|
|
140
140
|
)),
|
|
141
141
|
constraint: isActiveEditorMoveCopyArg,
|
|
@@ -151,12 +151,12 @@ function registerActiveEditorMoveCopyCommand() {
|
|
|
151
151
|
primary: 0,
|
|
152
152
|
handler: (accessor, args) => moveCopyActiveEditor(false, args, accessor),
|
|
153
153
|
metadata: {
|
|
154
|
-
description: ( localize(
|
|
154
|
+
description: ( localize(5560, "Copy the active editor by groups")),
|
|
155
155
|
args: [
|
|
156
156
|
{
|
|
157
|
-
name: ( localize(
|
|
157
|
+
name: ( localize(5561, "Active editor copy argument")),
|
|
158
158
|
description: ( localize(
|
|
159
|
-
|
|
159
|
+
5562,
|
|
160
160
|
"Argument Properties:\n\t* 'to': String value providing where to copy.\n\t* 'value': Number value providing how many positions or an absolute position to copy."
|
|
161
161
|
)),
|
|
162
162
|
constraint: isActiveEditorMoveCopyArg,
|
|
@@ -305,8 +305,8 @@ function registerEditorGroupsLayoutCommands() {
|
|
|
305
305
|
'description': `The orientation of the root group in the layout. 0 for horizontal, 1 for vertical.`,
|
|
306
306
|
'enum': [0, 1],
|
|
307
307
|
'enumDescriptions': [
|
|
308
|
-
( localize(
|
|
309
|
-
( localize(
|
|
308
|
+
( localize(5563, "Horizontal")),
|
|
309
|
+
( localize(5564, "Vertical"))
|
|
310
310
|
],
|
|
311
311
|
},
|
|
312
312
|
'groups': {
|
|
@@ -807,7 +807,7 @@ function registerSplitEditorInGroupCommands() {
|
|
|
807
807
|
constructor() {
|
|
808
808
|
super({
|
|
809
809
|
id: SPLIT_EDITOR_IN_GROUP,
|
|
810
|
-
title: ( localize2(
|
|
810
|
+
title: ( localize2(5565, 'Split Editor in Group')),
|
|
811
811
|
category: Categories.View,
|
|
812
812
|
precondition: ActiveEditorCanSplitInGroupContext,
|
|
813
813
|
f1: true,
|
|
@@ -854,7 +854,7 @@ function registerSplitEditorInGroupCommands() {
|
|
|
854
854
|
constructor() {
|
|
855
855
|
super({
|
|
856
856
|
id: JOIN_EDITOR_IN_GROUP,
|
|
857
|
-
title: ( localize2(
|
|
857
|
+
title: ( localize2(5566, 'Join Editor in Group')),
|
|
858
858
|
category: Categories.View,
|
|
859
859
|
precondition: SideBySideEditorActiveContext,
|
|
860
860
|
f1: true,
|
|
@@ -873,7 +873,7 @@ function registerSplitEditorInGroupCommands() {
|
|
|
873
873
|
constructor() {
|
|
874
874
|
super({
|
|
875
875
|
id: TOGGLE_SPLIT_EDITOR_IN_GROUP,
|
|
876
|
-
title: ( localize2(
|
|
876
|
+
title: ( localize2(5567, 'Toggle Split Editor in Group')),
|
|
877
877
|
category: Categories.View,
|
|
878
878
|
precondition: ( (ContextKeyExpr.or(ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext))),
|
|
879
879
|
f1: true
|
|
@@ -897,7 +897,7 @@ function registerSplitEditorInGroupCommands() {
|
|
|
897
897
|
constructor() {
|
|
898
898
|
super({
|
|
899
899
|
id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
|
|
900
|
-
title: ( localize2(
|
|
900
|
+
title: ( localize2(5568, 'Toggle Layout of Split Editor in Group')),
|
|
901
901
|
category: Categories.View,
|
|
902
902
|
precondition: SideBySideEditorActiveContext,
|
|
903
903
|
f1: true
|
|
@@ -922,7 +922,7 @@ function registerFocusSideEditorsCommands() {
|
|
|
922
922
|
constructor() {
|
|
923
923
|
super({
|
|
924
924
|
id: FOCUS_FIRST_SIDE_EDITOR,
|
|
925
|
-
title: ( localize2(
|
|
925
|
+
title: ( localize2(5569, 'Focus First Side in Active Editor')),
|
|
926
926
|
category: Categories.View,
|
|
927
927
|
precondition: ( (ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext))),
|
|
928
928
|
f1: true
|
|
@@ -944,7 +944,7 @@ function registerFocusSideEditorsCommands() {
|
|
|
944
944
|
constructor() {
|
|
945
945
|
super({
|
|
946
946
|
id: FOCUS_SECOND_SIDE_EDITOR,
|
|
947
|
-
title: ( localize2(
|
|
947
|
+
title: ( localize2(5570, 'Focus Second Side in Active Editor')),
|
|
948
948
|
category: Categories.View,
|
|
949
949
|
precondition: ( (ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext))),
|
|
950
950
|
f1: true
|
|
@@ -966,7 +966,7 @@ function registerFocusSideEditorsCommands() {
|
|
|
966
966
|
constructor() {
|
|
967
967
|
super({
|
|
968
968
|
id: FOCUS_OTHER_SIDE_EDITOR,
|
|
969
|
-
title: ( localize2(
|
|
969
|
+
title: ( localize2(5571, 'Focus Other Side in Active Editor')),
|
|
970
970
|
category: Categories.View,
|
|
971
971
|
precondition: ( (ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext))),
|
|
972
972
|
f1: true
|
|
@@ -1023,7 +1023,7 @@ function registerOtherEditorCommands() {
|
|
|
1023
1023
|
constructor() {
|
|
1024
1024
|
super({
|
|
1025
1025
|
id: TOGGLE_LOCK_GROUP_COMMAND_ID,
|
|
1026
|
-
title: ( localize2(
|
|
1026
|
+
title: ( localize2(5572, 'Toggle Editor Group Lock')),
|
|
1027
1027
|
category: Categories.View,
|
|
1028
1028
|
f1: true
|
|
1029
1029
|
});
|
|
@@ -1036,7 +1036,7 @@ function registerOtherEditorCommands() {
|
|
|
1036
1036
|
constructor() {
|
|
1037
1037
|
super({
|
|
1038
1038
|
id: LOCK_GROUP_COMMAND_ID,
|
|
1039
|
-
title: ( localize2(
|
|
1039
|
+
title: ( localize2(5573, 'Lock Editor Group')),
|
|
1040
1040
|
category: Categories.View,
|
|
1041
1041
|
precondition: ( (ActiveEditorGroupLockedContext.toNegated())),
|
|
1042
1042
|
f1: true
|
|
@@ -1050,7 +1050,7 @@ function registerOtherEditorCommands() {
|
|
|
1050
1050
|
constructor() {
|
|
1051
1051
|
super({
|
|
1052
1052
|
id: UNLOCK_GROUP_COMMAND_ID,
|
|
1053
|
-
title: ( localize2(
|
|
1053
|
+
title: ( localize2(5574, 'Unlock Editor Group')),
|
|
1054
1054
|
precondition: ActiveEditorGroupLockedContext,
|
|
1055
1055
|
category: Categories.View,
|
|
1056
1056
|
f1: true
|
|
@@ -134,7 +134,7 @@ let EditorTabsControl = class EditorTabsControl extends Themable {
|
|
|
134
134
|
this.editorActionsToolbar = this.editorActionsToolbarDisposables.add(this.instantiationService.createInstance(WorkbenchToolBar, container, {
|
|
135
135
|
actionViewItemProvider: (action, options) => this.actionViewItemProvider(action, options),
|
|
136
136
|
orientation: 0 ,
|
|
137
|
-
ariaLabel: ( localize(
|
|
137
|
+
ariaLabel: ( localize(7087, "Editor actions")),
|
|
138
138
|
getKeyBinding: action => this.getKeybinding(action),
|
|
139
139
|
actionRunner: this.editorActionsToolbarDisposables.add(( (new EditorCommandsContextActionRunner(context)))),
|
|
140
140
|
anchorAlignmentProvider: () => 1 ,
|
|
@@ -206,7 +206,7 @@ let EditorTabsControl = class EditorTabsControl extends Themable {
|
|
|
206
206
|
if (this.groupView.activeEditor) {
|
|
207
207
|
let label = this.groupView.activeEditor.getName();
|
|
208
208
|
if (this.groupsView.partOptions.showTabs === 'multiple' && this.groupView.count > 1) {
|
|
209
|
-
label = ( localize(
|
|
209
|
+
label = ( localize(7088, "{0} (+{1})", label, this.groupView.count - 1));
|
|
210
210
|
}
|
|
211
211
|
applyDragImage(e, label, 'monaco-editor-group-drag-image', this.getColor(listActiveSelectionBackground), this.getColor(listActiveSelectionForeground));
|
|
212
212
|
}
|
|
@@ -145,7 +145,7 @@ let SideBySideEditor = class SideBySideEditor extends AbstractEditorWithViewStat
|
|
|
145
145
|
if (this.input) {
|
|
146
146
|
return this.input.getName();
|
|
147
147
|
}
|
|
148
|
-
return ( localize(
|
|
148
|
+
return ( localize(8882, "Side by Side Editor"));
|
|
149
149
|
}
|
|
150
150
|
async setInput(input, options, context, token) {
|
|
151
151
|
const oldInput = this.input;
|
|
@@ -19,7 +19,7 @@ class AbstractTextCodeEditor extends AbstractTextEditor {
|
|
|
19
19
|
if (this.input) {
|
|
20
20
|
return this.input.getName();
|
|
21
21
|
}
|
|
22
|
-
return ( localize(
|
|
22
|
+
return ( localize(11063, "Text Editor"));
|
|
23
23
|
}
|
|
24
24
|
createEditorControl(parent, initialOptions) {
|
|
25
25
|
this.editorControl = this._register(this.instantiationService.createInstance(CodeEditorWidget, parent, initialOptions, this.getCodeEditorWidgetOptions()));
|
|
@@ -44,7 +44,7 @@ var GlobalCompositeBar_1;
|
|
|
44
44
|
let GlobalCompositeBar = class GlobalCompositeBar extends Disposable {
|
|
45
45
|
static { GlobalCompositeBar_1 = this; }
|
|
46
46
|
static { this.ACCOUNTS_ACTION_INDEX = 0; }
|
|
47
|
-
static { this.ACCOUNTS_ICON = registerIcon('accounts-view-bar-icon', Codicon.account, ( localize(
|
|
47
|
+
static { this.ACCOUNTS_ICON = registerIcon('accounts-view-bar-icon', Codicon.account, ( localize(7077, "Accounts icon in the view bar."))); }
|
|
48
48
|
constructor(contextMenuActionsProvider, colors, activityHoverOptions, configurationService, instantiationService, storageService, extensionService) {
|
|
49
49
|
super();
|
|
50
50
|
this.contextMenuActionsProvider = contextMenuActionsProvider;
|
|
@@ -72,7 +72,7 @@ let GlobalCompositeBar = class GlobalCompositeBar extends Disposable {
|
|
|
72
72
|
hoverOptions: this.activityHoverOptions
|
|
73
73
|
}, contextMenuAlignmentOptions, (actions) => {
|
|
74
74
|
actions.unshift(...[
|
|
75
|
-
toAction({ id: 'hideAccounts', label: ( localize(
|
|
75
|
+
toAction({ id: 'hideAccounts', label: ( localize(7078, "Hide Accounts")), run: () => setAccountsActionVisible(storageService, false) }),
|
|
76
76
|
( (new Separator()))
|
|
77
77
|
]);
|
|
78
78
|
});
|
|
@@ -80,7 +80,7 @@ let GlobalCompositeBar = class GlobalCompositeBar extends Disposable {
|
|
|
80
80
|
throw ( (new Error(`No view item for action '${action.id}'`)));
|
|
81
81
|
},
|
|
82
82
|
orientation: 1 ,
|
|
83
|
-
ariaLabel: ( localize(
|
|
83
|
+
ariaLabel: ( localize(7079, "Manage")),
|
|
84
84
|
preventLoopNavigation: true
|
|
85
85
|
}))));
|
|
86
86
|
if (this.accountsVisibilityPreference) {
|
|
@@ -106,7 +106,7 @@ let GlobalCompositeBar = class GlobalCompositeBar extends Disposable {
|
|
|
106
106
|
return this.globalActivityActionBar.viewItems.length;
|
|
107
107
|
}
|
|
108
108
|
getContextMenuActions() {
|
|
109
|
-
return [toAction({ id: 'toggleAccountsVisibility', label: ( localize(
|
|
109
|
+
return [toAction({ id: 'toggleAccountsVisibility', label: ( localize(7080, "Accounts")), checked: this.accountsVisibilityPreference, run: () => this.accountsVisibilityPreference = !this.accountsVisibilityPreference })];
|
|
110
110
|
}
|
|
111
111
|
toggleAccountsActivity() {
|
|
112
112
|
if (this.globalActivityActionBar.length() === 2 && this.accountsVisibilityPreference) {
|
|
@@ -247,7 +247,7 @@ let AccountsActivityActionViewItem = class AccountsActivityActionViewItem extend
|
|
|
247
247
|
constructor(contextMenuActionsProvider, options, contextMenuAlignmentOptions, fillContextMenuActions, themeService, lifecycleService, hoverService, contextMenuService, menuService, contextKeyService, authenticationService, environmentService, productService, configurationService, keybindingService, secretStorageService, logService, activityService, instantiationService, commandService) {
|
|
248
248
|
const action = instantiationService.createInstance(CompositeBarAction, {
|
|
249
249
|
id: ACCOUNTS_ACTIVITY_ID,
|
|
250
|
-
name: ( localize(
|
|
250
|
+
name: ( localize(7080, "Accounts")),
|
|
251
251
|
classNames: ThemeIcon.asClassNameArray(GlobalCompositeBar.ACCOUNTS_ICON)
|
|
252
252
|
});
|
|
253
253
|
super(MenuId.AccountsContext, action, options, contextMenuActionsProvider, contextMenuAlignmentOptions, themeService, hoverService, menuService, contextMenuService, contextKeyService, configurationService, keybindingService, activityService);
|
|
@@ -319,7 +319,7 @@ let AccountsActivityActionViewItem = class AccountsActivityActionViewItem extend
|
|
|
319
319
|
let menus = [];
|
|
320
320
|
for (const providerId of providers) {
|
|
321
321
|
if (!this.initialized) {
|
|
322
|
-
const noAccountsAvailableAction = disposables.add(( (new Action('noAccountsAvailable', ( localize(
|
|
322
|
+
const noAccountsAvailableAction = disposables.add(( (new Action('noAccountsAvailable', ( localize(7081, "Loading...")), undefined, false))));
|
|
323
323
|
menus.push(noAccountsAvailableAction);
|
|
324
324
|
break;
|
|
325
325
|
}
|
|
@@ -327,7 +327,7 @@ let AccountsActivityActionViewItem = class AccountsActivityActionViewItem extend
|
|
|
327
327
|
const accounts = this.groupedAccounts.get(providerId);
|
|
328
328
|
if (!accounts) {
|
|
329
329
|
if (( (this.problematicProviders.has(providerId)))) {
|
|
330
|
-
const providerUnavailableAction = disposables.add(( (new Action('providerUnavailable', ( localize(
|
|
330
|
+
const providerUnavailableAction = disposables.add(( (new Action('providerUnavailable', ( localize(7082, '{0} is currently unavailable', providerLabel)), undefined, false))));
|
|
331
331
|
menus.push(providerUnavailableAction);
|
|
332
332
|
try {
|
|
333
333
|
await this.addAccountsFromProvider(providerId);
|
|
@@ -341,7 +341,7 @@ let AccountsActivityActionViewItem = class AccountsActivityActionViewItem extend
|
|
|
341
341
|
for (const account of accounts) {
|
|
342
342
|
const manageExtensionsAction = toAction({
|
|
343
343
|
id: `configureSessions${account.label}`,
|
|
344
|
-
label: ( localize(
|
|
344
|
+
label: ( localize(7083, "Manage Trusted Extensions")),
|
|
345
345
|
enabled: true,
|
|
346
346
|
run: () => this.commandService.executeCommand('_manageTrustedExtensionsForAccount', { providerId, accountLabel: account.label })
|
|
347
347
|
});
|
|
@@ -349,7 +349,7 @@ let AccountsActivityActionViewItem = class AccountsActivityActionViewItem extend
|
|
|
349
349
|
if (account.canSignOut) {
|
|
350
350
|
providerSubMenuActions.push(toAction({
|
|
351
351
|
id: 'signOut',
|
|
352
|
-
label: ( localize(
|
|
352
|
+
label: ( localize(7084, "Sign Out")),
|
|
353
353
|
enabled: true,
|
|
354
354
|
run: () => this.commandService.executeCommand('_signOutOfAccount', { providerId, accountLabel: account.label })
|
|
355
355
|
}));
|
|
@@ -363,7 +363,7 @@ let AccountsActivityActionViewItem = class AccountsActivityActionViewItem extend
|
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
if (providers.length && !menus.length) {
|
|
366
|
-
const noAccountsAvailableAction = disposables.add(( (new Action('noAccountsAvailable', ( localize(
|
|
366
|
+
const noAccountsAvailableAction = disposables.add(( (new Action('noAccountsAvailable', ( localize(7085, "You are not signed in to any accounts")), undefined, false))));
|
|
367
367
|
menus.push(noAccountsAvailableAction);
|
|
368
368
|
}
|
|
369
369
|
if (menus.length && otherCommands.length) {
|
|
@@ -463,7 +463,7 @@ let GlobalActivityActionViewItem = class GlobalActivityActionViewItem extends Ab
|
|
|
463
463
|
constructor(contextMenuActionsProvider, options, contextMenuAlignmentOptions, userDataProfileService, themeService, hoverService, menuService, contextMenuService, contextKeyService, configurationService, environmentService, keybindingService, instantiationService, activityService) {
|
|
464
464
|
const action = instantiationService.createInstance(CompositeBarAction, {
|
|
465
465
|
id: GLOBAL_ACTIVITY_ID,
|
|
466
|
-
name: ( localize(
|
|
466
|
+
name: ( localize(7079, "Manage")),
|
|
467
467
|
classNames: ThemeIcon.asClassNameArray(userDataProfileService.currentProfile.icon ? ThemeIcon.fromId(userDataProfileService.currentProfile.icon) : DEFAULT_ICON)
|
|
468
468
|
});
|
|
469
469
|
super(MenuId.GlobalActivity, action, options, contextMenuActionsProvider, contextMenuAlignmentOptions, themeService, hoverService, menuService, contextMenuService, contextKeyService, configurationService, keybindingService, activityService);
|
|
@@ -507,7 +507,7 @@ let GlobalActivityActionViewItem = class GlobalActivityActionViewItem extends Ab
|
|
|
507
507
|
}
|
|
508
508
|
computeTitle() {
|
|
509
509
|
return this.userDataProfileService.currentProfile.isDefault ? super.computeTitle() : ( localize(
|
|
510
|
-
|
|
510
|
+
7086,
|
|
511
511
|
"Manage {0} (Profile)",
|
|
512
512
|
this.userDataProfileService.currentProfile.name
|
|
513
513
|
));
|
|
@@ -588,12 +588,12 @@ SimpleGlobalActivityActionViewItem = ( (__decorate([
|
|
|
588
588
|
function simpleActivityContextMenuActions(storageService, isAccount) {
|
|
589
589
|
const currentElementContextMenuActions = [];
|
|
590
590
|
if (isAccount) {
|
|
591
|
-
currentElementContextMenuActions.push(toAction({ id: 'hideAccounts', label: ( localize(
|
|
591
|
+
currentElementContextMenuActions.push(toAction({ id: 'hideAccounts', label: ( localize(7078, "Hide Accounts")), run: () => setAccountsActionVisible(storageService, false) }), ( (new Separator())));
|
|
592
592
|
}
|
|
593
593
|
return [
|
|
594
594
|
...currentElementContextMenuActions,
|
|
595
|
-
toAction({ id: 'toggle.hideAccounts', label: ( localize(
|
|
596
|
-
toAction({ id: 'toggle.hideManage', label: ( localize(
|
|
595
|
+
toAction({ id: 'toggle.hideAccounts', label: ( localize(7080, "Accounts")), checked: isAccountsActionVisible(storageService), run: () => setAccountsActionVisible(storageService, !isAccountsActionVisible(storageService)) }),
|
|
596
|
+
toAction({ id: 'toggle.hideManage', label: ( localize(7079, "Manage")), checked: true, enabled: false, run: () => { throw ( (new Error('"Manage" can not be hidden'))); } })
|
|
597
597
|
];
|
|
598
598
|
}
|
|
599
599
|
function isAccountsActionVisible(storageService) {
|