@codingame/monaco-vscode-api 9.0.2 → 9.0.3
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/dialog/dialog.js +6 -6
- 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/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 +8 -8
- 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/editorExtensions.js +6 -6
- 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/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +50 -50
- 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/common/viewLayout/viewLineRenderer.js +2 -2
- 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/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/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/editorState/browser/keybindingCancellation.js +1 -1
- 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/peek/referencesController.js +3 -3
- 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/hover/browser/hoverAccessibleViews.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 +11 -11
- 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/inlineEdits/browser/commands.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineEdits/browser/consts.js +2 -2
- 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/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/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- 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/contextkey.js +11 -11
- 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 +19 -19
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- 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/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +25 -25
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +16 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/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/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +1 -1
- 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/debug/browser/baseDebugView.js +1 -1
- 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/browser/linkDetector.js +3 -3
- 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 +166 -166
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +33 -33
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +14 -14
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.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/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- 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/tasks/common/taskService.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
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-
|
|
104
|
-
"@codingame/monaco-vscode-files-service-override": "9.0.
|
|
105
|
-
"@codingame/monaco-vscode-
|
|
106
|
-
"@codingame/monaco-vscode-environment-service-override": "9.0.
|
|
107
|
-
"@codingame/monaco-vscode-layout-service-override": "9.0.
|
|
108
|
-
"@codingame/monaco-vscode-host-service-override": "9.0.
|
|
109
|
-
"@codingame/monaco-vscode-base-service-override": "9.0.
|
|
103
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "9.0.3",
|
|
104
|
+
"@codingame/monaco-vscode-files-service-override": "9.0.3",
|
|
105
|
+
"@codingame/monaco-vscode-extensions-service-override": "9.0.3",
|
|
106
|
+
"@codingame/monaco-vscode-environment-service-override": "9.0.3",
|
|
107
|
+
"@codingame/monaco-vscode-layout-service-override": "9.0.3",
|
|
108
|
+
"@codingame/monaco-vscode-host-service-override": "9.0.3",
|
|
109
|
+
"@codingame/monaco-vscode-base-service-override": "9.0.3"
|
|
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(5021, "{0} ({1})", title, this.options.keybinding));
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
return title ?? undefined;
|
|
@@ -30,7 +30,7 @@ class Dialog extends Disposable {
|
|
|
30
30
|
this.buttons = buttons;
|
|
31
31
|
}
|
|
32
32
|
else if (!this.options.disableDefaultAction) {
|
|
33
|
-
this.buttons = [( localize(
|
|
33
|
+
this.buttons = [( localize(9539, "OK"))];
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
36
36
|
this.buttons = [];
|
|
@@ -94,16 +94,16 @@ class Dialog extends Disposable {
|
|
|
94
94
|
this.applyStyles();
|
|
95
95
|
}
|
|
96
96
|
getIconAriaLabel() {
|
|
97
|
-
let typeLabel = ( localize(
|
|
97
|
+
let typeLabel = ( localize(9540, 'Info'));
|
|
98
98
|
switch (this.options.type) {
|
|
99
99
|
case 'error':
|
|
100
|
-
typeLabel = ( localize(
|
|
100
|
+
typeLabel = ( localize(9541, 'Error'));
|
|
101
101
|
break;
|
|
102
102
|
case 'warning':
|
|
103
|
-
typeLabel = ( localize(
|
|
103
|
+
typeLabel = ( localize(9542, 'Warning'));
|
|
104
104
|
break;
|
|
105
105
|
case 'pending':
|
|
106
|
-
typeLabel = ( localize(
|
|
106
|
+
typeLabel = ( localize(9543, 'In Progress'));
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
return typeLabel;
|
|
@@ -264,7 +264,7 @@ class Dialog extends Disposable {
|
|
|
264
264
|
}
|
|
265
265
|
if (!this.options.disableCloseAction) {
|
|
266
266
|
const actionBar = this._register(( (new ActionBar(this.toolbarContainer, {}))));
|
|
267
|
-
const action = this._register(( (new Action('dialog.close', ( localize(
|
|
267
|
+
const action = this._register(( (new Action('dialog.close', ( localize(9544, "Close Dialog")), ThemeIcon.asClassName(Codicon.dialogClose), true, async () => {
|
|
268
268
|
resolve({
|
|
269
269
|
button: this.options.cancelId || 0,
|
|
270
270
|
checkboxChecked: this.checkbox ? this.checkbox.checked : undefined
|
|
@@ -129,7 +129,7 @@ class ActionWithDropdownActionViewItem extends ActionViewItem {
|
|
|
129
129
|
const separator = h('div.action-dropdown-item-separator', [h('div', {})]).root;
|
|
130
130
|
separator.classList.toggle('prominent', menuActionClassNames.includes('prominent'));
|
|
131
131
|
append(this.element, separator);
|
|
132
|
-
this.dropdownMenuActionViewItem = this._register(( (new DropdownMenuActionViewItem(this._register(( (new Action('dropdownAction', ( localize(
|
|
132
|
+
this.dropdownMenuActionViewItem = this._register(( (new DropdownMenuActionViewItem(this._register(( (new Action('dropdownAction', ( localize(7619, "More Actions...")))))), menuActionsProvider, this.contextMenuProvider, { classNames: ['dropdown', ...ThemeIcon.asClassNameArray(Codicon.dropDownButton), ...menuActionClassNames], hoverDelegate: this.options.hoverDelegate }))));
|
|
133
133
|
this.dropdownMenuActionViewItem.render(this.element);
|
|
134
134
|
this._register(addDisposableListener(this.element, EventType.KEY_DOWN, e => {
|
|
135
135
|
if (menuActionsProvider.getActions().length === 0) {
|
|
@@ -8,7 +8,7 @@ import './findInput.css.js';
|
|
|
8
8
|
import { localize } from '../../../../nls.js';
|
|
9
9
|
import { MutableDisposable, DisposableStore } from '../../../common/lifecycle.js';
|
|
10
10
|
import { createInstantHoverDelegate } from '../hover/hoverDelegateFactory.js';
|
|
11
|
-
const NLS_DEFAULT_LABEL = ( localize(
|
|
11
|
+
const NLS_DEFAULT_LABEL = ( localize(9863, "input"));
|
|
12
12
|
class FindInput extends Widget {
|
|
13
13
|
static { this.OPTION_CHANGE = 'optionChange'; }
|
|
14
14
|
constructor(parent, contextViewProvider, options) {
|
|
@@ -66,8 +66,8 @@ class HoverAction extends Disposable {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
function getHoverAccessibleViewHint(shouldHaveHint, keybinding) {
|
|
69
|
-
return shouldHaveHint && keybinding ? ( localize(
|
|
70
|
-
|
|
69
|
+
return shouldHaveHint && keybinding ? ( localize(6960, "Inspect this in the accessible view with {0}.", keybinding)) : shouldHaveHint ? ( localize(
|
|
70
|
+
6961,
|
|
71
71
|
"Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."
|
|
72
72
|
)) : '';
|
|
73
73
|
}
|
|
@@ -347,13 +347,13 @@ class InputBox extends Widget {
|
|
|
347
347
|
});
|
|
348
348
|
let alertText;
|
|
349
349
|
if (this.message.type === MessageType.ERROR) {
|
|
350
|
-
alertText = ( localize(
|
|
350
|
+
alertText = ( localize(9864, "Error: {0}", this.message.content));
|
|
351
351
|
}
|
|
352
352
|
else if (this.message.type === MessageType.WARNING) {
|
|
353
|
-
alertText = ( localize(
|
|
353
|
+
alertText = ( localize(9865, "Warning: {0}", this.message.content));
|
|
354
354
|
}
|
|
355
355
|
else {
|
|
356
|
-
alertText = ( localize(
|
|
356
|
+
alertText = ( localize(9866, "Info: {0}", this.message.content));
|
|
357
357
|
}
|
|
358
358
|
alert(alertText);
|
|
359
359
|
this.state = 'open';
|
|
@@ -436,8 +436,8 @@ class InputBox extends Widget {
|
|
|
436
436
|
}
|
|
437
437
|
class HistoryInputBox extends InputBox {
|
|
438
438
|
constructor(container, contextViewProvider, options) {
|
|
439
|
-
const NLS_PLACEHOLDER_HISTORY_HINT_SUFFIX_NO_PARENS = ( localize(
|
|
440
|
-
const NLS_PLACEHOLDER_HISTORY_HINT_SUFFIX_IN_PARENS = ( localize(
|
|
439
|
+
const NLS_PLACEHOLDER_HISTORY_HINT_SUFFIX_NO_PARENS = ( localize(9867, ' or {0} for history', `\u21C5`));
|
|
440
|
+
const NLS_PLACEHOLDER_HISTORY_HINT_SUFFIX_IN_PARENS = ( localize(9868, ' ({0} for history)', `\u21C5`));
|
|
441
441
|
super(container, contextViewProvider, options);
|
|
442
442
|
this._onDidFocus = this._register(( (new Emitter())));
|
|
443
443
|
this.onDidFocus = this._onDidFocus.event;
|
|
@@ -529,7 +529,7 @@ class HistoryInputBox extends InputBox {
|
|
|
529
529
|
next = next === this.value ? this.getNextValue() : next;
|
|
530
530
|
}
|
|
531
531
|
this.value = next ?? '';
|
|
532
|
-
status(this.value ? this.value : ( localize(
|
|
532
|
+
status(this.value ? this.value : ( localize(9869, "Cleared Input")));
|
|
533
533
|
}
|
|
534
534
|
showPreviousValue() {
|
|
535
535
|
if (!( (this.history.has(this.value)))) {
|
|
@@ -535,7 +535,7 @@ class ModeToggle extends Toggle {
|
|
|
535
535
|
constructor(opts) {
|
|
536
536
|
super({
|
|
537
537
|
icon: Codicon.listFilter,
|
|
538
|
-
title: ( localize(
|
|
538
|
+
title: ( localize(4939, "Filter")),
|
|
539
539
|
isChecked: opts.isChecked ?? false,
|
|
540
540
|
hoverDelegate: opts.hoverDelegate ?? getDefaultHoverDelegate('element'),
|
|
541
541
|
inputActiveOptionBorder: opts.inputActiveOptionBorder,
|
|
@@ -548,7 +548,7 @@ class FuzzyToggle extends Toggle {
|
|
|
548
548
|
constructor(opts) {
|
|
549
549
|
super({
|
|
550
550
|
icon: Codicon.searchFuzzy,
|
|
551
|
-
title: ( localize(
|
|
551
|
+
title: ( localize(4940, "Fuzzy Match")),
|
|
552
552
|
isChecked: opts.isChecked ?? false,
|
|
553
553
|
hoverDelegate: opts.hoverDelegate ?? getDefaultHoverDelegate('element'),
|
|
554
554
|
inputActiveOptionBorder: opts.inputActiveOptionBorder,
|
|
@@ -578,7 +578,7 @@ var TreeFindMatchType;
|
|
|
578
578
|
class FindWidget extends Disposable {
|
|
579
579
|
set mode(mode) {
|
|
580
580
|
this.modeToggle.checked = mode === TreeFindMode.Filter;
|
|
581
|
-
this.findInput.inputBox.setPlaceHolder(mode === TreeFindMode.Filter ? ( localize(
|
|
581
|
+
this.findInput.inputBox.setPlaceHolder(mode === TreeFindMode.Filter ? ( localize(4941, "Type to filter")) : ( localize(4942, "Type to search")));
|
|
582
582
|
}
|
|
583
583
|
set matchType(matchType) {
|
|
584
584
|
this.matchTypeToggle.checked = matchType === TreeFindMatchType.Fuzzy;
|
|
@@ -629,7 +629,7 @@ class FindWidget extends Disposable {
|
|
|
629
629
|
this._store
|
|
630
630
|
)));
|
|
631
631
|
this.findInput = this._register(( (new FindInput(this.elements.findInput, contextViewProvider, {
|
|
632
|
-
label: ( localize(
|
|
632
|
+
label: ( localize(4942, "Type to search")),
|
|
633
633
|
additionalToggles: [this.modeToggle, this.matchTypeToggle],
|
|
634
634
|
showCommonFindToggles: false,
|
|
635
635
|
inputBoxStyles: styles.inputBoxStyles,
|
|
@@ -667,7 +667,7 @@ class FindWidget extends Disposable {
|
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
669
669
|
}));
|
|
670
|
-
const closeAction = this._register(( (new Action('close', ( localize(
|
|
670
|
+
const closeAction = this._register(( (new Action('close', ( localize(4943, "Close")), 'codicon codicon-close', true, () => this.dispose()))));
|
|
671
671
|
this.actionbar.push(closeAction, { icon: true, label: false });
|
|
672
672
|
const onGrabMouseDown = this._register(( (new DomEmitter(this.elements.grab, 'mousedown'))));
|
|
673
673
|
this._register(onGrabMouseDown.event(e => {
|
|
@@ -888,9 +888,9 @@ class FindController {
|
|
|
888
888
|
render() {
|
|
889
889
|
const noMatches = this.filter.totalCount > 0 && this.filter.matchCount === 0;
|
|
890
890
|
if (this.pattern && noMatches) {
|
|
891
|
-
alert(( localize(
|
|
891
|
+
alert(( localize(4944, "No results")));
|
|
892
892
|
if (this.tree.options.showNotFoundMessage ?? true) {
|
|
893
|
-
this.widget?.showMessage({ type: MessageType.WARNING, content: ( localize(
|
|
893
|
+
this.widget?.showMessage({ type: MessageType.WARNING, content: ( localize(4945, "No elements found.")) });
|
|
894
894
|
}
|
|
895
895
|
else {
|
|
896
896
|
this.widget?.showMessage({ type: MessageType.WARNING });
|
|
@@ -899,7 +899,7 @@ class FindController {
|
|
|
899
899
|
else {
|
|
900
900
|
this.widget?.clearMessage();
|
|
901
901
|
if (this.pattern) {
|
|
902
|
-
alert(( localize(
|
|
902
|
+
alert(( localize(4946, "{0} results", this.filter.matchCount)));
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
905
|
}
|
|
@@ -2,15 +2,15 @@ import { localize } from '../../nls.js';
|
|
|
2
2
|
import { ParseErrorCode } from './json.js';
|
|
3
3
|
function getParseErrorMessage(errorCode) {
|
|
4
4
|
switch (errorCode) {
|
|
5
|
-
case ParseErrorCode.InvalidSymbol: return ( localize(
|
|
6
|
-
case ParseErrorCode.InvalidNumberFormat: return ( localize(
|
|
7
|
-
case ParseErrorCode.PropertyNameExpected: return ( localize(
|
|
8
|
-
case ParseErrorCode.ValueExpected: return ( localize(
|
|
9
|
-
case ParseErrorCode.ColonExpected: return ( localize(
|
|
10
|
-
case ParseErrorCode.CommaExpected: return ( localize(
|
|
11
|
-
case ParseErrorCode.CloseBraceExpected: return ( localize(
|
|
12
|
-
case ParseErrorCode.CloseBracketExpected: return ( localize(
|
|
13
|
-
case ParseErrorCode.EndOfFileExpected: return ( localize(
|
|
5
|
+
case ParseErrorCode.InvalidSymbol: return ( localize(1302, 'Invalid symbol'));
|
|
6
|
+
case ParseErrorCode.InvalidNumberFormat: return ( localize(1303, 'Invalid number format'));
|
|
7
|
+
case ParseErrorCode.PropertyNameExpected: return ( localize(1304, 'Property name expected'));
|
|
8
|
+
case ParseErrorCode.ValueExpected: return ( localize(1305, 'Value expected'));
|
|
9
|
+
case ParseErrorCode.ColonExpected: return ( localize(1306, 'Colon expected'));
|
|
10
|
+
case ParseErrorCode.CommaExpected: return ( localize(1307, 'Comma expected'));
|
|
11
|
+
case ParseErrorCode.CloseBraceExpected: return ( localize(1308, 'Closing brace expected'));
|
|
12
|
+
case ParseErrorCode.CloseBracketExpected: return ( localize(1309, 'Closing bracket expected'));
|
|
13
|
+
case ParseErrorCode.EndOfFileExpected: return ( localize(1310, 'End of file expected'));
|
|
14
14
|
default:
|
|
15
15
|
return '';
|
|
16
16
|
}
|
|
@@ -861,7 +861,7 @@ var CoreNavigationCommands;
|
|
|
861
861
|
type: 'object',
|
|
862
862
|
properties: {
|
|
863
863
|
'sticky': {
|
|
864
|
-
description: ( localize(
|
|
864
|
+
description: ( localize(1331, "Stick to the end even when going to longer lines")),
|
|
865
865
|
type: 'boolean',
|
|
866
866
|
default: false
|
|
867
867
|
}
|
|
@@ -889,7 +889,7 @@ var CoreNavigationCommands;
|
|
|
889
889
|
type: 'object',
|
|
890
890
|
properties: {
|
|
891
891
|
'sticky': {
|
|
892
|
-
description: ( localize(
|
|
892
|
+
description: ( localize(1331, "Stick to the end even when going to longer lines")),
|
|
893
893
|
type: 'boolean',
|
|
894
894
|
default: false
|
|
895
895
|
}
|
|
@@ -1431,7 +1431,7 @@ var CoreNavigationCommands;
|
|
|
1431
1431
|
viewModel.getPrimaryCursorState()
|
|
1432
1432
|
]);
|
|
1433
1433
|
viewModel.revealAllCursors(args.source, true);
|
|
1434
|
-
status(( localize(
|
|
1434
|
+
status(( localize(1332, "Removed secondary cursors")));
|
|
1435
1435
|
}
|
|
1436
1436
|
}));
|
|
1437
1437
|
CoreNavigationCommands.RevealLine = registerEditorCommand(new (class extends CoreEditorCommand {
|
|
@@ -388,12 +388,12 @@ const UndoCommand = registerCommand(( (new MultiCommand({
|
|
|
388
388
|
menuOpts: [{
|
|
389
389
|
menuId: MenuId.MenubarEditMenu,
|
|
390
390
|
group: '1_do',
|
|
391
|
-
title: ( localize(
|
|
391
|
+
title: ( localize(561, "&&Undo")),
|
|
392
392
|
order: 1
|
|
393
393
|
}, {
|
|
394
394
|
menuId: MenuId.CommandPalette,
|
|
395
395
|
group: '',
|
|
396
|
-
title: ( localize(
|
|
396
|
+
title: ( localize(562, "Undo")),
|
|
397
397
|
order: 1
|
|
398
398
|
}]
|
|
399
399
|
}))));
|
|
@@ -410,12 +410,12 @@ const RedoCommand = registerCommand(( (new MultiCommand({
|
|
|
410
410
|
menuOpts: [{
|
|
411
411
|
menuId: MenuId.MenubarEditMenu,
|
|
412
412
|
group: '1_do',
|
|
413
|
-
title: ( localize(
|
|
413
|
+
title: ( localize(563, "&&Redo")),
|
|
414
414
|
order: 2
|
|
415
415
|
}, {
|
|
416
416
|
menuId: MenuId.CommandPalette,
|
|
417
417
|
group: '',
|
|
418
|
-
title: ( localize(
|
|
418
|
+
title: ( localize(564, "Redo")),
|
|
419
419
|
order: 1
|
|
420
420
|
}]
|
|
421
421
|
}))));
|
|
@@ -431,12 +431,12 @@ const SelectAllCommand = registerCommand(( (new MultiCommand({
|
|
|
431
431
|
menuOpts: [{
|
|
432
432
|
menuId: MenuId.MenubarSelectionMenu,
|
|
433
433
|
group: '1_basic',
|
|
434
|
-
title: ( localize(
|
|
434
|
+
title: ( localize(565, "&&Select All")),
|
|
435
435
|
order: 1
|
|
436
436
|
}, {
|
|
437
437
|
menuId: MenuId.CommandPalette,
|
|
438
438
|
group: '',
|
|
439
|
-
title: ( localize(
|
|
439
|
+
title: ( localize(566, "Select All")),
|
|
440
440
|
order: 1
|
|
441
441
|
}]
|
|
442
442
|
}))));
|
|
@@ -154,7 +154,7 @@ let HoverWidget = class HoverWidget extends Widget {
|
|
|
154
154
|
if (options.appearance?.showHoverHint) {
|
|
155
155
|
const statusBarElement = $('div.hover-row.status-bar');
|
|
156
156
|
const infoElement = $('div.info');
|
|
157
|
-
infoElement.textContent = ( localize(
|
|
157
|
+
infoElement.textContent = ( localize(4862, 'Hold {0} key to mouse over', isMacintosh ? 'Option' : 'Alt'));
|
|
158
158
|
statusBarElement.appendChild(infoElement);
|
|
159
159
|
this._hover.containerDomNode.appendChild(statusBarElement);
|
|
160
160
|
}
|
|
@@ -27,7 +27,7 @@ class ManagedHoverWidget {
|
|
|
27
27
|
}
|
|
28
28
|
else {
|
|
29
29
|
if (!this._hoverWidget) {
|
|
30
|
-
this.show(( localize(
|
|
30
|
+
this.show(( localize(4863, "Loading...")), focus, options);
|
|
31
31
|
}
|
|
32
32
|
this._cancellationTokenSource = ( (new CancellationTokenSource()));
|
|
33
33
|
const token = this._cancellationTokenSource.token;
|
|
@@ -1303,7 +1303,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
1303
1303
|
if (e.reachedMaxCursorCount) {
|
|
1304
1304
|
const multiCursorLimit = this.getOption(EditorOption.multiCursorLimit);
|
|
1305
1305
|
const message = ( localize(
|
|
1306
|
-
|
|
1306
|
+
1333,
|
|
1307
1307
|
"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.",
|
|
1308
1308
|
multiCursorLimit
|
|
1309
1309
|
));
|
|
@@ -1315,7 +1315,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
},
|
|
1317
1317
|
{
|
|
1318
|
-
label: ( localize(
|
|
1318
|
+
label: ( localize(1334, 'Increase Multi Cursor Limit')),
|
|
1319
1319
|
run: () => {
|
|
1320
1320
|
this._commandService.executeCommand('workbench.action.openSettings2', {
|
|
1321
1321
|
query: 'editor.multiCursorLimit'
|
|
@@ -15,7 +15,7 @@ class ToggleCollapseUnchangedRegions extends Action2 {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super({
|
|
17
17
|
id: 'diffEditor.toggleCollapseUnchangedRegions',
|
|
18
|
-
title: ( localize2(
|
|
18
|
+
title: ( localize2(4956, 'Toggle Collapse Unchanged Regions')),
|
|
19
19
|
icon: Codicon.map,
|
|
20
20
|
toggled: ( (ContextKeyExpr.has('config.diffEditor.hideUnchangedRegions.enabled'))),
|
|
21
21
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
@@ -37,7 +37,7 @@ class ToggleShowMovedCodeBlocks extends Action2 {
|
|
|
37
37
|
constructor() {
|
|
38
38
|
super({
|
|
39
39
|
id: 'diffEditor.toggleShowMovedCodeBlocks',
|
|
40
|
-
title: ( localize2(
|
|
40
|
+
title: ( localize2(4957, 'Toggle Show Moved Code Blocks')),
|
|
41
41
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
42
42
|
});
|
|
43
43
|
}
|
|
@@ -51,7 +51,7 @@ class ToggleUseInlineViewWhenSpaceIsLimited extends Action2 {
|
|
|
51
51
|
constructor() {
|
|
52
52
|
super({
|
|
53
53
|
id: 'diffEditor.toggleUseInlineViewWhenSpaceIsLimited',
|
|
54
|
-
title: ( localize2(
|
|
54
|
+
title: ( localize2(4958, 'Toggle Use Inline View When Space Is Limited')),
|
|
55
55
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
56
56
|
});
|
|
57
57
|
}
|
|
@@ -61,12 +61,12 @@ class ToggleUseInlineViewWhenSpaceIsLimited extends Action2 {
|
|
|
61
61
|
configurationService.updateValue('diffEditor.useInlineViewWhenSpaceIsLimited', newValue);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
const diffEditorCategory = ( localize2(
|
|
64
|
+
const diffEditorCategory = ( localize2(4959, "Diff Editor"));
|
|
65
65
|
class SwitchSide extends EditorAction2 {
|
|
66
66
|
constructor() {
|
|
67
67
|
super({
|
|
68
68
|
id: 'diffEditor.switchSide',
|
|
69
|
-
title: ( localize2(
|
|
69
|
+
title: ( localize2(4960, 'Switch Side')),
|
|
70
70
|
icon: Codicon.arrowSwap,
|
|
71
71
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
72
72
|
f1: true,
|
|
@@ -90,7 +90,7 @@ class ExitCompareMove extends EditorAction2 {
|
|
|
90
90
|
constructor() {
|
|
91
91
|
super({
|
|
92
92
|
id: 'diffEditor.exitCompareMove',
|
|
93
|
-
title: ( localize2(
|
|
93
|
+
title: ( localize2(4961, 'Exit Compare Move')),
|
|
94
94
|
icon: Codicon.close,
|
|
95
95
|
precondition: EditorContextKeys.comparingMovedCode,
|
|
96
96
|
f1: false,
|
|
@@ -112,7 +112,7 @@ class CollapseAllUnchangedRegions extends EditorAction2 {
|
|
|
112
112
|
constructor() {
|
|
113
113
|
super({
|
|
114
114
|
id: 'diffEditor.collapseAllUnchangedRegions',
|
|
115
|
-
title: ( localize2(
|
|
115
|
+
title: ( localize2(4962, 'Collapse All Unchanged Regions')),
|
|
116
116
|
icon: Codicon.fold,
|
|
117
117
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
118
118
|
f1: true,
|
|
@@ -130,7 +130,7 @@ class ShowAllUnchangedRegions extends EditorAction2 {
|
|
|
130
130
|
constructor() {
|
|
131
131
|
super({
|
|
132
132
|
id: 'diffEditor.showAllUnchangedRegions',
|
|
133
|
-
title: ( localize2(
|
|
133
|
+
title: ( localize2(4963, 'Show All Unchanged Regions')),
|
|
134
134
|
icon: Codicon.unfold,
|
|
135
135
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
136
136
|
f1: true,
|
|
@@ -148,7 +148,7 @@ class RevertHunkOrSelection extends Action2 {
|
|
|
148
148
|
constructor() {
|
|
149
149
|
super({
|
|
150
150
|
id: 'diffEditor.revert',
|
|
151
|
-
title: ( localize2(
|
|
151
|
+
title: ( localize2(4964, 'Revert')),
|
|
152
152
|
f1: false,
|
|
153
153
|
category: diffEditorCategory,
|
|
154
154
|
});
|
|
@@ -161,13 +161,13 @@ class RevertHunkOrSelection extends Action2 {
|
|
|
161
161
|
return undefined;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
const accessibleDiffViewerCategory = ( localize2(
|
|
164
|
+
const accessibleDiffViewerCategory = ( localize2(4965, "Accessible Diff Viewer"));
|
|
165
165
|
class AccessibleDiffViewerNext extends Action2 {
|
|
166
166
|
static { this.id = 'editor.action.accessibleDiffViewer.next'; }
|
|
167
167
|
constructor() {
|
|
168
168
|
super({
|
|
169
169
|
id: AccessibleDiffViewerNext.id,
|
|
170
|
-
title: ( localize2(
|
|
170
|
+
title: ( localize2(4966, 'Go to Next Difference')),
|
|
171
171
|
category: accessibleDiffViewerCategory,
|
|
172
172
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
173
173
|
keybinding: {
|
|
@@ -187,7 +187,7 @@ class AccessibleDiffViewerPrev extends Action2 {
|
|
|
187
187
|
constructor() {
|
|
188
188
|
super({
|
|
189
189
|
id: AccessibleDiffViewerPrev.id,
|
|
190
|
-
title: ( localize2(
|
|
190
|
+
title: ( localize2(4967, 'Go to Previous Difference')),
|
|
191
191
|
category: accessibleDiffViewerCategory,
|
|
192
192
|
precondition: ( (ContextKeyExpr.has('isInDiffEditor'))),
|
|
193
193
|
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(1335, "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(1336, "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(1337, "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(1338, "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(1339, "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
|
@@ -155,7 +155,7 @@ let HideUnchangedRegionsFeature = class HideUnchangedRegionsFeature extends Disp
|
|
|
155
155
|
const unchangedLinesDecorationShow = {
|
|
156
156
|
description: 'Fold Unchanged',
|
|
157
157
|
glyphMarginHoverMessage: ( (new MarkdownString(undefined, { isTrusted: true, supportThemeIcons: true })))
|
|
158
|
-
.appendMarkdown(( localize(
|
|
158
|
+
.appendMarkdown(( localize(5224, 'Fold Unchanged Region'))),
|
|
159
159
|
glyphMarginClassName: 'fold-unchanged ' + ThemeIcon.asClassName(Codicon.fold),
|
|
160
160
|
zIndex: 10001,
|
|
161
161
|
};
|
|
@@ -257,7 +257,7 @@ class CompactCollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
257
257
|
this._register(autorun(reader => {
|
|
258
258
|
if (!this._hide) {
|
|
259
259
|
const lineCount = this._unchangedRegion.getHiddenModifiedRange(reader).length;
|
|
260
|
-
const linesHiddenText = ( localize(
|
|
260
|
+
const linesHiddenText = ( localize(5225, '{0} hidden lines', lineCount));
|
|
261
261
|
this._nodes.text.innerText = linesHiddenText;
|
|
262
262
|
}
|
|
263
263
|
}));
|
|
@@ -275,12 +275,12 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
275
275
|
this._revealModifiedHiddenLine = _revealModifiedHiddenLine;
|
|
276
276
|
this._options = _options;
|
|
277
277
|
this._nodes = h('div.diff-hidden-lines', [
|
|
278
|
-
h('div.top@top', { title: ( localize(
|
|
278
|
+
h('div.top@top', { title: ( localize(5226, 'Click or drag to show more above')) }),
|
|
279
279
|
h('div.center@content', { style: { display: 'flex' } }, [
|
|
280
|
-
h('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$('a', { title: ( localize(
|
|
280
|
+
h('div@first', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center', flexShrink: '0' } }, [$('a', { title: ( localize(5227, 'Show Unchanged Region')), role: 'button', onclick: () => { this._unchangedRegion.showAll(undefined); } }, ...renderLabelWithIcons('$(unfold)'))]),
|
|
281
281
|
h('div@others', { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' } }),
|
|
282
282
|
]),
|
|
283
|
-
h('div.bottom@bottom', { title: ( localize(
|
|
283
|
+
h('div.bottom@bottom', { title: ( localize(5228, 'Click or drag to show more below')), role: 'button' }),
|
|
284
284
|
]);
|
|
285
285
|
root.root.appendChild(this._nodes.root);
|
|
286
286
|
if (!this._hide) {
|
|
@@ -390,8 +390,8 @@ class CollapsedCodeOverlayWidget extends ViewZoneOverlayWidget {
|
|
|
390
390
|
const children = [];
|
|
391
391
|
if (!this._hide) {
|
|
392
392
|
const lineCount = _unchangedRegion.getHiddenModifiedRange(reader).length;
|
|
393
|
-
const linesHiddenText = ( localize(
|
|
394
|
-
const span = $('span', { title: ( localize(
|
|
393
|
+
const linesHiddenText = ( localize(5225, '{0} hidden lines', lineCount));
|
|
394
|
+
const span = $('span', { title: ( localize(5229, 'Double click to unfold')) }, linesHiddenText);
|
|
395
395
|
span.addEventListener('dblclick', e => {
|
|
396
396
|
if (e.button !== 0) {
|
|
397
397
|
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(4968, 'The border color for text that got moved in the diff editor.')));
|
|
18
18
|
registerColor('diffEditor.moveActive.border', '#FFA500', ( localize(
|
|
19
|
-
|
|
19
|
+
4969,
|
|
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(4970, 'The color of the shadow around unchanged region widgets.')));
|
|
23
|
+
const diffInsertIcon = registerIcon('diff-insert', Codicon.add, ( localize(4971, 'Line decoration for inserts in the diff editor.')));
|
|
24
|
+
const diffRemoveIcon = registerIcon('diff-remove', Codicon.remove, ( localize(4972, 'Line decoration for removals in the diff editor.')));
|
|
25
25
|
const diffLineAddDecorationBackgroundWithIndicator = ModelDecorationOptions.register({
|
|
26
26
|
className: 'line-insert',
|
|
27
27
|
description: 'line-insert',
|
|
@@ -10,6 +10,6 @@ import '../../../../platform/theme/common/colors/minimapColors.js';
|
|
|
10
10
|
import '../../../../platform/theme/common/colors/miscColors.js';
|
|
11
11
|
import '../../../../platform/theme/common/colors/quickpickColors.js';
|
|
12
12
|
import '../../../../platform/theme/common/colors/searchColors.js';
|
|
13
|
-
registerColor('multiDiffEditor.headerBackground', { dark: '#262626', light: 'tab.inactiveBackground', hcDark: 'tab.inactiveBackground', hcLight: 'tab.inactiveBackground', }, ( localize(
|
|
14
|
-
registerColor('multiDiffEditor.background', editorBackground, ( localize(
|
|
15
|
-
registerColor('multiDiffEditor.border', { dark: 'sideBarSectionHeader.border', light: '#cccccc', hcDark: 'sideBarSectionHeader.border', hcLight: '#cccccc', }, ( localize(
|
|
13
|
+
registerColor('multiDiffEditor.headerBackground', { dark: '#262626', light: 'tab.inactiveBackground', hcDark: 'tab.inactiveBackground', hcLight: 'tab.inactiveBackground', }, ( localize(9990, 'The background color of the diff editor\'s header')));
|
|
14
|
+
registerColor('multiDiffEditor.background', editorBackground, ( localize(9991, 'The background color of the multi file diff editor')));
|
|
15
|
+
registerColor('multiDiffEditor.border', { dark: 'sideBarSectionHeader.border', light: '#cccccc', hcDark: 'sideBarSectionHeader.border', hcLight: '#cccccc', }, ( localize(9992, 'The border color of the multi file diff editor')));
|
|
@@ -51,7 +51,7 @@ let MultiDiffEditorWidgetImpl = class MultiDiffEditorWidgetImpl extends Disposab
|
|
|
51
51
|
}, this._scrollable))));
|
|
52
52
|
this._elements = h('div.monaco-component.multiDiffEditor', {}, [
|
|
53
53
|
h('div', {}, [this._scrollableElement.getDomNode()]),
|
|
54
|
-
h('div.placeholder@placeholder', {}, [h('div', [( localize(
|
|
54
|
+
h('div.placeholder@placeholder', {}, [h('div', [( localize(9989, 'No Changed Files'))])]),
|
|
55
55
|
]);
|
|
56
56
|
this._sizeObserver = this._register(( (new ObservableElementSizeObserver(this._element, undefined))));
|
|
57
57
|
this._objectPool = this._register(( (new ObjectPool((data) => {
|