@codingame/monaco-vscode-api 11.0.1 → 11.0.2
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/api.js +1 -1
- package/missing-services.js +2 -2
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- 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/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +5 -20
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.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/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- 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/editor/textDiffEditor.js +3 -3
- 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/views/treeView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/window.js +16 -16
- 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/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- 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/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- 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/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- 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/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- 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/webviewPanel/browser/webviewEditor.js +1 -1
- 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/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
- 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/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
|
@@ -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(10245, "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(10246, "Folder With Unsaved Files")),
|
|
43
43
|
alwaysVisible: true
|
|
44
44
|
};
|
|
45
45
|
this.dirtyRecentlyOpenedWorkspace = {
|
|
46
46
|
...this.dirtyRecentlyOpenedFolder,
|
|
47
|
-
tooltip: ( localize(
|
|
47
|
+
tooltip: ( localize(10247, "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(10248, "folders & workspaces")) : ( localize(10249, "folders")) };
|
|
105
|
+
const fileSeparator = { type: 'separator', label: ( localize(10250, "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
|
+
10251,
|
|
112
112
|
"Select to open (hold Cmd-key to force new window or Option-key for same window)"
|
|
113
113
|
)) : ( localize(
|
|
114
|
-
|
|
114
|
+
10252,
|
|
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(10253, "Workspace with Unsaved Files")) : ( localize(10254, "Folder with Unsaved Files")),
|
|
130
|
+
message: isDirtyWorkspace ? ( localize(10255, "Do you want to open the workspace to review the unsaved files?")) : ( localize(10256, "Do you want to open the folder to review the unsaved files?")),
|
|
131
131
|
detail: isDirtyWorkspace ? ( localize(
|
|
132
|
-
|
|
132
|
+
10257,
|
|
133
133
|
"Workspaces with unsaved files cannot be removed until all unsaved files have been saved or reverted."
|
|
134
134
|
)) : ( localize(
|
|
135
|
-
|
|
135
|
+
10258,
|
|
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(10259, "{0}, workspace with unsaved changes", name)) : ( localize(10260, "{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(10261, "Open Recent...")),
|
|
201
|
+
mnemonicTitle: ( localize(10262, "&&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(10263, '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(10264, "Toggle Full Screen")),
|
|
240
|
+
mnemonicTitle: ( localize(10265, "&&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(10266, '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(10267, "About")),
|
|
291
|
+
mnemonicTitle: ( localize(10268, "&&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(10269, "New Window")),
|
|
314
|
+
mnemonicTitle: ( localize(10270, "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(10271, '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(10272, "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(10273, "Open &&Recent")),
|
|
394
394
|
submenu: MenuId.MenubarRecentMenu,
|
|
395
395
|
group: '2_open',
|
|
396
396
|
order: 4
|
|
@@ -16,13 +16,13 @@ import { IWorkspacesService } from '../../../platform/workspaces/common/workspac
|
|
|
16
16
|
import { IsMacNativeContext } from '../../../platform/contextkey/common/contextkeys.js';
|
|
17
17
|
import { Categories } from '../../../platform/action/common/actionCommonCategories.js';
|
|
18
18
|
|
|
19
|
-
const workspacesCategory = ( localize2(
|
|
19
|
+
const workspacesCategory = ( localize2(5419, 'Workspaces'));
|
|
20
20
|
class OpenFileAction extends Action2 {
|
|
21
21
|
static { this.ID = 'workbench.action.files.openFile'; }
|
|
22
22
|
constructor() {
|
|
23
23
|
super({
|
|
24
24
|
id: OpenFileAction.ID,
|
|
25
|
-
title: ( localize2(
|
|
25
|
+
title: ( localize2(5420, 'Open File...')),
|
|
26
26
|
category: Categories.File,
|
|
27
27
|
f1: true,
|
|
28
28
|
keybinding: {
|
|
@@ -42,7 +42,7 @@ class OpenFolderAction extends Action2 {
|
|
|
42
42
|
constructor() {
|
|
43
43
|
super({
|
|
44
44
|
id: OpenFolderAction.ID,
|
|
45
|
-
title: ( localize2(
|
|
45
|
+
title: ( localize2(5421, 'Open Folder...')),
|
|
46
46
|
category: Categories.File,
|
|
47
47
|
f1: true,
|
|
48
48
|
precondition: OpenFolderWorkspaceSupportContext,
|
|
@@ -68,7 +68,7 @@ class OpenFolderViaWorkspaceAction extends Action2 {
|
|
|
68
68
|
constructor() {
|
|
69
69
|
super({
|
|
70
70
|
id: OpenFolderViaWorkspaceAction.ID,
|
|
71
|
-
title: ( localize2(
|
|
71
|
+
title: ( localize2(5421, 'Open Folder...')),
|
|
72
72
|
category: Categories.File,
|
|
73
73
|
f1: true,
|
|
74
74
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -88,7 +88,7 @@ class OpenFolderViaWorkspaceAction extends Action2 {
|
|
|
88
88
|
}
|
|
89
89
|
class OpenFileFolderAction extends Action2 {
|
|
90
90
|
static { this.ID = 'workbench.action.files.openFileFolder'; }
|
|
91
|
-
static { this.LABEL = ( localize2(
|
|
91
|
+
static { this.LABEL = ( localize2(5422, 'Open...')); }
|
|
92
92
|
constructor() {
|
|
93
93
|
super({
|
|
94
94
|
id: OpenFileFolderAction.ID,
|
|
@@ -112,7 +112,7 @@ class OpenWorkspaceAction extends Action2 {
|
|
|
112
112
|
constructor() {
|
|
113
113
|
super({
|
|
114
114
|
id: OpenWorkspaceAction.ID,
|
|
115
|
-
title: ( localize2(
|
|
115
|
+
title: ( localize2(5423, 'Open Workspace from File...')),
|
|
116
116
|
category: Categories.File,
|
|
117
117
|
f1: true,
|
|
118
118
|
precondition: EnterMultiRootWorkspaceSupportContext
|
|
@@ -128,7 +128,7 @@ class CloseWorkspaceAction extends Action2 {
|
|
|
128
128
|
constructor() {
|
|
129
129
|
super({
|
|
130
130
|
id: CloseWorkspaceAction.ID,
|
|
131
|
-
title: ( localize2(
|
|
131
|
+
title: ( localize2(5424, 'Close Workspace')),
|
|
132
132
|
category: workspacesCategory,
|
|
133
133
|
f1: true,
|
|
134
134
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -152,7 +152,7 @@ class OpenWorkspaceConfigFileAction extends Action2 {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: OpenWorkspaceConfigFileAction.ID,
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(5425, 'Open Workspace Configuration File')),
|
|
156
156
|
category: workspacesCategory,
|
|
157
157
|
f1: true,
|
|
158
158
|
precondition: ( (WorkbenchStateContext.isEqualTo('workspace')))
|
|
@@ -191,7 +191,7 @@ class RemoveRootFolderAction extends Action2 {
|
|
|
191
191
|
constructor() {
|
|
192
192
|
super({
|
|
193
193
|
id: RemoveRootFolderAction.ID,
|
|
194
|
-
title: ( localize2(
|
|
194
|
+
title: ( localize2(5426, 'Remove Folder from Workspace...')),
|
|
195
195
|
category: workspacesCategory,
|
|
196
196
|
f1: true,
|
|
197
197
|
precondition: ( (ContextKeyExpr.and(
|
|
@@ -217,7 +217,7 @@ class SaveWorkspaceAsAction extends Action2 {
|
|
|
217
217
|
constructor() {
|
|
218
218
|
super({
|
|
219
219
|
id: SaveWorkspaceAsAction.ID,
|
|
220
|
-
title: ( localize2(
|
|
220
|
+
title: ( localize2(5427, 'Save Workspace As...')),
|
|
221
221
|
category: workspacesCategory,
|
|
222
222
|
f1: true,
|
|
223
223
|
precondition: EnterMultiRootWorkspaceSupportContext
|
|
@@ -245,7 +245,7 @@ class DuplicateWorkspaceInNewWindowAction extends Action2 {
|
|
|
245
245
|
constructor() {
|
|
246
246
|
super({
|
|
247
247
|
id: DuplicateWorkspaceInNewWindowAction.ID,
|
|
248
|
-
title: ( localize2(
|
|
248
|
+
title: ( localize2(5428, 'Duplicate As Workspace in New Window')),
|
|
249
249
|
category: workspacesCategory,
|
|
250
250
|
f1: true,
|
|
251
251
|
precondition: EnterMultiRootWorkspaceSupportContext
|
|
@@ -279,7 +279,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
279
279
|
group: '2_open',
|
|
280
280
|
command: {
|
|
281
281
|
id: OpenFileAction.ID,
|
|
282
|
-
title: ( localize(
|
|
282
|
+
title: ( localize(5429, "&&Open File..."))
|
|
283
283
|
},
|
|
284
284
|
order: 1,
|
|
285
285
|
when: ( (IsMacNativeContext.toNegated()))
|
|
@@ -288,7 +288,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
288
288
|
group: '2_open',
|
|
289
289
|
command: {
|
|
290
290
|
id: OpenFolderAction.ID,
|
|
291
|
-
title: ( localize(
|
|
291
|
+
title: ( localize(5430, "Open &&Folder..."))
|
|
292
292
|
},
|
|
293
293
|
order: 2,
|
|
294
294
|
when: OpenFolderWorkspaceSupportContext
|
|
@@ -297,7 +297,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
297
297
|
group: '2_open',
|
|
298
298
|
command: {
|
|
299
299
|
id: OpenFolderViaWorkspaceAction.ID,
|
|
300
|
-
title: ( localize(
|
|
300
|
+
title: ( localize(5430, "Open &&Folder..."))
|
|
301
301
|
},
|
|
302
302
|
order: 2,
|
|
303
303
|
when: ( (ContextKeyExpr.and(
|
|
@@ -309,7 +309,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
309
309
|
group: '2_open',
|
|
310
310
|
command: {
|
|
311
311
|
id: OpenFileFolderAction.ID,
|
|
312
|
-
title: ( localize(
|
|
312
|
+
title: ( localize(5431, "&&Open..."))
|
|
313
313
|
},
|
|
314
314
|
order: 1,
|
|
315
315
|
when: ( (ContextKeyExpr.and(IsMacNativeContext, OpenFolderWorkspaceSupportContext)))
|
|
@@ -318,7 +318,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
318
318
|
group: '2_open',
|
|
319
319
|
command: {
|
|
320
320
|
id: OpenWorkspaceAction.ID,
|
|
321
|
-
title: ( localize(
|
|
321
|
+
title: ( localize(5432, "Open Wor&&kspace from File..."))
|
|
322
322
|
},
|
|
323
323
|
order: 3,
|
|
324
324
|
when: EnterMultiRootWorkspaceSupportContext
|
|
@@ -327,7 +327,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
327
327
|
group: '3_workspace',
|
|
328
328
|
command: {
|
|
329
329
|
id: ADD_ROOT_FOLDER_COMMAND_ID,
|
|
330
|
-
title: ( localize(
|
|
330
|
+
title: ( localize(5433, "A&&dd Folder to Workspace..."))
|
|
331
331
|
},
|
|
332
332
|
when: ( (ContextKeyExpr.or(
|
|
333
333
|
EnterMultiRootWorkspaceSupportContext,
|
|
@@ -339,7 +339,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
339
339
|
group: '3_workspace',
|
|
340
340
|
command: {
|
|
341
341
|
id: SaveWorkspaceAsAction.ID,
|
|
342
|
-
title: ( localize(
|
|
342
|
+
title: ( localize(5434, "Save Workspace As..."))
|
|
343
343
|
},
|
|
344
344
|
order: 2,
|
|
345
345
|
when: EnterMultiRootWorkspaceSupportContext
|
|
@@ -348,7 +348,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
348
348
|
group: '3_workspace',
|
|
349
349
|
command: {
|
|
350
350
|
id: DuplicateWorkspaceInNewWindowAction.ID,
|
|
351
|
-
title: ( localize(
|
|
351
|
+
title: ( localize(5435, "Duplicate Workspace"))
|
|
352
352
|
},
|
|
353
353
|
order: 3,
|
|
354
354
|
when: EnterMultiRootWorkspaceSupportContext
|
|
@@ -357,7 +357,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
357
357
|
group: '6_close',
|
|
358
358
|
command: {
|
|
359
359
|
id: CloseWorkspaceAction.ID,
|
|
360
|
-
title: ( localize(
|
|
360
|
+
title: ( localize(5436, "Close &&Folder"))
|
|
361
361
|
},
|
|
362
362
|
order: 3,
|
|
363
363
|
when: ( (ContextKeyExpr.and(
|
|
@@ -369,7 +369,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
|
369
369
|
group: '6_close',
|
|
370
370
|
command: {
|
|
371
371
|
id: CloseWorkspaceAction.ID,
|
|
372
|
-
title: ( localize(
|
|
372
|
+
title: ( localize(5437, "Close &&Workspace"))
|
|
373
373
|
},
|
|
374
374
|
order: 3,
|
|
375
375
|
when: ( (ContextKeyExpr.and(
|
|
@@ -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(5566, '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(5567, "&&Add"))),
|
|
74
|
+
title: ( localize(5568, "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(5569, "Select workspace folder"));
|
|
108
108
|
}
|
|
109
109
|
if (typeof options.matchOnDescription !== 'boolean') {
|
|
110
110
|
options.matchOnDescription = true;
|
|
@@ -21,7 +21,7 @@ let BinaryResourceDiffEditor = class BinaryResourceDiffEditor extends SideBySide
|
|
|
21
21
|
const primary = this.getPrimaryEditorPane();
|
|
22
22
|
const secondary = this.getSecondaryEditorPane();
|
|
23
23
|
if (primary instanceof BaseBinaryResourceEditor && secondary instanceof BaseBinaryResourceEditor) {
|
|
24
|
-
return ( localize(
|
|
24
|
+
return ( localize(9728, "{0} ↔ {1}", secondary.getMetadata(), primary.getMetadata()));
|
|
25
25
|
}
|
|
26
26
|
return undefined;
|
|
27
27
|
}
|
|
@@ -30,7 +30,7 @@ function registerDiffEditorCommands() {
|
|
|
30
30
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
31
31
|
command: {
|
|
32
32
|
id: GOTO_NEXT_CHANGE,
|
|
33
|
-
title: ( localize2(
|
|
33
|
+
title: ( localize2(9908, 'Go to Next Change')),
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
@@ -43,7 +43,7 @@ function registerDiffEditorCommands() {
|
|
|
43
43
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
44
44
|
command: {
|
|
45
45
|
id: GOTO_PREVIOUS_CHANGE,
|
|
46
|
-
title: ( localize2(
|
|
46
|
+
title: ( localize2(9909, 'Go to Previous Change')),
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
function getActiveTextDiffEditor(accessor, args) {
|
|
@@ -192,16 +192,16 @@ function registerDiffEditorCommands() {
|
|
|
192
192
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
193
193
|
command: {
|
|
194
194
|
id: TOGGLE_DIFF_SIDE_BY_SIDE,
|
|
195
|
-
title: ( localize2(
|
|
196
|
-
category: ( localize(
|
|
195
|
+
title: ( localize2(9910, "Toggle Inline View")),
|
|
196
|
+
category: ( localize(9911, "Compare"))
|
|
197
197
|
},
|
|
198
198
|
when: TextCompareEditorActiveContext
|
|
199
199
|
});
|
|
200
200
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, {
|
|
201
201
|
command: {
|
|
202
202
|
id: DIFF_SWAP_SIDES,
|
|
203
|
-
title: ( localize2(
|
|
204
|
-
category: ( localize(
|
|
203
|
+
title: ( localize2(9912, "Swap Left and Right Editor Side")),
|
|
204
|
+
category: ( localize(9911, "Compare"))
|
|
205
205
|
},
|
|
206
206
|
when: ( (ContextKeyExpr.and(TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext)))
|
|
207
207
|
});
|
|
@@ -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(5570, "Move the active editor by tabs or groups")),
|
|
134
134
|
args: [
|
|
135
135
|
{
|
|
136
|
-
name: ( localize(
|
|
136
|
+
name: ( localize(5571, "Active editor move argument")),
|
|
137
137
|
description: ( localize(
|
|
138
|
-
|
|
138
|
+
5572,
|
|
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(5573, "Copy the active editor by groups")),
|
|
155
155
|
args: [
|
|
156
156
|
{
|
|
157
|
-
name: ( localize(
|
|
157
|
+
name: ( localize(5574, "Active editor copy argument")),
|
|
158
158
|
description: ( localize(
|
|
159
|
-
|
|
159
|
+
5575,
|
|
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(5576, "Horizontal")),
|
|
309
|
+
( localize(5577, "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(5578, '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(5579, '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(5580, '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(5581, '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(5582, '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(5583, '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(5584, '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(5585, '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(5586, '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(5587, 'Unlock Editor Group')),
|
|
1054
1054
|
precondition: ActiveEditorGroupLockedContext,
|
|
1055
1055
|
category: Categories.View,
|
|
1056
1056
|
f1: true
|
|
@@ -19,7 +19,7 @@ let BaseEditorQuickAccessProvider = class BaseEditorQuickAccessProvider extends
|
|
|
19
19
|
super(prefix, {
|
|
20
20
|
canAcceptInBackground: true,
|
|
21
21
|
noResultsPick: {
|
|
22
|
-
label: ( localize(
|
|
22
|
+
label: ( localize(9913, "No matching editors")),
|
|
23
23
|
groupId: -1
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -110,19 +110,19 @@ let BaseEditorQuickAccessProvider = class BaseEditorQuickAccessProvider extends
|
|
|
110
110
|
if (mapGroupIdToGroupAriaLabel.size > 1) {
|
|
111
111
|
return isDirty ?
|
|
112
112
|
( localize(
|
|
113
|
-
|
|
113
|
+
9914,
|
|
114
114
|
"{0}, unsaved changes, {1}",
|
|
115
115
|
nameAndDescription,
|
|
116
116
|
mapGroupIdToGroupAriaLabel.get(groupId)
|
|
117
117
|
)) :
|
|
118
118
|
( localize(
|
|
119
|
-
|
|
119
|
+
9915,
|
|
120
120
|
"{0}, {1}",
|
|
121
121
|
nameAndDescription,
|
|
122
122
|
mapGroupIdToGroupAriaLabel.get(groupId)
|
|
123
123
|
));
|
|
124
124
|
}
|
|
125
|
-
return isDirty ? ( localize(
|
|
125
|
+
return isDirty ? ( localize(9916, "{0}, unsaved changes", nameAndDescription)) : nameAndDescription;
|
|
126
126
|
})(),
|
|
127
127
|
description,
|
|
128
128
|
iconClasses: getIconClasses(this.modelService, this.languageService, resource, undefined, editor.getIcon()).concat(editor.getLabelExtraClasses()),
|
|
@@ -131,7 +131,7 @@ let BaseEditorQuickAccessProvider = class BaseEditorQuickAccessProvider extends
|
|
|
131
131
|
return [
|
|
132
132
|
{
|
|
133
133
|
iconClass: isDirty ? ('dirty-editor ' + ThemeIcon.asClassName(Codicon.closeDirty)) : ThemeIcon.asClassName(Codicon.close),
|
|
134
|
-
tooltip: ( localize(
|
|
134
|
+
tooltip: ( localize(9917, "Close Editor")),
|
|
135
135
|
alwaysVisible: isDirty
|
|
136
136
|
}
|
|
137
137
|
];
|