@codingame/monaco-vscode-api 10.0.0 → 10.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/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- 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/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- 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/dropOrPasteInto/browser/copyPasteContribution.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- 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/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- 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/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +45 -26
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.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/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
- 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/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- 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/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.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/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +11 -11
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +34 -34
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- 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/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +13 -4
- 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/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/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
- 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/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- 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/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- 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 +11 -9
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- 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/inlineChatActions.js +19 -19
- 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/inlineChat/common/inlineChat.js +41 -41
- 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/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- 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/snippets/browser/commands/abstractSnippetsActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- 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/tasks/common/tasks.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +28 -28
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +1 -0
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- 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/editor/common/editorResolverService.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/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
- 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/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -296,7 +296,7 @@ let EditorGroupView = EditorGroupView_1 = class EditorGroupView extends Themable
|
|
|
296
296
|
toolbarContainer.classList.add('editor-group-container-toolbar');
|
|
297
297
|
this.element.appendChild(toolbarContainer);
|
|
298
298
|
const containerToolbar = this._register(( (new ActionBar(toolbarContainer, {
|
|
299
|
-
ariaLabel: ( localize(
|
|
299
|
+
ariaLabel: ( localize(10148, "Empty editor group actions")),
|
|
300
300
|
highlightToggledItems: true
|
|
301
301
|
}))));
|
|
302
302
|
const containerToolbarMenu = this._register(this.menuService.createMenu(MenuId.EmptyEditorGroup, this.scopedContextKeyService));
|
|
@@ -369,7 +369,7 @@ let EditorGroupView = EditorGroupView_1 = class EditorGroupView extends Themable
|
|
|
369
369
|
if (this.isEmpty) {
|
|
370
370
|
this.element.classList.add('empty');
|
|
371
371
|
this.element.tabIndex = 0;
|
|
372
|
-
this.element.setAttribute('aria-label', ( localize(
|
|
372
|
+
this.element.setAttribute('aria-label', ( localize(10149, "{0} (empty)", this.ariaLabel)));
|
|
373
373
|
}
|
|
374
374
|
else {
|
|
375
375
|
this.element.classList.remove('empty');
|
|
@@ -599,15 +599,15 @@ let EditorGroupView = EditorGroupView_1 = class EditorGroupView extends Themable
|
|
|
599
599
|
}
|
|
600
600
|
get label() {
|
|
601
601
|
if (this.groupsLabel) {
|
|
602
|
-
return ( localize(
|
|
602
|
+
return ( localize(10150, "{0}: Group {1}", this.groupsLabel, this._index + 1));
|
|
603
603
|
}
|
|
604
|
-
return ( localize(
|
|
604
|
+
return ( localize(10151, "Group {0}", this._index + 1));
|
|
605
605
|
}
|
|
606
606
|
get ariaLabel() {
|
|
607
607
|
if (this.groupsLabel) {
|
|
608
|
-
return ( localize(
|
|
608
|
+
return ( localize(10152, "{0}: Editor Group {1}", this.groupsLabel, this._index + 1));
|
|
609
609
|
}
|
|
610
|
-
return ( localize(
|
|
610
|
+
return ( localize(10153, "Editor Group {0}", this._index + 1));
|
|
611
611
|
}
|
|
612
612
|
get disposed() {
|
|
613
613
|
return this._disposed;
|
|
@@ -950,7 +950,7 @@ let EditorGroupView = EditorGroupView_1 = class EditorGroupView extends Themable
|
|
|
950
950
|
if (!keepCopy || editor.hasCapability(8 ) ) {
|
|
951
951
|
const canMoveVeto = editor.canMove(this.id, target.id);
|
|
952
952
|
if (typeof canMoveVeto === 'string') {
|
|
953
|
-
this.dialogService.error(canMoveVeto, ( localize(
|
|
953
|
+
this.dialogService.error(canMoveVeto, ( localize(10154, "Try saving or reverting the editor first and then try again.")));
|
|
954
954
|
return false;
|
|
955
955
|
}
|
|
956
956
|
}
|
|
@@ -144,7 +144,7 @@ let SideBySideEditor = class SideBySideEditor extends AbstractEditorWithViewStat
|
|
|
144
144
|
if (this.input) {
|
|
145
145
|
return this.input.getName();
|
|
146
146
|
}
|
|
147
|
-
return ( localize(
|
|
147
|
+
return ( localize(8789, "Side by Side Editor"));
|
|
148
148
|
}
|
|
149
149
|
async setInput(input, options, context, token) {
|
|
150
150
|
const oldInput = this.input;
|
|
@@ -13,22 +13,22 @@ import { IViewDescriptorService } from '../../../common/views.service.js';
|
|
|
13
13
|
import { IViewsService } from '../../../services/views/common/viewsService.service.js';
|
|
14
14
|
import { IPaneCompositePartService } from '../../../services/panecomposite/browser/panecomposite.service.js';
|
|
15
15
|
import { INotificationService } from '../../../../platform/notification/common/notification.service.js';
|
|
16
|
-
const maximizeIcon = registerIcon('panel-maximize', Codicon.chevronUp, ( localize(
|
|
17
|
-
const restoreIcon = registerIcon('panel-restore', Codicon.chevronDown, ( localize(
|
|
18
|
-
const closeIcon = registerIcon('panel-close', Codicon.close, ( localize(
|
|
19
|
-
const panelIcon = registerIcon('panel-layout-icon', Codicon.layoutPanel, ( localize(
|
|
20
|
-
const panelOffIcon = registerIcon('panel-layout-icon-off', Codicon.layoutPanelOff, ( localize(
|
|
16
|
+
const maximizeIcon = registerIcon('panel-maximize', Codicon.chevronUp, ( localize(9409, 'Icon to maximize a panel.')));
|
|
17
|
+
const restoreIcon = registerIcon('panel-restore', Codicon.chevronDown, ( localize(9410, 'Icon to restore a panel.')));
|
|
18
|
+
const closeIcon = registerIcon('panel-close', Codicon.close, ( localize(9411, 'Icon to close a panel.')));
|
|
19
|
+
const panelIcon = registerIcon('panel-layout-icon', Codicon.layoutPanel, ( localize(9412, 'Icon to toggle the panel off when it is on.')));
|
|
20
|
+
const panelOffIcon = registerIcon('panel-layout-icon-off', Codicon.layoutPanelOff, ( localize(9413, 'Icon to toggle the panel on when it is off.')));
|
|
21
21
|
class TogglePanelAction extends Action2 {
|
|
22
22
|
static { this.ID = 'workbench.action.togglePanel'; }
|
|
23
|
-
static { this.LABEL = ( localize2(
|
|
23
|
+
static { this.LABEL = ( localize2(9414, "Toggle Panel Visibility")); }
|
|
24
24
|
constructor() {
|
|
25
25
|
super({
|
|
26
26
|
id: TogglePanelAction.ID,
|
|
27
27
|
title: TogglePanelAction.LABEL,
|
|
28
28
|
toggled: {
|
|
29
29
|
condition: PanelVisibleContext,
|
|
30
|
-
title: ( localize(
|
|
31
|
-
mnemonicTitle: ( localize(
|
|
30
|
+
title: ( localize(9415, "Panel")),
|
|
31
|
+
mnemonicTitle: ( localize(9416, "&&Panel")),
|
|
32
32
|
},
|
|
33
33
|
f1: true,
|
|
34
34
|
category: Categories.View,
|
|
@@ -54,11 +54,11 @@ class TogglePanelAction extends Action2 {
|
|
|
54
54
|
registerAction2(TogglePanelAction);
|
|
55
55
|
registerAction2(class extends Action2 {
|
|
56
56
|
static { this.ID = 'workbench.action.focusPanel'; }
|
|
57
|
-
static { this.LABEL = ( localize(
|
|
57
|
+
static { this.LABEL = ( localize(9417, "Focus into Panel")); }
|
|
58
58
|
constructor() {
|
|
59
59
|
super({
|
|
60
60
|
id: 'workbench.action.focusPanel',
|
|
61
|
-
title: ( localize2(
|
|
61
|
+
title: ( localize2(9417, "Focus into Panel")),
|
|
62
62
|
category: Categories.View,
|
|
63
63
|
f1: true,
|
|
64
64
|
});
|
|
@@ -101,20 +101,20 @@ function createAlignmentPanelActionConfig(id, title, shortLabel, alignment) {
|
|
|
101
101
|
return createPanelActionConfig(id, title, shortLabel, alignment, ( (PanelAlignmentContext.notEqualsTo(alignment))));
|
|
102
102
|
}
|
|
103
103
|
const PositionPanelActionConfigs = [
|
|
104
|
-
createPositionPanelActionConfig(PositionPanelActionId.TOP, ( localize2(
|
|
105
|
-
createPositionPanelActionConfig(PositionPanelActionId.LEFT, ( localize2(
|
|
106
|
-
createPositionPanelActionConfig(PositionPanelActionId.RIGHT, ( localize2(
|
|
107
|
-
createPositionPanelActionConfig(PositionPanelActionId.BOTTOM, ( localize2(
|
|
104
|
+
createPositionPanelActionConfig(PositionPanelActionId.TOP, ( localize2(9418, "Move Panel To Top")), ( localize(9419, "Top")), 3 ),
|
|
105
|
+
createPositionPanelActionConfig(PositionPanelActionId.LEFT, ( localize2(9420, "Move Panel Left")), ( localize(9421, "Left")), 0 ),
|
|
106
|
+
createPositionPanelActionConfig(PositionPanelActionId.RIGHT, ( localize2(9422, "Move Panel Right")), ( localize(9423, "Right")), 1 ),
|
|
107
|
+
createPositionPanelActionConfig(PositionPanelActionId.BOTTOM, ( localize2(9424, "Move Panel To Bottom")), ( localize(9425, "Bottom")), 2 ),
|
|
108
108
|
];
|
|
109
109
|
const AlignPanelActionConfigs = [
|
|
110
|
-
createAlignmentPanelActionConfig(AlignPanelActionId.LEFT, ( localize2(
|
|
111
|
-
createAlignmentPanelActionConfig(AlignPanelActionId.RIGHT, ( localize2(
|
|
112
|
-
createAlignmentPanelActionConfig(AlignPanelActionId.CENTER, ( localize2(
|
|
113
|
-
createAlignmentPanelActionConfig(AlignPanelActionId.JUSTIFY, ( localize2(
|
|
110
|
+
createAlignmentPanelActionConfig(AlignPanelActionId.LEFT, ( localize2(9426, "Set Panel Alignment to Left")), ( localize(9427, "Left")), 'left'),
|
|
111
|
+
createAlignmentPanelActionConfig(AlignPanelActionId.RIGHT, ( localize2(9428, "Set Panel Alignment to Right")), ( localize(9429, "Right")), 'right'),
|
|
112
|
+
createAlignmentPanelActionConfig(AlignPanelActionId.CENTER, ( localize2(9430, "Set Panel Alignment to Center")), ( localize(9431, "Center")), 'center'),
|
|
113
|
+
createAlignmentPanelActionConfig(AlignPanelActionId.JUSTIFY, ( localize2(9432, "Set Panel Alignment to Justify")), ( localize(9433, "Justify")), 'justify'),
|
|
114
114
|
];
|
|
115
115
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
116
116
|
submenu: MenuId.PanelPositionMenu,
|
|
117
|
-
title: ( localize(
|
|
117
|
+
title: ( localize(9434, "Panel Position")),
|
|
118
118
|
group: '3_workbench_layout_move',
|
|
119
119
|
order: 4
|
|
120
120
|
});
|
|
@@ -145,7 +145,7 @@ PositionPanelActionConfigs.forEach((positionPanelAction, index) => {
|
|
|
145
145
|
});
|
|
146
146
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
147
147
|
submenu: MenuId.PanelAlignmentMenu,
|
|
148
|
-
title: ( localize(
|
|
148
|
+
title: ( localize(9435, "Align Panel")),
|
|
149
149
|
group: '3_workbench_layout_move',
|
|
150
150
|
order: 5
|
|
151
151
|
});
|
|
@@ -205,7 +205,7 @@ class SwitchPanelViewAction extends Action2 {
|
|
|
205
205
|
}
|
|
206
206
|
registerAction2(class extends SwitchPanelViewAction {
|
|
207
207
|
constructor() {
|
|
208
|
-
super('workbench.action.previousPanelView', ( localize2(
|
|
208
|
+
super('workbench.action.previousPanelView', ( localize2(9436, "Previous Panel View")));
|
|
209
209
|
}
|
|
210
210
|
run(accessor) {
|
|
211
211
|
return super.run(accessor, -1);
|
|
@@ -213,7 +213,7 @@ registerAction2(class extends SwitchPanelViewAction {
|
|
|
213
213
|
});
|
|
214
214
|
registerAction2(class extends SwitchPanelViewAction {
|
|
215
215
|
constructor() {
|
|
216
|
-
super('workbench.action.nextPanelView', ( localize2(
|
|
216
|
+
super('workbench.action.nextPanelView', ( localize2(9437, "Next Panel View")));
|
|
217
217
|
}
|
|
218
218
|
run(accessor) {
|
|
219
219
|
return super.run(accessor, 1);
|
|
@@ -223,8 +223,8 @@ registerAction2(class extends Action2 {
|
|
|
223
223
|
constructor() {
|
|
224
224
|
super({
|
|
225
225
|
id: 'workbench.action.toggleMaximizedPanel',
|
|
226
|
-
title: ( localize2(
|
|
227
|
-
tooltip: ( localize(
|
|
226
|
+
title: ( localize2(9438, 'Toggle Maximized Panel')),
|
|
227
|
+
tooltip: ( localize(9439, "Maximize Panel Size")),
|
|
228
228
|
category: Categories.View,
|
|
229
229
|
f1: true,
|
|
230
230
|
icon: maximizeIcon,
|
|
@@ -235,7 +235,7 @@ registerAction2(class extends Action2 {
|
|
|
235
235
|
(PanelPositionContext.notEqualsTo('top'))
|
|
236
236
|
))
|
|
237
237
|
))),
|
|
238
|
-
toggled: { condition: PanelMaximizedContext, icon: restoreIcon, tooltip: ( localize(
|
|
238
|
+
toggled: { condition: PanelMaximizedContext, icon: restoreIcon, tooltip: ( localize(9440, "Restore Panel Size")) },
|
|
239
239
|
menu: [{
|
|
240
240
|
id: MenuId.PanelTitle,
|
|
241
241
|
group: 'navigation',
|
|
@@ -254,7 +254,7 @@ registerAction2(class extends Action2 {
|
|
|
254
254
|
const layoutService = accessor.get(IWorkbenchLayoutService);
|
|
255
255
|
const notificationService = accessor.get(INotificationService);
|
|
256
256
|
if (layoutService.getPanelAlignment() !== 'center' && isHorizontal(layoutService.getPanelPosition())) {
|
|
257
|
-
notificationService.warn(( localize(
|
|
257
|
+
notificationService.warn(( localize(9441, "Maximizing the panel is only supported when it is center aligned.")));
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
260
|
if (!layoutService.isVisible("workbench.parts.panel" )) {
|
|
@@ -272,7 +272,7 @@ registerAction2(class extends Action2 {
|
|
|
272
272
|
constructor() {
|
|
273
273
|
super({
|
|
274
274
|
id: 'workbench.action.closePanel',
|
|
275
|
-
title: ( localize2(
|
|
275
|
+
title: ( localize2(9442, 'Hide Panel')),
|
|
276
276
|
category: Categories.View,
|
|
277
277
|
icon: closeIcon,
|
|
278
278
|
menu: [{
|
|
@@ -293,7 +293,7 @@ registerAction2(class extends Action2 {
|
|
|
293
293
|
constructor() {
|
|
294
294
|
super({
|
|
295
295
|
id: 'workbench.action.closeAuxiliaryBar',
|
|
296
|
-
title: ( localize2(
|
|
296
|
+
title: ( localize2(9443, 'Hide Secondary Side Bar')),
|
|
297
297
|
category: Categories.View,
|
|
298
298
|
icon: closeIcon,
|
|
299
299
|
menu: [{
|
|
@@ -321,7 +321,7 @@ MenuRegistry.appendMenuItems([
|
|
|
321
321
|
group: '0_workbench_toggles',
|
|
322
322
|
command: {
|
|
323
323
|
id: TogglePanelAction.ID,
|
|
324
|
-
title: ( localize(
|
|
324
|
+
title: ( localize(9444, "Toggle Panel")),
|
|
325
325
|
icon: panelOffIcon,
|
|
326
326
|
toggled: { condition: PanelVisibleContext, icon: panelIcon }
|
|
327
327
|
},
|
|
@@ -337,7 +337,7 @@ MenuRegistry.appendMenuItems([
|
|
|
337
337
|
group: '3_workbench_layout_move',
|
|
338
338
|
command: {
|
|
339
339
|
id: TogglePanelAction.ID,
|
|
340
|
-
title: ( localize2(
|
|
340
|
+
title: ( localize2(9445, 'Hide Panel')),
|
|
341
341
|
},
|
|
342
342
|
when: ( (ContextKeyExpr.and(PanelVisibleContext, (ContextKeyExpr.equals(
|
|
343
343
|
'viewLocation',
|
|
@@ -374,7 +374,7 @@ class MovePanelToSidePanelAction extends MoveViewsBetweenPanelsAction {
|
|
|
374
374
|
constructor() {
|
|
375
375
|
super(1 , 2 , {
|
|
376
376
|
id: MovePanelToSidePanelAction.ID,
|
|
377
|
-
title: ( localize2(
|
|
377
|
+
title: ( localize2(9446, "Move Panel Views To Secondary Side Bar")),
|
|
378
378
|
category: Categories.View,
|
|
379
379
|
f1: false
|
|
380
380
|
});
|
|
@@ -385,7 +385,7 @@ class MovePanelToSecondarySideBarAction extends MoveViewsBetweenPanelsAction {
|
|
|
385
385
|
constructor() {
|
|
386
386
|
super(1 , 2 , {
|
|
387
387
|
id: MovePanelToSecondarySideBarAction.ID,
|
|
388
|
-
title: ( localize2(
|
|
388
|
+
title: ( localize2(9446, "Move Panel Views To Secondary Side Bar")),
|
|
389
389
|
category: Categories.View,
|
|
390
390
|
f1: true
|
|
391
391
|
});
|
|
@@ -398,7 +398,7 @@ class MoveSidePanelToPanelAction extends MoveViewsBetweenPanelsAction {
|
|
|
398
398
|
constructor() {
|
|
399
399
|
super(2 , 1 , {
|
|
400
400
|
id: MoveSidePanelToPanelAction.ID,
|
|
401
|
-
title: ( localize2(
|
|
401
|
+
title: ( localize2(9447, "Move Secondary Side Bar Views To Panel")),
|
|
402
402
|
category: Categories.View,
|
|
403
403
|
f1: false
|
|
404
404
|
});
|
|
@@ -409,7 +409,7 @@ class MoveSecondarySideBarToPanelAction extends MoveViewsBetweenPanelsAction {
|
|
|
409
409
|
constructor() {
|
|
410
410
|
super(2 , 1 , {
|
|
411
411
|
id: MoveSecondarySideBarToPanelAction.ID,
|
|
412
|
-
title: ( localize2(
|
|
412
|
+
title: ( localize2(9447, "Move Secondary Side Bar Views To Panel")),
|
|
413
413
|
category: Categories.View,
|
|
414
414
|
f1: true
|
|
415
415
|
});
|
|
@@ -61,8 +61,8 @@ var ViewPaneShowActions;
|
|
|
61
61
|
ViewPaneShowActions[ViewPaneShowActions["Always"] = 2] = "Always";
|
|
62
62
|
})(ViewPaneShowActions || (ViewPaneShowActions = {}))));
|
|
63
63
|
const VIEWPANE_FILTER_ACTION = ( (new Action('viewpane.action.filter')));
|
|
64
|
-
const viewPaneContainerExpandedIcon = registerIcon('view-pane-container-expanded', Codicon.chevronDown, ( localize(
|
|
65
|
-
const viewPaneContainerCollapsedIcon = registerIcon('view-pane-container-collapsed', Codicon.chevronRight, ( localize(
|
|
64
|
+
const viewPaneContainerExpandedIcon = registerIcon('view-pane-container-expanded', Codicon.chevronDown, ( localize(5373, 'Icon for an expanded view pane container.')));
|
|
65
|
+
const viewPaneContainerCollapsedIcon = registerIcon('view-pane-container-collapsed', Codicon.chevronRight, ( localize(5374, 'Icon for a collapsed view pane container.')));
|
|
66
66
|
const viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
|
|
67
67
|
let ViewWelcomeController = class ViewWelcomeController {
|
|
68
68
|
get enabled() { return this._enabled; }
|
|
@@ -332,7 +332,7 @@ let ViewPane = class ViewPane extends Pane {
|
|
|
332
332
|
this.toolbar = this.instantiationService.createInstance(WorkbenchToolBar, actions, {
|
|
333
333
|
orientation: 0 ,
|
|
334
334
|
actionViewItemProvider: (action, options) => this.getActionViewItem(action, options),
|
|
335
|
-
ariaLabel: ( localize(
|
|
335
|
+
ariaLabel: ( localize(5375, "{0} actions", this.title)),
|
|
336
336
|
getKeyBinding: action => this.keybindingService.lookupKeybinding(action.id),
|
|
337
337
|
renderDropdownAsChildElement: true,
|
|
338
338
|
actionRunner: this.getActionRunner(),
|
|
@@ -418,7 +418,7 @@ let ViewPane = class ViewPane extends Pane {
|
|
|
418
418
|
if (!viewHasAccessibilityHelpContent || accessibleViewHasShownForView) {
|
|
419
419
|
return title;
|
|
420
420
|
}
|
|
421
|
-
return ( localize(
|
|
421
|
+
return ( localize(5376, 'Use Alt+F1 for accessibility help {0}', title));
|
|
422
422
|
}
|
|
423
423
|
updateTitle(title) {
|
|
424
424
|
const calculatedTitle = this.calculateTitle(title);
|
|
@@ -14,32 +14,32 @@ import { IUserDataProfilesService } from '../../platform/userDataProfile/common/
|
|
|
14
14
|
const applicationConfigurationNodeBase = ( (Object.freeze({
|
|
15
15
|
'id': 'application',
|
|
16
16
|
'order': 100,
|
|
17
|
-
'title': ( localize(
|
|
17
|
+
'title': ( localize(4482, "Application")),
|
|
18
18
|
'type': 'object'
|
|
19
19
|
})));
|
|
20
20
|
const workbenchConfigurationNodeBase = ( (Object.freeze({
|
|
21
21
|
'id': 'workbench',
|
|
22
22
|
'order': 7,
|
|
23
|
-
'title': ( localize(
|
|
23
|
+
'title': ( localize(4483, "Workbench")),
|
|
24
24
|
'type': 'object',
|
|
25
25
|
})));
|
|
26
26
|
const securityConfigurationNodeBase = ( (Object.freeze({
|
|
27
27
|
'id': 'security',
|
|
28
28
|
'scope': 1 ,
|
|
29
|
-
'title': ( localize(
|
|
29
|
+
'title': ( localize(4484, "Security")),
|
|
30
30
|
'type': 'object',
|
|
31
31
|
'order': 7
|
|
32
32
|
})));
|
|
33
33
|
const problemsConfigurationNodeBase = ( (Object.freeze({
|
|
34
34
|
'id': 'problems',
|
|
35
|
-
'title': ( localize(
|
|
35
|
+
'title': ( localize(4485, "Problems")),
|
|
36
36
|
'type': 'object',
|
|
37
37
|
'order': 101
|
|
38
38
|
})));
|
|
39
39
|
const windowConfigurationNodeBase = ( (Object.freeze({
|
|
40
40
|
'id': 'window',
|
|
41
41
|
'order': 8,
|
|
42
|
-
'title': ( localize(
|
|
42
|
+
'title': ( localize(4486, "Window")),
|
|
43
43
|
'type': 'object',
|
|
44
44
|
})));
|
|
45
45
|
const Extensions = {
|
|
@@ -176,11 +176,11 @@ let DynamicWorkbenchSecurityConfiguration = class DynamicWorkbenchSecurityConfig
|
|
|
176
176
|
'items': {
|
|
177
177
|
'type': 'string',
|
|
178
178
|
'pattern': '^[^\\\\]+$',
|
|
179
|
-
'patternErrorMessage': ( localize(
|
|
179
|
+
'patternErrorMessage': ( localize(4487, 'UNC host names must not contain backslashes.'))
|
|
180
180
|
},
|
|
181
181
|
'default': [],
|
|
182
182
|
'markdownDescription': ( localize(
|
|
183
|
-
|
|
183
|
+
4488,
|
|
184
184
|
'A set of UNC host names (without leading or trailing backslash, for example `192.168.0.1` or `my-server`) to allow without user confirmation. If a UNC host is being accessed that is not allowed via this setting or has not been acknowledged via user confirmation, an error will occur and the operation stopped. A restart is required when changing this setting. Find out more about this setting at https://aka.ms/vscode-windows-unc.'
|
|
185
185
|
)),
|
|
186
186
|
'scope': 2
|
|
@@ -189,7 +189,7 @@ let DynamicWorkbenchSecurityConfiguration = class DynamicWorkbenchSecurityConfig
|
|
|
189
189
|
'type': 'boolean',
|
|
190
190
|
'default': true,
|
|
191
191
|
'markdownDescription': ( localize(
|
|
192
|
-
|
|
192
|
+
4489,
|
|
193
193
|
'If enabled, only allows access to UNC host names that are allowed by the `#security.allowedUNCHosts#` setting or after user confirmation. Find out more about this setting at https://aka.ms/vscode-windows-unc.'
|
|
194
194
|
)),
|
|
195
195
|
'scope': 2
|
|
@@ -228,9 +228,9 @@ let DynamicWindowConfiguration = class DynamicWindowConfiguration extends Dispos
|
|
|
228
228
|
'type': ['string', 'null'],
|
|
229
229
|
'default': null,
|
|
230
230
|
'enum': [...( (this.userDataProfilesService.profiles.map(profile => profile.name))), null],
|
|
231
|
-
'enumItemLabels': [...( (this.userDataProfilesService.profiles.map(p => ''))), ( localize(
|
|
231
|
+
'enumItemLabels': [...( (this.userDataProfilesService.profiles.map(p => ''))), ( localize(4490, "Active Window"))],
|
|
232
232
|
'description': ( localize(
|
|
233
|
-
|
|
233
|
+
4491,
|
|
234
234
|
"Specifies the profile to use when opening a new window. If a profile name is provided, the new window will use that profile. If no profile name is provided, the new window will use the profile of the active window or the Default profile if no active window exists."
|
|
235
235
|
)),
|
|
236
236
|
'scope': 1 ,
|
|
@@ -12,129 +12,129 @@ import { DEFAULT_EDITOR_ASSOCIATION } from './editor.js';
|
|
|
12
12
|
import { isLinux } from '../../base/common/platform.js';
|
|
13
13
|
var ResourceContextKey_1;
|
|
14
14
|
const WorkbenchStateContext = ( (new RawContextKey('workbenchState', undefined, { type: 'string', description: ( localize(
|
|
15
|
-
|
|
15
|
+
495,
|
|
16
16
|
"The kind of workspace opened in the window, either 'empty' (no workspace), 'folder' (single folder) or 'workspace' (multi-root workspace)"
|
|
17
17
|
)) })));
|
|
18
|
-
const WorkspaceFolderCountContext = ( (new RawContextKey('workspaceFolderCount', 0, ( localize(
|
|
18
|
+
const WorkspaceFolderCountContext = ( (new RawContextKey('workspaceFolderCount', 0, ( localize(496, "The number of root folders in the workspace")))));
|
|
19
19
|
const OpenFolderWorkspaceSupportContext = ( (new RawContextKey('openFolderWorkspaceSupport', true, true)));
|
|
20
20
|
const EnterMultiRootWorkspaceSupportContext = ( (new RawContextKey('enterMultiRootWorkspaceSupport', true, true)));
|
|
21
21
|
const EmptyWorkspaceSupportContext = ( (new RawContextKey('emptyWorkspaceSupport', true, true)));
|
|
22
|
-
const DirtyWorkingCopiesContext = ( (new RawContextKey('dirtyWorkingCopies', false, ( localize(
|
|
22
|
+
const DirtyWorkingCopiesContext = ( (new RawContextKey('dirtyWorkingCopies', false, ( localize(497, "Whether there are any working copies with unsaved changes")))));
|
|
23
23
|
const RemoteNameContext = ( (new RawContextKey('remoteName', '', ( localize(
|
|
24
|
-
|
|
24
|
+
498,
|
|
25
25
|
"The name of the remote the window is connected to or an empty string if not connected to any remote"
|
|
26
26
|
)))));
|
|
27
27
|
const VirtualWorkspaceContext = ( (new RawContextKey('virtualWorkspace', '', ( localize(
|
|
28
|
-
|
|
28
|
+
499,
|
|
29
29
|
"The scheme of the current workspace is from a virtual file system or an empty string."
|
|
30
30
|
)))));
|
|
31
31
|
const TemporaryWorkspaceContext = ( (new RawContextKey('temporaryWorkspace', false, ( localize(
|
|
32
|
-
|
|
32
|
+
500,
|
|
33
33
|
"The scheme of the current workspace is from a temporary file system."
|
|
34
34
|
)))));
|
|
35
|
-
const IsMainWindowFullscreenContext = ( (new RawContextKey('isFullscreen', false, ( localize(
|
|
36
|
-
const IsAuxiliaryWindowFocusedContext = ( (new RawContextKey('isAuxiliaryWindowFocusedContext', false, ( localize(
|
|
35
|
+
const IsMainWindowFullscreenContext = ( (new RawContextKey('isFullscreen', false, ( localize(501, "Whether the main window is in fullscreen mode")))));
|
|
36
|
+
const IsAuxiliaryWindowFocusedContext = ( (new RawContextKey('isAuxiliaryWindowFocusedContext', false, ( localize(502, "Whether an auxiliary window is focused")))));
|
|
37
37
|
const HasWebFileSystemAccess = ( (new RawContextKey('hasWebFileSystemAccess', false, true)));
|
|
38
38
|
const EmbedderIdentifierContext = ( (new RawContextKey('embedderIdentifier', undefined, ( localize(
|
|
39
|
-
|
|
39
|
+
503,
|
|
40
40
|
'The identifier of the embedder according to the product service, if one is defined'
|
|
41
41
|
)))));
|
|
42
|
-
const ActiveEditorDirtyContext = ( (new RawContextKey('activeEditorIsDirty', false, ( localize(
|
|
43
|
-
const ActiveEditorPinnedContext = ( (new RawContextKey('activeEditorIsNotPreview', false, ( localize(
|
|
44
|
-
const ActiveEditorFirstInGroupContext = ( (new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(
|
|
45
|
-
const ActiveEditorLastInGroupContext = ( (new RawContextKey('activeEditorIsLastInGroup', false, ( localize(
|
|
46
|
-
const ActiveEditorStickyContext = ( (new RawContextKey('activeEditorIsPinned', false, ( localize(
|
|
47
|
-
const ActiveEditorReadonlyContext = ( (new RawContextKey('activeEditorIsReadonly', false, ( localize(
|
|
48
|
-
const ActiveCompareEditorCanSwapContext = ( (new RawContextKey('activeCompareEditorCanSwap', false, ( localize(
|
|
42
|
+
const ActiveEditorDirtyContext = ( (new RawContextKey('activeEditorIsDirty', false, ( localize(504, "Whether the active editor has unsaved changes")))));
|
|
43
|
+
const ActiveEditorPinnedContext = ( (new RawContextKey('activeEditorIsNotPreview', false, ( localize(505, "Whether the active editor is not in preview mode")))));
|
|
44
|
+
const ActiveEditorFirstInGroupContext = ( (new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(506, "Whether the active editor is the first one in its group")))));
|
|
45
|
+
const ActiveEditorLastInGroupContext = ( (new RawContextKey('activeEditorIsLastInGroup', false, ( localize(507, "Whether the active editor is the last one in its group")))));
|
|
46
|
+
const ActiveEditorStickyContext = ( (new RawContextKey('activeEditorIsPinned', false, ( localize(508, "Whether the active editor is pinned")))));
|
|
47
|
+
const ActiveEditorReadonlyContext = ( (new RawContextKey('activeEditorIsReadonly', false, ( localize(509, "Whether the active editor is read-only")))));
|
|
48
|
+
const ActiveCompareEditorCanSwapContext = ( (new RawContextKey('activeCompareEditorCanSwap', false, ( localize(510, "Whether the active compare editor can swap sides")))));
|
|
49
49
|
const ActiveEditorCanToggleReadonlyContext = ( (new RawContextKey('activeEditorCanToggleReadonly', true, ( localize(
|
|
50
|
-
|
|
50
|
+
511,
|
|
51
51
|
"Whether the active editor can toggle between being read-only or writeable"
|
|
52
52
|
)))));
|
|
53
|
-
const ActiveEditorCanRevertContext = ( (new RawContextKey('activeEditorCanRevert', false, ( localize(
|
|
53
|
+
const ActiveEditorCanRevertContext = ( (new RawContextKey('activeEditorCanRevert', false, ( localize(512, "Whether the active editor can revert")))));
|
|
54
54
|
const ActiveEditorCanSplitInGroupContext = ( (new RawContextKey('activeEditorCanSplitInGroup', true)));
|
|
55
|
-
const ActiveEditorContext = ( (new RawContextKey('activeEditor', null, { type: 'string', description: ( localize(
|
|
55
|
+
const ActiveEditorContext = ( (new RawContextKey('activeEditor', null, { type: 'string', description: ( localize(513, "The identifier of the active editor")) })));
|
|
56
56
|
const ActiveEditorAvailableEditorIdsContext = ( (new RawContextKey('activeEditorAvailableEditorIds', '', ( localize(
|
|
57
|
-
|
|
57
|
+
514,
|
|
58
58
|
"The available editor identifiers that are usable for the active editor"
|
|
59
59
|
)))));
|
|
60
|
-
const TextCompareEditorVisibleContext = ( (new RawContextKey('textCompareEditorVisible', false, ( localize(
|
|
61
|
-
const TextCompareEditorActiveContext = ( (new RawContextKey('textCompareEditorActive', false, ( localize(
|
|
62
|
-
const SideBySideEditorActiveContext = ( (new RawContextKey('sideBySideEditorActive', false, ( localize(
|
|
63
|
-
const EditorGroupEditorsCountContext = ( (new RawContextKey('groupEditorsCount', 0, ( localize(
|
|
64
|
-
const ActiveEditorGroupEmptyContext = ( (new RawContextKey('activeEditorGroupEmpty', false, ( localize(
|
|
65
|
-
const ActiveEditorGroupIndexContext = ( (new RawContextKey('activeEditorGroupIndex', 0, ( localize(
|
|
66
|
-
const ActiveEditorGroupLastContext = ( (new RawContextKey('activeEditorGroupLast', false, ( localize(
|
|
67
|
-
const ActiveEditorGroupLockedContext = ( (new RawContextKey('activeEditorGroupLocked', false, ( localize(
|
|
68
|
-
const MultipleEditorGroupsContext = ( (new RawContextKey('multipleEditorGroups', false, ( localize(
|
|
69
|
-
const MultipleEditorsSelectedInGroupContext = ( (new RawContextKey('multipleEditorsSelectedInGroup', false, ( localize(
|
|
70
|
-
const TwoEditorsSelectedInGroupContext = ( (new RawContextKey('twoEditorsSelectedInGroup', false, ( localize(
|
|
60
|
+
const TextCompareEditorVisibleContext = ( (new RawContextKey('textCompareEditorVisible', false, ( localize(515, "Whether a text compare editor is visible")))));
|
|
61
|
+
const TextCompareEditorActiveContext = ( (new RawContextKey('textCompareEditorActive', false, ( localize(516, "Whether a text compare editor is active")))));
|
|
62
|
+
const SideBySideEditorActiveContext = ( (new RawContextKey('sideBySideEditorActive', false, ( localize(517, "Whether a side by side editor is active")))));
|
|
63
|
+
const EditorGroupEditorsCountContext = ( (new RawContextKey('groupEditorsCount', 0, ( localize(518, "The number of opened editor groups")))));
|
|
64
|
+
const ActiveEditorGroupEmptyContext = ( (new RawContextKey('activeEditorGroupEmpty', false, ( localize(519, "Whether the active editor group is empty")))));
|
|
65
|
+
const ActiveEditorGroupIndexContext = ( (new RawContextKey('activeEditorGroupIndex', 0, ( localize(520, "The index of the active editor group")))));
|
|
66
|
+
const ActiveEditorGroupLastContext = ( (new RawContextKey('activeEditorGroupLast', false, ( localize(521, "Whether the active editor group is the last group")))));
|
|
67
|
+
const ActiveEditorGroupLockedContext = ( (new RawContextKey('activeEditorGroupLocked', false, ( localize(522, "Whether the active editor group is locked")))));
|
|
68
|
+
const MultipleEditorGroupsContext = ( (new RawContextKey('multipleEditorGroups', false, ( localize(523, "Whether there are multiple editor groups opened")))));
|
|
69
|
+
const MultipleEditorsSelectedInGroupContext = ( (new RawContextKey('multipleEditorsSelectedInGroup', false, ( localize(524, "Whether multiple editors have been selected in an editor group")))));
|
|
70
|
+
const TwoEditorsSelectedInGroupContext = ( (new RawContextKey('twoEditorsSelectedInGroup', false, ( localize(525, "Whether exactly two editors have been selected in an editor group")))));
|
|
71
71
|
const SelectedEditorsInGroupFileOrUntitledResourceContextKey = ( (new RawContextKey(
|
|
72
72
|
'SelectedEditorsInGroupFileOrUntitledResourceContextKey',
|
|
73
73
|
true,
|
|
74
74
|
( localize(
|
|
75
|
-
|
|
75
|
+
526,
|
|
76
76
|
"Whether all selected editors in a group have a file or untitled resource associated"
|
|
77
77
|
))
|
|
78
78
|
)));
|
|
79
|
-
const EditorPartMultipleEditorGroupsContext = ( (new RawContextKey('editorPartMultipleEditorGroups', false, ( localize(
|
|
80
|
-
const EditorPartMaximizedEditorGroupContext = ( (new RawContextKey('editorPartMaximizedEditorGroup', false, ( localize(
|
|
81
|
-
const IsAuxiliaryEditorPartContext = ( (new RawContextKey('isAuxiliaryEditorPart', false, ( localize(
|
|
82
|
-
const EditorsVisibleContext = ( (new RawContextKey('editorIsOpen', false, ( localize(
|
|
83
|
-
const InEditorZenModeContext = ( (new RawContextKey('inZenMode', false, ( localize(
|
|
84
|
-
const IsMainEditorCenteredLayoutContext = ( (new RawContextKey('isCenteredLayout', false, ( localize(
|
|
85
|
-
const SplitEditorsVertically = ( (new RawContextKey('splitEditorsVertically', false, ( localize(
|
|
86
|
-
const MainEditorAreaVisibleContext = ( (new RawContextKey('mainEditorAreaVisible', true, ( localize(
|
|
87
|
-
const EditorTabsVisibleContext = ( (new RawContextKey('editorTabsVisible', true, ( localize(
|
|
88
|
-
const SideBarVisibleContext = ( (new RawContextKey('sideBarVisible', false, ( localize(
|
|
89
|
-
const SidebarFocusContext = ( (new RawContextKey('sideBarFocus', false, ( localize(
|
|
90
|
-
const ActiveViewletContext = ( (new RawContextKey('activeViewlet', '', ( localize(
|
|
91
|
-
const StatusBarFocused = ( (new RawContextKey('statusBarFocused', false, ( localize(
|
|
92
|
-
const TitleBarStyleContext = ( (new RawContextKey('titleBarStyle', isLinux ? 'native' : 'custom', ( localize(
|
|
93
|
-
const TitleBarVisibleContext = ( (new RawContextKey('titleBarVisible', false, ( localize(
|
|
94
|
-
const BannerFocused = ( (new RawContextKey('bannerFocused', false, ( localize(
|
|
95
|
-
const NotificationFocusedContext = ( (new RawContextKey('notificationFocus', true, ( localize(
|
|
96
|
-
const NotificationsCenterVisibleContext = ( (new RawContextKey('notificationCenterVisible', false, ( localize(
|
|
97
|
-
const NotificationsToastsVisibleContext = ( (new RawContextKey('notificationToastsVisible', false, ( localize(
|
|
98
|
-
const ActiveAuxiliaryContext = ( (new RawContextKey('activeAuxiliary', '', ( localize(
|
|
99
|
-
const AuxiliaryBarFocusContext = ( (new RawContextKey('auxiliaryBarFocus', false, ( localize(
|
|
100
|
-
const AuxiliaryBarVisibleContext = ( (new RawContextKey('auxiliaryBarVisible', false, ( localize(
|
|
101
|
-
const ActivePanelContext = ( (new RawContextKey('activePanel', '', ( localize(
|
|
102
|
-
const PanelFocusContext = ( (new RawContextKey('panelFocus', false, ( localize(
|
|
103
|
-
const PanelPositionContext = ( (new RawContextKey('panelPosition', 'bottom', ( localize(
|
|
79
|
+
const EditorPartMultipleEditorGroupsContext = ( (new RawContextKey('editorPartMultipleEditorGroups', false, ( localize(527, "Whether there are multiple editor groups opened in an editor part")))));
|
|
80
|
+
const EditorPartMaximizedEditorGroupContext = ( (new RawContextKey('editorPartMaximizedEditorGroup', false, ( localize(528, "Editor Part has a maximized group")))));
|
|
81
|
+
const IsAuxiliaryEditorPartContext = ( (new RawContextKey('isAuxiliaryEditorPart', false, ( localize(529, "Editor Part is in an auxiliary window")))));
|
|
82
|
+
const EditorsVisibleContext = ( (new RawContextKey('editorIsOpen', false, ( localize(530, "Whether an editor is open")))));
|
|
83
|
+
const InEditorZenModeContext = ( (new RawContextKey('inZenMode', false, ( localize(531, "Whether Zen mode is enabled")))));
|
|
84
|
+
const IsMainEditorCenteredLayoutContext = ( (new RawContextKey('isCenteredLayout', false, ( localize(532, "Whether centered layout is enabled for the main editor")))));
|
|
85
|
+
const SplitEditorsVertically = ( (new RawContextKey('splitEditorsVertically', false, ( localize(533, "Whether editors split vertically")))));
|
|
86
|
+
const MainEditorAreaVisibleContext = ( (new RawContextKey('mainEditorAreaVisible', true, ( localize(534, "Whether the editor area in the main window is visible")))));
|
|
87
|
+
const EditorTabsVisibleContext = ( (new RawContextKey('editorTabsVisible', true, ( localize(535, "Whether editor tabs are visible")))));
|
|
88
|
+
const SideBarVisibleContext = ( (new RawContextKey('sideBarVisible', false, ( localize(536, "Whether the sidebar is visible")))));
|
|
89
|
+
const SidebarFocusContext = ( (new RawContextKey('sideBarFocus', false, ( localize(537, "Whether the sidebar has keyboard focus")))));
|
|
90
|
+
const ActiveViewletContext = ( (new RawContextKey('activeViewlet', '', ( localize(538, "The identifier of the active viewlet")))));
|
|
91
|
+
const StatusBarFocused = ( (new RawContextKey('statusBarFocused', false, ( localize(539, "Whether the status bar has keyboard focus")))));
|
|
92
|
+
const TitleBarStyleContext = ( (new RawContextKey('titleBarStyle', isLinux ? 'native' : 'custom', ( localize(540, "Style of the window title bar")))));
|
|
93
|
+
const TitleBarVisibleContext = ( (new RawContextKey('titleBarVisible', false, ( localize(541, "Whether the title bar is visible")))));
|
|
94
|
+
const BannerFocused = ( (new RawContextKey('bannerFocused', false, ( localize(542, "Whether the banner has keyboard focus")))));
|
|
95
|
+
const NotificationFocusedContext = ( (new RawContextKey('notificationFocus', true, ( localize(543, "Whether a notification has keyboard focus")))));
|
|
96
|
+
const NotificationsCenterVisibleContext = ( (new RawContextKey('notificationCenterVisible', false, ( localize(544, "Whether the notifications center is visible")))));
|
|
97
|
+
const NotificationsToastsVisibleContext = ( (new RawContextKey('notificationToastsVisible', false, ( localize(545, "Whether a notification toast is visible")))));
|
|
98
|
+
const ActiveAuxiliaryContext = ( (new RawContextKey('activeAuxiliary', '', ( localize(546, "The identifier of the active auxiliary panel")))));
|
|
99
|
+
const AuxiliaryBarFocusContext = ( (new RawContextKey('auxiliaryBarFocus', false, ( localize(547, "Whether the auxiliary bar has keyboard focus")))));
|
|
100
|
+
const AuxiliaryBarVisibleContext = ( (new RawContextKey('auxiliaryBarVisible', false, ( localize(548, "Whether the auxiliary bar is visible")))));
|
|
101
|
+
const ActivePanelContext = ( (new RawContextKey('activePanel', '', ( localize(549, "The identifier of the active panel")))));
|
|
102
|
+
const PanelFocusContext = ( (new RawContextKey('panelFocus', false, ( localize(550, "Whether the panel has keyboard focus")))));
|
|
103
|
+
const PanelPositionContext = ( (new RawContextKey('panelPosition', 'bottom', ( localize(551, "The position of the panel, always 'bottom'")))));
|
|
104
104
|
const PanelAlignmentContext = ( (new RawContextKey('panelAlignment', 'center', ( localize(
|
|
105
|
-
|
|
105
|
+
552,
|
|
106
106
|
"The alignment of the panel, either 'center', 'left', 'right' or 'justify'"
|
|
107
107
|
)))));
|
|
108
|
-
const PanelVisibleContext = ( (new RawContextKey('panelVisible', false, ( localize(
|
|
109
|
-
const PanelMaximizedContext = ( (new RawContextKey('panelMaximized', false, ( localize(
|
|
110
|
-
const FocusedViewContext = ( (new RawContextKey('focusedView', '', ( localize(
|
|
108
|
+
const PanelVisibleContext = ( (new RawContextKey('panelVisible', false, ( localize(553, "Whether the panel is visible")))));
|
|
109
|
+
const PanelMaximizedContext = ( (new RawContextKey('panelMaximized', false, ( localize(554, "Whether the panel is maximized")))));
|
|
110
|
+
const FocusedViewContext = ( (new RawContextKey('focusedView', '', ( localize(555, "The identifier of the view that has keyboard focus")))));
|
|
111
111
|
function getVisbileViewContextKey(viewId) { return `view.${viewId}.visible`; }
|
|
112
112
|
let ResourceContextKey = class ResourceContextKey {
|
|
113
113
|
static { ResourceContextKey_1 = this; }
|
|
114
|
-
static { this.Scheme = ( (new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localize(
|
|
114
|
+
static { this.Scheme = ( (new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localize(556, "The scheme of the resource")) }))); }
|
|
115
115
|
static { this.Filename = ( (new RawContextKey(
|
|
116
116
|
'resourceFilename',
|
|
117
117
|
undefined,
|
|
118
|
-
{ type: 'string', description: ( localize(
|
|
118
|
+
{ type: 'string', description: ( localize(557, "The file name of the resource")) }
|
|
119
119
|
))); }
|
|
120
120
|
static { this.Dirname = ( (new RawContextKey(
|
|
121
121
|
'resourceDirname',
|
|
122
122
|
undefined,
|
|
123
|
-
{ type: 'string', description: ( localize(
|
|
123
|
+
{ type: 'string', description: ( localize(558, "The folder name the resource is contained in")) }
|
|
124
124
|
))); }
|
|
125
|
-
static { this.Path = ( (new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localize(
|
|
126
|
-
static { this.LangId = ( (new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localize(
|
|
127
|
-
static { this.Resource = ( (new RawContextKey('resource', undefined, { type: 'URI', description: ( localize(
|
|
125
|
+
static { this.Path = ( (new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localize(559, "The full path of the resource")) }))); }
|
|
126
|
+
static { this.LangId = ( (new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localize(560, "The language identifier of the resource")) }))); }
|
|
127
|
+
static { this.Resource = ( (new RawContextKey('resource', undefined, { type: 'URI', description: ( localize(561, "The full value of the resource including scheme and path")) }))); }
|
|
128
128
|
static { this.Extension = ( (new RawContextKey(
|
|
129
129
|
'resourceExtname',
|
|
130
130
|
undefined,
|
|
131
|
-
{ type: 'string', description: ( localize(
|
|
131
|
+
{ type: 'string', description: ( localize(562, "The extension name of the resource")) }
|
|
132
132
|
))); }
|
|
133
|
-
static { this.HasResource = ( (new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localize(
|
|
133
|
+
static { this.HasResource = ( (new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localize(563, "Whether a resource is present or not")) }))); }
|
|
134
134
|
static { this.IsFileSystemResource = ( (new RawContextKey(
|
|
135
135
|
'isFileSystemResource',
|
|
136
136
|
undefined,
|
|
137
|
-
{ type: 'boolean', description: ( localize(
|
|
137
|
+
{ type: 'boolean', description: ( localize(564, "Whether the resource is backed by a file system provider")) }
|
|
138
138
|
))); }
|
|
139
139
|
constructor(_contextKeyService, _fileService, _languageService, _modelService) {
|
|
140
140
|
this._contextKeyService = _contextKeyService;
|
|
@@ -42,7 +42,7 @@ let DiffEditorInput = class DiffEditorInput extends SideBySideEditorInput {
|
|
|
42
42
|
else {
|
|
43
43
|
const originalName = this.original.getName();
|
|
44
44
|
const modifiedName = this.modified.getName();
|
|
45
|
-
name = ( localize(
|
|
45
|
+
name = ( localize(7326, "{0} ↔ {1}", originalName, modifiedName));
|
|
46
46
|
forceDescription = originalName === modifiedName;
|
|
47
47
|
}
|
|
48
48
|
let shortDescription;
|
|
@@ -60,7 +60,7 @@ let SideBySideEditorInput = class SideBySideEditorInput extends EditorInput {
|
|
|
60
60
|
if (this.hasIdenticalSides) {
|
|
61
61
|
return this.primary.getName();
|
|
62
62
|
}
|
|
63
|
-
return ( localize(
|
|
63
|
+
return ( localize(6209, "{0} - {1}", this.secondary.getName(), this.primary.getName()));
|
|
64
64
|
}
|
|
65
65
|
getPreferredName() {
|
|
66
66
|
return this.preferredName;
|
|
@@ -91,7 +91,7 @@ let BaseTextEditorModel = class BaseTextEditorModel extends EditorModel {
|
|
|
91
91
|
this.setLanguageIdInternal(lang, LanguageDetectionLanguageEventSource);
|
|
92
92
|
const languageName = this.languageService.getLanguageName(lang);
|
|
93
93
|
this.accessibilityService.alert(( localize(
|
|
94
|
-
|
|
94
|
+
9910,
|
|
95
95
|
"Language {0} was automatically detected and set as the language mode.",
|
|
96
96
|
languageName ?? lang
|
|
97
97
|
)));
|