@codingame/monaco-vscode-api 10.1.3 → 10.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -3
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
- package/vscode/src/vs/editor/common/config/editorOptions.js +368 -368
- 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/common/standaloneStrings.js +32 -32
- 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/codeActionCommands.js +28 -28
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- 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/copyPasteController.js +7 -7
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
- 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/gotoError/browser/gotoErrorWidget.js +14 -14
- 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/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- 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/hover/browser/markerHoverParticipant.js +5 -5
- 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/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +14 -14
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- 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/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- 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/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- 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/rename/browser/renameWidget.js +6 -6
- 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/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- 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/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +3 -3
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- 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/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +2 -2
- 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/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +9 -9
- 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/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/browser/window.js +16 -16
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +10 -10
- 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/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/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +21 -21
- 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/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +3 -3
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/activity/common/activity.js +4 -4
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- 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/extensions/common/extensionsRegistry.js +82 -82
- 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/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- 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/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.4",
|
|
4
4
|
"description": "VSCode public API plugged on the monaco editor",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": {
|
|
@@ -100,12 +100,12 @@
|
|
|
100
100
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
101
101
|
"jschardet": "3.1.3",
|
|
102
102
|
"marked": "~14.0.0",
|
|
103
|
-
"@codingame/monaco-vscode-extensions-service-override": "10.1.
|
|
104
|
-
"@codingame/monaco-vscode-files-service-override": "10.1.
|
|
105
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "10.1.
|
|
106
|
-
"@codingame/monaco-vscode-environment-service-override": "10.1.
|
|
107
|
-
"@codingame/monaco-vscode-layout-service-override": "10.1.
|
|
108
|
-
"@codingame/monaco-vscode-host-service-override": "10.1.
|
|
109
|
-
"@codingame/monaco-vscode-base-service-override": "10.1.
|
|
103
|
+
"@codingame/monaco-vscode-extensions-service-override": "10.1.4",
|
|
104
|
+
"@codingame/monaco-vscode-files-service-override": "10.1.4",
|
|
105
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "10.1.4",
|
|
106
|
+
"@codingame/monaco-vscode-environment-service-override": "10.1.4",
|
|
107
|
+
"@codingame/monaco-vscode-layout-service-override": "10.1.4",
|
|
108
|
+
"@codingame/monaco-vscode-host-service-override": "10.1.4",
|
|
109
|
+
"@codingame/monaco-vscode-base-service-override": "10.1.4"
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -258,7 +258,7 @@ class ActionViewItem extends BaseActionViewItem {
|
|
|
258
258
|
else if (!this.options.label && this.action.label && this.options.icon) {
|
|
259
259
|
title = this.action.label;
|
|
260
260
|
if (this.options.keybinding) {
|
|
261
|
-
title = ( localize(
|
|
261
|
+
title = ( localize(5011, "{0} ({1})", title, this.options.keybinding));
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
return title ?? undefined;
|
|
@@ -128,7 +128,7 @@ class ActionWithDropdownActionViewItem extends ActionViewItem {
|
|
|
128
128
|
const separator = h('div.action-dropdown-item-separator', [h('div', {})]).root;
|
|
129
129
|
separator.classList.toggle('prominent', menuActionClassNames.includes('prominent'));
|
|
130
130
|
append(this.element, separator);
|
|
131
|
-
this.dropdownMenuActionViewItem = this._register(( (new DropdownMenuActionViewItem(this._register(( (new Action('dropdownAction', ( localize(
|
|
131
|
+
this.dropdownMenuActionViewItem = this._register(( (new DropdownMenuActionViewItem(this._register(( (new Action('dropdownAction', ( localize(6953, "More Actions...")))))), menuActionsProvider, this.contextMenuProvider, { classNames: ['dropdown', ...ThemeIcon.asClassNameArray(Codicon.dropDownButton), ...menuActionClassNames], hoverDelegate: this.options.hoverDelegate }))));
|
|
132
132
|
this.dropdownMenuActionViewItem.render(this.element);
|
|
133
133
|
this._register(addDisposableListener(this.element, EventType.KEY_DOWN, e => {
|
|
134
134
|
if (menuActionsProvider.getActions().length === 0) {
|
|
@@ -7,7 +7,7 @@ import './findInput.css.js';
|
|
|
7
7
|
import { localize } from '../../../../nls.js';
|
|
8
8
|
import { MutableDisposable, DisposableStore } from '../../../common/lifecycle.js';
|
|
9
9
|
import { createInstantHoverDelegate } from '../hover/hoverDelegateFactory.js';
|
|
10
|
-
const NLS_DEFAULT_LABEL = ( localize(
|
|
10
|
+
const NLS_DEFAULT_LABEL = ( localize(10072, "input"));
|
|
11
11
|
class FindInput extends Widget {
|
|
12
12
|
static { this.OPTION_CHANGE = 'optionChange'; }
|
|
13
13
|
constructor(parent, contextViewProvider, options) {
|
|
@@ -2,9 +2,9 @@ import { getDefaultHoverDelegate } from '../hover/hoverDelegateFactory.js';
|
|
|
2
2
|
import { Toggle } from '../toggle/toggle.js';
|
|
3
3
|
import { Codicon } from '../../../common/codicons.js';
|
|
4
4
|
import { localize } from '../../../../nls.js';
|
|
5
|
-
const NLS_CASE_SENSITIVE_TOGGLE_LABEL = ( localize(
|
|
6
|
-
const NLS_WHOLE_WORD_TOGGLE_LABEL = ( localize(
|
|
7
|
-
const NLS_REGEX_TOGGLE_LABEL = ( localize(
|
|
5
|
+
const NLS_CASE_SENSITIVE_TOGGLE_LABEL = ( localize(9976, "Match Case"));
|
|
6
|
+
const NLS_WHOLE_WORD_TOGGLE_LABEL = ( localize(9977, "Match Whole Word"));
|
|
7
|
+
const NLS_REGEX_TOGGLE_LABEL = ( localize(9978, "Use Regular Expression"));
|
|
8
8
|
class CaseSensitiveToggle extends Toggle {
|
|
9
9
|
constructor(opts) {
|
|
10
10
|
super({
|
|
@@ -62,8 +62,8 @@ class HoverAction extends Disposable {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
function getHoverAccessibleViewHint(shouldHaveHint, keybinding) {
|
|
65
|
-
return shouldHaveHint && keybinding ? ( localize(
|
|
66
|
-
|
|
65
|
+
return shouldHaveHint && keybinding ? ( localize(9995, "Inspect this in the accessible view with {0}.", keybinding)) : shouldHaveHint ? ( localize(
|
|
66
|
+
9996,
|
|
67
67
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
|
|
68
68
|
)) : '';
|
|
69
69
|
}
|
|
@@ -339,13 +339,13 @@ class InputBox extends Widget {
|
|
|
339
339
|
});
|
|
340
340
|
let alertText;
|
|
341
341
|
if (this.message.type === 3 ) {
|
|
342
|
-
alertText = ( localize(
|
|
342
|
+
alertText = ( localize(10073, "Error: {0}", this.message.content));
|
|
343
343
|
}
|
|
344
344
|
else if (this.message.type === 2 ) {
|
|
345
|
-
alertText = ( localize(
|
|
345
|
+
alertText = ( localize(10074, "Warning: {0}", this.message.content));
|
|
346
346
|
}
|
|
347
347
|
else {
|
|
348
|
-
alertText = ( localize(
|
|
348
|
+
alertText = ( localize(10075, "Info: {0}", this.message.content));
|
|
349
349
|
}
|
|
350
350
|
alert(alertText);
|
|
351
351
|
this.state = 'open';
|
|
@@ -428,8 +428,8 @@ class InputBox extends Widget {
|
|
|
428
428
|
}
|
|
429
429
|
class HistoryInputBox extends InputBox {
|
|
430
430
|
constructor(container, contextViewProvider, options) {
|
|
431
|
-
const NLS_PLACEHOLDER_HISTORY_HINT_SUFFIX_NO_PARENS = ( localize(
|
|
432
|
-
const NLS_PLACEHOLDER_HISTORY_HINT_SUFFIX_IN_PARENS = ( localize(
|
|
431
|
+
const NLS_PLACEHOLDER_HISTORY_HINT_SUFFIX_NO_PARENS = ( localize(10076, ' or {0} for history', `\u21C5`));
|
|
432
|
+
const NLS_PLACEHOLDER_HISTORY_HINT_SUFFIX_IN_PARENS = ( localize(10077, ' ({0} for history)', `\u21C5`));
|
|
433
433
|
super(container, contextViewProvider, options);
|
|
434
434
|
this._onDidFocus = this._register(( (new Emitter())));
|
|
435
435
|
this.onDidFocus = this._onDidFocus.event;
|
|
@@ -521,7 +521,7 @@ class HistoryInputBox extends InputBox {
|
|
|
521
521
|
next = next === this.value ? this.getNextValue() : next;
|
|
522
522
|
}
|
|
523
523
|
this.value = next ?? '';
|
|
524
|
-
status(this.value ? this.value : ( localize(
|
|
524
|
+
status(this.value ? this.value : ( localize(10078, "Cleared Input")));
|
|
525
525
|
}
|
|
526
526
|
showPreviousValue() {
|
|
527
527
|
if (!( (this.history.has(this.value)))) {
|
|
@@ -627,7 +627,7 @@ class FindWidget extends Disposable {
|
|
|
627
627
|
toggle => ( (Event.map(toggle.onChange, () => ({ id: toggle.id, isChecked: toggle.checked }))))
|
|
628
628
|
))));
|
|
629
629
|
this.findInput = this._register(( (new FindInput(this.elements.findInput, contextViewProvider, {
|
|
630
|
-
label: ( localize(
|
|
630
|
+
label: ( localize(5233, "Type to search")),
|
|
631
631
|
placeholder,
|
|
632
632
|
additionalToggles: this.toggles,
|
|
633
633
|
showCommonFindToggles: false,
|
|
@@ -665,7 +665,7 @@ class FindWidget extends Disposable {
|
|
|
665
665
|
return;
|
|
666
666
|
}
|
|
667
667
|
}));
|
|
668
|
-
const closeAction = this._register(( (new Action('close', ( localize(
|
|
668
|
+
const closeAction = this._register(( (new Action('close', ( localize(5234, "Close")), 'codicon codicon-close', true, () => this.dispose()))));
|
|
669
669
|
this.actionbar.push(closeAction, { icon: true, label: false });
|
|
670
670
|
const onGrabMouseDown = this._register(( (new DomEmitter(this.elements.grab, 'mousedown'))));
|
|
671
671
|
this._register(onGrabMouseDown.event(e => {
|
|
@@ -799,7 +799,7 @@ class AbstractFindController {
|
|
|
799
799
|
this.enabledDisposables = ( (new DisposableStore()));
|
|
800
800
|
this.disposables = ( (new DisposableStore()));
|
|
801
801
|
this.toggles = ( (new FindToggles(options.toggles ?? [])));
|
|
802
|
-
this._placeholder = options.placeholder ?? ( localize(
|
|
802
|
+
this._placeholder = options.placeholder ?? ( localize(5233, "Type to search"));
|
|
803
803
|
}
|
|
804
804
|
isOpened() {
|
|
805
805
|
return !!this.widget;
|
|
@@ -856,7 +856,7 @@ class AbstractFindController {
|
|
|
856
856
|
renderMessage(showNotFound) {
|
|
857
857
|
if (showNotFound) {
|
|
858
858
|
if (this.tree.options.showNotFoundMessage ?? true) {
|
|
859
|
-
this.widget?.showMessage({ type: 2 , content: ( localize(
|
|
859
|
+
this.widget?.showMessage({ type: 2 , content: ( localize(5235, "No results found.")) });
|
|
860
860
|
}
|
|
861
861
|
else {
|
|
862
862
|
this.widget?.showMessage({ type: 2 });
|
|
@@ -868,10 +868,10 @@ class AbstractFindController {
|
|
|
868
868
|
}
|
|
869
869
|
alertResults(results) {
|
|
870
870
|
if (!results) {
|
|
871
|
-
alert(( localize(
|
|
871
|
+
alert(( localize(5236, "No results")));
|
|
872
872
|
}
|
|
873
873
|
else {
|
|
874
|
-
alert(( localize(
|
|
874
|
+
alert(( localize(5237, "{0} results", results)));
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
layout(width) {
|
|
@@ -893,7 +893,7 @@ class FindController extends AbstractFindController {
|
|
|
893
893
|
}
|
|
894
894
|
const isFilterMode = mode === TreeFindMode.Filter;
|
|
895
895
|
this.updateToggleState(DefaultTreeToggles.Mode, isFilterMode);
|
|
896
|
-
this.placeholder = isFilterMode ? ( localize(
|
|
896
|
+
this.placeholder = isFilterMode ? ( localize(5238, "Type to filter")) : ( localize(5233, "Type to search"));
|
|
897
897
|
this.tree.refilter();
|
|
898
898
|
this.render();
|
|
899
899
|
this._onDidChangeMode.fire(mode);
|
|
@@ -914,12 +914,12 @@ class FindController extends AbstractFindController {
|
|
|
914
914
|
const toggleContributions = [{
|
|
915
915
|
id: DefaultTreeToggles.Mode,
|
|
916
916
|
icon: Codicon.listFilter,
|
|
917
|
-
title: ( localize(
|
|
917
|
+
title: ( localize(5239, "Filter")),
|
|
918
918
|
isChecked: defaultFindMode === TreeFindMode.Filter,
|
|
919
919
|
}, {
|
|
920
920
|
id: DefaultTreeToggles.MatchType,
|
|
921
921
|
icon: Codicon.searchFuzzy,
|
|
922
|
-
title: ( localize(
|
|
922
|
+
title: ( localize(5240, "Fuzzy Match")),
|
|
923
923
|
isChecked: defaultFindMatchType === TreeFindMatchType.Fuzzy,
|
|
924
924
|
}];
|
|
925
925
|
super(tree, filter, contextViewProvider, { ...options, toggles: toggleContributions });
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { localize } from '../../nls.js';
|
|
2
2
|
function getParseErrorMessage(errorCode) {
|
|
3
3
|
switch (errorCode) {
|
|
4
|
-
case 1 : return ( localize(
|
|
5
|
-
case 2 : return ( localize(
|
|
6
|
-
case 3 : return ( localize(
|
|
7
|
-
case 4 : return ( localize(
|
|
8
|
-
case 5 : return ( localize(
|
|
9
|
-
case 6 : return ( localize(
|
|
10
|
-
case 7 : return ( localize(
|
|
11
|
-
case 8 : return ( localize(
|
|
12
|
-
case 9 : return ( localize(
|
|
4
|
+
case 1 : return ( localize(1600, 'Invalid symbol'));
|
|
5
|
+
case 2 : return ( localize(1601, 'Invalid number format'));
|
|
6
|
+
case 3 : return ( localize(1602, 'Property name expected'));
|
|
7
|
+
case 4 : return ( localize(1603, 'Value expected'));
|
|
8
|
+
case 5 : return ( localize(1604, 'Colon expected'));
|
|
9
|
+
case 6 : return ( localize(1605, 'Comma expected'));
|
|
10
|
+
case 7 : return ( localize(1606, 'Closing brace expected'));
|
|
11
|
+
case 8 : return ( localize(1607, 'Closing bracket expected'));
|
|
12
|
+
case 9 : return ( localize(1608, 'End of file expected'));
|
|
13
13
|
default:
|
|
14
14
|
return '';
|
|
15
15
|
}
|
|
@@ -114,7 +114,7 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
|
|
|
114
114
|
this.textArea.setAttribute('aria-required', options.get(5 ) ? 'true' : 'false');
|
|
115
115
|
this.textArea.setAttribute('tabindex', String(options.get(127 )));
|
|
116
116
|
this.textArea.setAttribute('role', 'textbox');
|
|
117
|
-
this.textArea.setAttribute('aria-roledescription', ( localize(
|
|
117
|
+
this.textArea.setAttribute('aria-roledescription', ( localize(9958, "editor")));
|
|
118
118
|
this.textArea.setAttribute('aria-multiline', 'true');
|
|
119
119
|
this.textArea.setAttribute('aria-autocomplete', options.get(94 ) ? 'none' : 'both');
|
|
120
120
|
this._ensureReadOnlyAttribute();
|
|
@@ -844,7 +844,7 @@ var CoreNavigationCommands;
|
|
|
844
844
|
type: 'object',
|
|
845
845
|
properties: {
|
|
846
846
|
'sticky': {
|
|
847
|
-
description: ( localize(
|
|
847
|
+
description: ( localize(1178, "Stick to the end even when going to longer lines")),
|
|
848
848
|
type: 'boolean',
|
|
849
849
|
default: false
|
|
850
850
|
}
|
|
@@ -872,7 +872,7 @@ var CoreNavigationCommands;
|
|
|
872
872
|
type: 'object',
|
|
873
873
|
properties: {
|
|
874
874
|
'sticky': {
|
|
875
|
-
description: ( localize(
|
|
875
|
+
description: ( localize(1178, "Stick to the end even when going to longer lines")),
|
|
876
876
|
type: 'boolean',
|
|
877
877
|
default: false
|
|
878
878
|
}
|
|
@@ -1414,7 +1414,7 @@ var CoreNavigationCommands;
|
|
|
1414
1414
|
viewModel.getPrimaryCursorState()
|
|
1415
1415
|
]);
|
|
1416
1416
|
viewModel.revealAllCursors(args.source, true);
|
|
1417
|
-
status(( localize(
|
|
1417
|
+
status(( localize(1179, "Removed secondary cursors")));
|
|
1418
1418
|
}
|
|
1419
1419
|
}));
|
|
1420
1420
|
CoreNavigationCommands.RevealLine = registerEditorCommand(new (class extends CoreEditorCommand {
|
|
@@ -42,7 +42,7 @@ let ViewGpuContext = class ViewGpuContext extends Disposable {
|
|
|
42
42
|
this.ctx = ensureNonNullable(this.canvas.domNode.getContext('webgpu'));
|
|
43
43
|
this.device = GPULifecycle.requestDevice((message) => {
|
|
44
44
|
const choices = [{
|
|
45
|
-
label: ( localize(
|
|
45
|
+
label: ( localize(5118, "Use DOM-based rendering")),
|
|
46
46
|
run: () => this.configurationService.updateValue('editor.experimentalGpuAcceleration', 'off'),
|
|
47
47
|
}];
|
|
48
48
|
this._notificationService.prompt(Severity$1.Warning, message, choices);
|
|
@@ -146,7 +146,7 @@ let HoverWidget = class HoverWidget extends Widget {
|
|
|
146
146
|
if (options.appearance?.showHoverHint) {
|
|
147
147
|
const statusBarElement = $('div.hover-row.status-bar');
|
|
148
148
|
const infoElement = $('div.info');
|
|
149
|
-
infoElement.textContent = ( localize(
|
|
149
|
+
infoElement.textContent = ( localize(5226, 'Hold {0} key to mouse over', isMacintosh ? 'Option' : 'Alt'));
|
|
150
150
|
statusBarElement.appendChild(infoElement);
|
|
151
151
|
this._hover.containerDomNode.appendChild(statusBarElement);
|
|
152
152
|
}
|
|
@@ -26,7 +26,7 @@ class ManagedHoverWidget {
|
|
|
26
26
|
}
|
|
27
27
|
else {
|
|
28
28
|
if (!this._hoverWidget) {
|
|
29
|
-
this.show(( localize(
|
|
29
|
+
this.show(( localize(5227, "Loading...")), focus, options);
|
|
30
30
|
}
|
|
31
31
|
this._cancellationTokenSource = ( (new CancellationTokenSource()));
|
|
32
32
|
const token = this._cancellationTokenSource.token;
|
|
@@ -1301,7 +1301,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
1301
1301
|
if (e.reachedMaxCursorCount) {
|
|
1302
1302
|
const multiCursorLimit = this.getOption(82 );
|
|
1303
1303
|
const message = ( localize(
|
|
1304
|
-
|
|
1304
|
+
1199,
|
|
1305
1305
|
"The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",
|
|
1306
1306
|
multiCursorLimit
|
|
1307
1307
|
));
|
|
@@ -1313,7 +1313,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
},
|
|
1315
1315
|
{
|
|
1316
|
-
label: ( localize(
|
|
1316
|
+
label: ( localize(1200, 'Increase Multi Cursor Limit')),
|
|
1317
1317
|
run: () => {
|
|
1318
1318
|
this._commandService.executeCommand('workbench.action.openSettings2', {
|
|
1319
1319
|
query: 'editor.multiCursorLimit'
|
|
@@ -13,7 +13,7 @@ class ToggleCollapseUnchangedRegions extends Action2 {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: 'diffEditor.toggleCollapseUnchangedRegions',
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(4869, 'Toggle Collapse Unchanged Regions')),
|
|
17
17
|
icon: Codicon.map,
|
|
18
18
|
toggled: ( (ContextKeyExpr.has('config.diffEditor.hideUnchangedRegions.enabled'))),
|
|
19
19
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
@@ -35,7 +35,7 @@ class ToggleShowMovedCodeBlocks extends Action2 {
|
|
|
35
35
|
constructor() {
|
|
36
36
|
super({
|
|
37
37
|
id: 'diffEditor.toggleShowMovedCodeBlocks',
|
|
38
|
-
title: ( localize2(
|
|
38
|
+
title: ( localize2(4870, 'Toggle Show Moved Code Blocks')),
|
|
39
39
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
40
40
|
});
|
|
41
41
|
}
|
|
@@ -49,7 +49,7 @@ class ToggleUseInlineViewWhenSpaceIsLimited extends Action2 {
|
|
|
49
49
|
constructor() {
|
|
50
50
|
super({
|
|
51
51
|
id: 'diffEditor.toggleUseInlineViewWhenSpaceIsLimited',
|
|
52
|
-
title: ( localize2(
|
|
52
|
+
title: ( localize2(4871, 'Toggle Use Inline View When Space Is Limited')),
|
|
53
53
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
54
54
|
});
|
|
55
55
|
}
|
|
@@ -59,12 +59,12 @@ class ToggleUseInlineViewWhenSpaceIsLimited extends Action2 {
|
|
|
59
59
|
configurationService.updateValue('diffEditor.useInlineViewWhenSpaceIsLimited', newValue);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
const diffEditorCategory = ( localize2(
|
|
62
|
+
const diffEditorCategory = ( localize2(4872, "Diff Editor"));
|
|
63
63
|
class SwitchSide extends EditorAction2 {
|
|
64
64
|
constructor() {
|
|
65
65
|
super({
|
|
66
66
|
id: 'diffEditor.switchSide',
|
|
67
|
-
title: ( localize2(
|
|
67
|
+
title: ( localize2(4873, 'Switch Side')),
|
|
68
68
|
icon: Codicon.arrowSwap,
|
|
69
69
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
70
70
|
f1: true,
|
|
@@ -88,7 +88,7 @@ class ExitCompareMove extends EditorAction2 {
|
|
|
88
88
|
constructor() {
|
|
89
89
|
super({
|
|
90
90
|
id: 'diffEditor.exitCompareMove',
|
|
91
|
-
title: ( localize2(
|
|
91
|
+
title: ( localize2(4874, 'Exit Compare Move')),
|
|
92
92
|
icon: Codicon.close,
|
|
93
93
|
precondition: EditorContextKeys.comparingMovedCode,
|
|
94
94
|
f1: false,
|
|
@@ -110,7 +110,7 @@ class CollapseAllUnchangedRegions extends EditorAction2 {
|
|
|
110
110
|
constructor() {
|
|
111
111
|
super({
|
|
112
112
|
id: 'diffEditor.collapseAllUnchangedRegions',
|
|
113
|
-
title: ( localize2(
|
|
113
|
+
title: ( localize2(4875, 'Collapse All Unchanged Regions')),
|
|
114
114
|
icon: Codicon.fold,
|
|
115
115
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
116
116
|
f1: true,
|
|
@@ -128,7 +128,7 @@ class ShowAllUnchangedRegions extends EditorAction2 {
|
|
|
128
128
|
constructor() {
|
|
129
129
|
super({
|
|
130
130
|
id: 'diffEditor.showAllUnchangedRegions',
|
|
131
|
-
title: ( localize2(
|
|
131
|
+
title: ( localize2(4876, 'Show All Unchanged Regions')),
|
|
132
132
|
icon: Codicon.unfold,
|
|
133
133
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
134
134
|
f1: true,
|
|
@@ -146,7 +146,7 @@ class RevertHunkOrSelection extends Action2 {
|
|
|
146
146
|
constructor() {
|
|
147
147
|
super({
|
|
148
148
|
id: 'diffEditor.revert',
|
|
149
|
-
title: ( localize2(
|
|
149
|
+
title: ( localize2(4877, 'Revert')),
|
|
150
150
|
f1: false,
|
|
151
151
|
category: diffEditorCategory,
|
|
152
152
|
});
|
|
@@ -159,13 +159,13 @@ class RevertHunkOrSelection extends Action2 {
|
|
|
159
159
|
return undefined;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
const accessibleDiffViewerCategory = ( localize2(
|
|
162
|
+
const accessibleDiffViewerCategory = ( localize2(4878, "Accessible Diff Viewer"));
|
|
163
163
|
class AccessibleDiffViewerNext extends Action2 {
|
|
164
164
|
static { this.id = 'editor.action.accessibleDiffViewer.next'; }
|
|
165
165
|
constructor() {
|
|
166
166
|
super({
|
|
167
167
|
id: AccessibleDiffViewerNext.id,
|
|
168
|
-
title: ( localize2(
|
|
168
|
+
title: ( localize2(4879, 'Go to Next Difference')),
|
|
169
169
|
category: accessibleDiffViewerCategory,
|
|
170
170
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
171
171
|
keybinding: {
|
|
@@ -185,7 +185,7 @@ class AccessibleDiffViewerPrev extends Action2 {
|
|
|
185
185
|
constructor() {
|
|
186
186
|
super({
|
|
187
187
|
id: AccessibleDiffViewerPrev.id,
|
|
188
|
-
title: ( localize2(
|
|
188
|
+
title: ( localize2(4880, 'Go to Previous Difference')),
|
|
189
189
|
category: accessibleDiffViewerCategory,
|
|
190
190
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
191
191
|
keybinding: {
|
|
@@ -12,7 +12,7 @@ registerAction2(ToggleUseInlineViewWhenSpaceIsLimited);
|
|
|
12
12
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
13
13
|
command: {
|
|
14
14
|
id: ( (new ToggleUseInlineViewWhenSpaceIsLimited())).desc.id,
|
|
15
|
-
title: ( localize(
|
|
15
|
+
title: ( localize(1180, "Use Inline View When Space Is Limited")),
|
|
16
16
|
toggled: ( (ContextKeyExpr.has('config.diffEditor.useInlineViewWhenSpaceIsLimited'))),
|
|
17
17
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
18
18
|
},
|
|
@@ -26,7 +26,7 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
26
26
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
27
27
|
command: {
|
|
28
28
|
id: ( (new ToggleShowMovedCodeBlocks())).desc.id,
|
|
29
|
-
title: ( localize(
|
|
29
|
+
title: ( localize(1181, "Show Moved Code Blocks")),
|
|
30
30
|
icon: Codicon.move,
|
|
31
31
|
toggled: ContextKeyEqualsExpr.create('config.diffEditor.experimental.showMoves', true),
|
|
32
32
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
@@ -43,7 +43,7 @@ for (const ctx of [
|
|
|
43
43
|
MenuRegistry.appendMenuItem(MenuId.DiffEditorHunkToolbar, {
|
|
44
44
|
command: {
|
|
45
45
|
id: ( (new RevertHunkOrSelection())).desc.id,
|
|
46
|
-
title: ( localize(
|
|
46
|
+
title: ( localize(1182, "Revert Block")),
|
|
47
47
|
icon: ctx.icon,
|
|
48
48
|
},
|
|
49
49
|
when: ( (ContextKeyExpr.and(EditorContextKeys.diffEditorModifiedWritable, ctx.key))),
|
|
@@ -53,7 +53,7 @@ for (const ctx of [
|
|
|
53
53
|
MenuRegistry.appendMenuItem(MenuId.DiffEditorSelectionToolbar, {
|
|
54
54
|
command: {
|
|
55
55
|
id: ( (new RevertHunkOrSelection())).desc.id,
|
|
56
|
-
title: ( localize(
|
|
56
|
+
title: ( localize(1183, "Revert Selection")),
|
|
57
57
|
icon: ctx.icon,
|
|
58
58
|
},
|
|
59
59
|
when: ( (ContextKeyExpr.and(EditorContextKeys.diffEditorModifiedWritable, ctx.key))),
|
|
@@ -68,7 +68,7 @@ registerAction2(ShowAllUnchangedRegions);
|
|
|
68
68
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
69
69
|
command: {
|
|
70
70
|
id: AccessibleDiffViewerNext.id,
|
|
71
|
-
title: ( localize(
|
|
71
|
+
title: ( localize(1184, "Open Accessible Diff Viewer")),
|
|
72
72
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
73
73
|
},
|
|
74
74
|
order: 10,
|
package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js
CHANGED
|
@@ -153,7 +153,7 @@ let HideUnchangedRegionsFeature = class HideUnchangedRegionsFeature extends Disp
|
|
|
153
153
|
const unchangedLinesDecorationShow = {
|
|
154
154
|
description: 'Fold Unchanged',
|
|
155
155
|
glyphMarginHoverMessage: ( (new MarkdownString(undefined, { isTrusted: true, supportThemeIcons: true })))
|
|
156
|
-
.appendMarkdown(( localize(
|
|
156
|
+
.appendMarkdown(( localize(5220, 'Fold Unchanged Region'))),
|
|
157
157
|
glyphMarginClassName: 'fold-unchanged ' + ThemeIcon.asClassName(Codicon.fold),
|
|
158
158
|
zIndex: 10001,
|
|
159
159
|
};
|
|
@@ -255,7 +255,7 @@ class CompactCollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
255
255
|
this._register(autorun(reader => {
|
|
256
256
|
if (!this._hide) {
|
|
257
257
|
const lineCount = this._unchangedRegion.getHiddenModifiedRange(reader).length;
|
|
258
|
-
const linesHiddenText = ( localize(
|
|
258
|
+
const linesHiddenText = ( localize(5221, '{0} hidden lines', lineCount));
|
|
259
259
|
this._nodes.text.innerText = linesHiddenText;
|
|
260
260
|
}
|
|
261
261
|
}));
|
|
@@ -273,12 +273,12 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
273
273
|
this._revealModifiedHiddenLine = _revealModifiedHiddenLine;
|
|
274
274
|
this._options = _options;
|
|
275
275
|
this._nodes = h('div.diff-hidden-lines', [
|
|
276
|
-
h('div.top@top', { title: ( localize(
|
|
276
|
+
h('div.top@top', { title: ( localize(5222, 'Click or drag to show more above')) }),
|
|
277
277
|
h('div.center@content', { style: { display: 'flex' } }, [
|
|
278
|
-
h('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$('a', { title: ( localize(
|
|
278
|
+
h('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$('a', { title: ( localize(5223, 'Show Unchanged Region')), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
|
|
279
279
|
h('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
|
|
280
280
|
]),
|
|
281
|
-
h('div.bottom@bottom', { title: ( localize(
|
|
281
|
+
h('div.bottom@bottom', { title: ( localize(5224, 'Click or drag to show more below')), role: 'button' }),
|
|
282
282
|
]);
|
|
283
283
|
root.root.appendChild(this._nodes.root);
|
|
284
284
|
if (!this._hide) {
|
|
@@ -388,8 +388,8 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
388
388
|
const children = [];
|
|
389
389
|
if (!this._hide) {
|
|
390
390
|
const lineCount = _unchangedRegion.getHiddenModifiedRange(reader).length;
|
|
391
|
-
const linesHiddenText = ( localize(
|
|
392
|
-
const span = $('span', { title: ( localize(
|
|
391
|
+
const linesHiddenText = ( localize(5221, '{0} hidden lines', lineCount));
|
|
392
|
+
const span = $('span', { title: ( localize(5225, 'Double click to unfold')) }, linesHiddenText);
|
|
393
393
|
span.addEventListener('dblclick', e => {
|
|
394
394
|
if (e.button !== 0) {
|
|
395
395
|
return;
|
|
@@ -14,14 +14,14 @@ import '../../../../platform/theme/common/colors/miscColors.js';
|
|
|
14
14
|
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
15
15
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
16
16
|
import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js';
|
|
17
|
-
registerColor('diffEditor.move.border', '#8b8b8b9c', ( localize(
|
|
17
|
+
registerColor('diffEditor.move.border', '#8b8b8b9c', ( localize(4881, 'The border color for text that got moved in the diff editor.')));
|
|
18
18
|
registerColor('diffEditor.moveActive.border', '#FFA500', ( localize(
|
|
19
|
-
|
|
19
|
+
4882,
|
|
20
20
|
'The active border color for text that got moved in the diff editor.'
|
|
21
21
|
)));
|
|
22
|
-
registerColor('diffEditor.unchangedRegionShadow', { dark: '#000000', light: '#737373BF', hcDark: '#000000', hcLight: '#737373BF', }, ( localize(
|
|
23
|
-
const diffInsertIcon = registerIcon('diff-insert', Codicon.add, ( localize(
|
|
24
|
-
const diffRemoveIcon = registerIcon('diff-remove', Codicon.remove, ( localize(
|
|
22
|
+
registerColor('diffEditor.unchangedRegionShadow', { dark: '#000000', light: '#737373BF', hcDark: '#000000', hcLight: '#737373BF', }, ( localize(4883, 'The color of the shadow around unchanged region widgets.')));
|
|
23
|
+
const diffInsertIcon = registerIcon('diff-insert', Codicon.add, ( localize(4884, 'Line decoration for inserts in the diff editor.')));
|
|
24
|
+
const diffRemoveIcon = registerIcon('diff-remove', Codicon.remove, ( localize(4885, 'Line decoration for removals in the diff editor.')));
|
|
25
25
|
const diffLineAddDecorationBackgroundWithIndicator = ModelDecorationOptions.register({
|
|
26
26
|
className: 'line-insert',
|
|
27
27
|
description: 'line-insert',
|