@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
|
@@ -18,23 +18,23 @@ import { registerIcon } from '../../../../platform/theme/common/iconRegistry.js'
|
|
|
18
18
|
import { Range } from '../../../common/core/range.js';
|
|
19
19
|
var LightBulbWidget_1;
|
|
20
20
|
const GUTTER_LIGHTBULB_ICON = registerIcon('gutter-lightbulb', Codicon.lightBulb, ( localize(
|
|
21
|
-
|
|
21
|
+
5011,
|
|
22
22
|
'Icon which spawns code actions menu from the gutter when there is no space in the editor.'
|
|
23
23
|
)));
|
|
24
24
|
const GUTTER_LIGHTBULB_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-auto-fix', Codicon.lightbulbAutofix, ( localize(
|
|
25
|
-
|
|
25
|
+
5012,
|
|
26
26
|
'Icon which spawns code actions menu from the gutter when there is no space in the editor and a quick fix is available.'
|
|
27
27
|
)));
|
|
28
28
|
const GUTTER_LIGHTBULB_AIFIX_ICON = registerIcon('gutter-lightbulb-sparkle', Codicon.lightbulbSparkle, ( localize(
|
|
29
|
-
|
|
29
|
+
5013,
|
|
30
30
|
'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix is available.'
|
|
31
31
|
)));
|
|
32
32
|
const GUTTER_LIGHTBULB_AIFIX_AUTO_FIX_ICON = registerIcon('gutter-lightbulb-aifix-auto-fix', Codicon.lightbulbSparkleAutofix, ( localize(
|
|
33
|
-
|
|
33
|
+
5014,
|
|
34
34
|
'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.'
|
|
35
35
|
)));
|
|
36
36
|
const GUTTER_SPARKLE_FILLED_ICON = registerIcon('gutter-lightbulb-sparkle-filled', Codicon.sparkleFilled, ( localize(
|
|
37
|
-
|
|
37
|
+
5015,
|
|
38
38
|
'Icon which spawns code actions menu from the gutter when there is no space in the editor and an AI fix and a quick fix is available.'
|
|
39
39
|
)));
|
|
40
40
|
var LightBulbState;
|
|
@@ -397,20 +397,20 @@ let LightBulbWidget = class LightBulbWidget extends Disposable {
|
|
|
397
397
|
return;
|
|
398
398
|
}
|
|
399
399
|
if (autoRun) {
|
|
400
|
-
this.title = ( localize(
|
|
400
|
+
this.title = ( localize(5016, "Run: {0}", this.state.actions.validActions[0].action.title));
|
|
401
401
|
}
|
|
402
402
|
else if (autoFix && this._preferredKbLabel) {
|
|
403
403
|
this.title = ( localize(
|
|
404
|
-
|
|
404
|
+
5017,
|
|
405
405
|
"Show Code Actions. Preferred Quick Fix Available ({0})",
|
|
406
406
|
this._preferredKbLabel
|
|
407
407
|
));
|
|
408
408
|
}
|
|
409
409
|
else if (!autoFix && this._quickFixKbLabel) {
|
|
410
|
-
this.title = ( localize(
|
|
410
|
+
this.title = ( localize(5018, "Show Code Actions ({0})", this._quickFixKbLabel));
|
|
411
411
|
}
|
|
412
412
|
else if (!autoFix) {
|
|
413
|
-
this.title = ( localize(
|
|
413
|
+
this.title = ( localize(5019, "Show Code Actions"));
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
set title(value) {
|
|
@@ -388,7 +388,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
388
388
|
super({
|
|
389
389
|
id: 'codelens.showLensesInCurrentLine',
|
|
390
390
|
precondition: EditorContextKeys.hasCodeLensProvider,
|
|
391
|
-
label: ( localize(
|
|
391
|
+
label: ( localize(1367, "Show CodeLens Commands For Current Line")),
|
|
392
392
|
alias: 'Show CodeLens Commands For Current Line',
|
|
393
393
|
});
|
|
394
394
|
}
|
|
@@ -422,7 +422,7 @@ registerEditorAction(class ShowLensesInCurrentLine extends EditorAction {
|
|
|
422
422
|
}
|
|
423
423
|
const item = await quickInputService.pick(items, {
|
|
424
424
|
canPickMany: false,
|
|
425
|
-
placeHolder: ( localize(
|
|
425
|
+
placeHolder: ( localize(1368, "Select a command"))
|
|
426
426
|
});
|
|
427
427
|
if (!item) {
|
|
428
428
|
return;
|
|
@@ -78,7 +78,7 @@ let ColorHoverParticipant = class ColorHoverParticipant {
|
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
getAccessibleContent(hoverPart) {
|
|
81
|
-
return ( localize(
|
|
81
|
+
return ( localize(5020, 'There is a color picker here.'));
|
|
82
82
|
}
|
|
83
83
|
handleResize() {
|
|
84
84
|
this._colorPicker?.layout();
|
|
@@ -11,8 +11,8 @@ class ShowOrFocusStandaloneColorPicker extends EditorAction2 {
|
|
|
11
11
|
super({
|
|
12
12
|
id: 'editor.action.showOrFocusStandaloneColorPicker',
|
|
13
13
|
title: {
|
|
14
|
-
...( localize2(
|
|
15
|
-
mnemonicTitle: ( localize(
|
|
14
|
+
...( localize2(1369, "Show or Focus Standalone Color Picker")),
|
|
15
|
+
mnemonicTitle: ( localize(1370, "&&Show or Focus Standalone Color Picker")),
|
|
16
16
|
},
|
|
17
17
|
precondition: undefined,
|
|
18
18
|
menu: [
|
|
@@ -20,7 +20,7 @@ class ShowOrFocusStandaloneColorPicker extends EditorAction2 {
|
|
|
20
20
|
],
|
|
21
21
|
metadata: {
|
|
22
22
|
description: ( localize2(
|
|
23
|
-
|
|
23
|
+
1371,
|
|
24
24
|
"Show or focus a standalone color picker which uses the default color provider. It displays hex/rgb/hsl colors."
|
|
25
25
|
)),
|
|
26
26
|
}
|
|
@@ -34,7 +34,7 @@ class HideStandaloneColorPicker extends EditorAction {
|
|
|
34
34
|
constructor() {
|
|
35
35
|
super({
|
|
36
36
|
id: 'editor.action.hideColorPicker',
|
|
37
|
-
label: ( localize(
|
|
37
|
+
label: ( localize(1372, "Hide the Color Picker")),
|
|
38
38
|
alias: 'Hide the Color Picker',
|
|
39
39
|
precondition: ( (EditorContextKeys.standaloneColorPickerVisible.isEqualTo(true))),
|
|
40
40
|
kbOpts: {
|
|
@@ -42,7 +42,7 @@ class HideStandaloneColorPicker extends EditorAction {
|
|
|
42
42
|
weight: KeybindingWeight.EditorContrib
|
|
43
43
|
},
|
|
44
44
|
metadata: {
|
|
45
|
-
description: ( localize2(
|
|
45
|
+
description: ( localize2(1373, "Hide the standalone color picker.")),
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
@@ -54,7 +54,7 @@ class InsertColorWithStandaloneColorPicker extends EditorAction {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super({
|
|
56
56
|
id: 'editor.action.insertColorWithStandaloneColorPicker',
|
|
57
|
-
label: ( localize(
|
|
57
|
+
label: ( localize(1374, "Insert Color with Standalone Color Picker")),
|
|
58
58
|
alias: 'Insert Color with Standalone Color Picker',
|
|
59
59
|
precondition: ( (EditorContextKeys.standaloneColorPickerFocused.isEqualTo(true))),
|
|
60
60
|
kbOpts: {
|
|
@@ -63,7 +63,7 @@ class InsertColorWithStandaloneColorPicker extends EditorAction {
|
|
|
63
63
|
},
|
|
64
64
|
metadata: {
|
|
65
65
|
description: ( localize2(
|
|
66
|
-
|
|
66
|
+
1375,
|
|
67
67
|
"Insert hex/rgb/hsl colors with the focused standalone color picker."
|
|
68
68
|
)),
|
|
69
69
|
}
|
|
@@ -58,7 +58,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
58
58
|
constructor() {
|
|
59
59
|
super(Type.Toggle, {
|
|
60
60
|
id: 'editor.action.commentLine',
|
|
61
|
-
label: ( localize(
|
|
61
|
+
label: ( localize(1376, "Toggle Line Comment")),
|
|
62
62
|
alias: 'Toggle Line Comment',
|
|
63
63
|
precondition: EditorContextKeys.writable,
|
|
64
64
|
kbOpts: {
|
|
@@ -69,7 +69,7 @@ class ToggleCommentLineAction extends CommentLineAction {
|
|
|
69
69
|
menuOpts: {
|
|
70
70
|
menuId: MenuId.MenubarEditMenu,
|
|
71
71
|
group: '5_insert',
|
|
72
|
-
title: ( localize(
|
|
72
|
+
title: ( localize(1377, "&&Toggle Line Comment")),
|
|
73
73
|
order: 1
|
|
74
74
|
}
|
|
75
75
|
});
|
|
@@ -79,7 +79,7 @@ class AddLineCommentAction extends CommentLineAction {
|
|
|
79
79
|
constructor() {
|
|
80
80
|
super(Type.ForceAdd, {
|
|
81
81
|
id: 'editor.action.addCommentLine',
|
|
82
|
-
label: ( localize(
|
|
82
|
+
label: ( localize(1378, "Add Line Comment")),
|
|
83
83
|
alias: 'Add Line Comment',
|
|
84
84
|
precondition: EditorContextKeys.writable,
|
|
85
85
|
kbOpts: {
|
|
@@ -94,7 +94,7 @@ class RemoveLineCommentAction extends CommentLineAction {
|
|
|
94
94
|
constructor() {
|
|
95
95
|
super(Type.ForceRemove, {
|
|
96
96
|
id: 'editor.action.removeCommentLine',
|
|
97
|
-
label: ( localize(
|
|
97
|
+
label: ( localize(1379, "Remove Line Comment")),
|
|
98
98
|
alias: 'Remove Line Comment',
|
|
99
99
|
precondition: EditorContextKeys.writable,
|
|
100
100
|
kbOpts: {
|
|
@@ -109,7 +109,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
109
109
|
constructor() {
|
|
110
110
|
super({
|
|
111
111
|
id: 'editor.action.blockComment',
|
|
112
|
-
label: ( localize(
|
|
112
|
+
label: ( localize(1380, "Toggle Block Comment")),
|
|
113
113
|
alias: 'Toggle Block Comment',
|
|
114
114
|
precondition: EditorContextKeys.writable,
|
|
115
115
|
kbOpts: {
|
|
@@ -121,7 +121,7 @@ class BlockCommentAction extends EditorAction {
|
|
|
121
121
|
menuOpts: {
|
|
122
122
|
menuId: MenuId.MenubarEditMenu,
|
|
123
123
|
group: '5_insert',
|
|
124
|
-
title: ( localize(
|
|
124
|
+
title: ( localize(1381, "Toggle &&Block Comment")),
|
|
125
125
|
order: 2
|
|
126
126
|
}
|
|
127
127
|
});
|
|
@@ -245,7 +245,7 @@ let ContextMenuController = class ContextMenuController {
|
|
|
245
245
|
};
|
|
246
246
|
const actions = [];
|
|
247
247
|
actions.push(createAction({
|
|
248
|
-
label: ( localize(
|
|
248
|
+
label: ( localize(1382, "Minimap")),
|
|
249
249
|
checked: minimapOptions.enabled,
|
|
250
250
|
run: () => {
|
|
251
251
|
this._configurationService.updateValue(`editor.minimap.enabled`, !minimapOptions.enabled);
|
|
@@ -253,28 +253,28 @@ let ContextMenuController = class ContextMenuController {
|
|
|
253
253
|
}));
|
|
254
254
|
actions.push(( (new Separator())));
|
|
255
255
|
actions.push(createAction({
|
|
256
|
-
label: ( localize(
|
|
256
|
+
label: ( localize(1383, "Render Characters")),
|
|
257
257
|
enabled: minimapOptions.enabled,
|
|
258
258
|
checked: minimapOptions.renderCharacters,
|
|
259
259
|
run: () => {
|
|
260
260
|
this._configurationService.updateValue(`editor.minimap.renderCharacters`, !minimapOptions.renderCharacters);
|
|
261
261
|
}
|
|
262
262
|
}));
|
|
263
|
-
actions.push(createEnumAction(( localize(
|
|
264
|
-
label: ( localize(
|
|
263
|
+
actions.push(createEnumAction(( localize(1384, "Vertical size")), minimapOptions.enabled, 'editor.minimap.size', minimapOptions.size, [{
|
|
264
|
+
label: ( localize(1385, "Proportional")),
|
|
265
265
|
value: 'proportional'
|
|
266
266
|
}, {
|
|
267
|
-
label: ( localize(
|
|
267
|
+
label: ( localize(1386, "Fill")),
|
|
268
268
|
value: 'fill'
|
|
269
269
|
}, {
|
|
270
|
-
label: ( localize(
|
|
270
|
+
label: ( localize(1387, "Fit")),
|
|
271
271
|
value: 'fit'
|
|
272
272
|
}]));
|
|
273
|
-
actions.push(createEnumAction(( localize(
|
|
274
|
-
label: ( localize(
|
|
273
|
+
actions.push(createEnumAction(( localize(1388, "Slider")), minimapOptions.enabled, 'editor.minimap.showSlider', minimapOptions.showSlider, [{
|
|
274
|
+
label: ( localize(1389, "Mouse Over")),
|
|
275
275
|
value: 'mouseover'
|
|
276
276
|
}, {
|
|
277
|
-
label: ( localize(
|
|
277
|
+
label: ( localize(1390, "Always")),
|
|
278
278
|
value: 'always'
|
|
279
279
|
}]));
|
|
280
280
|
const useShadowDOM = this._editor.getOption(EditorOption.useShadowDOM) && !isIOS;
|
|
@@ -312,7 +312,7 @@ class ShowContextMenu extends EditorAction {
|
|
|
312
312
|
constructor() {
|
|
313
313
|
super({
|
|
314
314
|
id: 'editor.action.showContextMenu',
|
|
315
|
-
label: ( localize(
|
|
315
|
+
label: ( localize(1391, "Show Editor Context Menu")),
|
|
316
316
|
alias: 'Show Editor Context Menu',
|
|
317
317
|
precondition: undefined,
|
|
318
318
|
kbOpts: {
|
|
@@ -105,7 +105,7 @@ class CursorUndo extends EditorAction {
|
|
|
105
105
|
constructor() {
|
|
106
106
|
super({
|
|
107
107
|
id: 'cursorUndo',
|
|
108
|
-
label: ( localize(
|
|
108
|
+
label: ( localize(1392, "Cursor Undo")),
|
|
109
109
|
alias: 'Cursor Undo',
|
|
110
110
|
precondition: undefined,
|
|
111
111
|
kbOpts: {
|
|
@@ -123,7 +123,7 @@ class CursorRedo extends EditorAction {
|
|
|
123
123
|
constructor() {
|
|
124
124
|
super({
|
|
125
125
|
id: 'cursorRedo',
|
|
126
|
-
label: ( localize(
|
|
126
|
+
label: ( localize(1393, "Cursor Redo")),
|
|
127
127
|
alias: 'Cursor Redo',
|
|
128
128
|
precondition: undefined
|
|
129
129
|
});
|
|
@@ -46,7 +46,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
46
46
|
kind: {
|
|
47
47
|
type: 'string',
|
|
48
48
|
description: ( localize(
|
|
49
|
-
|
|
49
|
+
1394,
|
|
50
50
|
"The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker."
|
|
51
51
|
)),
|
|
52
52
|
}
|
|
@@ -55,7 +55,7 @@ registerEditorAction(class PasteAsAction extends EditorAction {
|
|
|
55
55
|
constructor() {
|
|
56
56
|
super({
|
|
57
57
|
id: 'editor.action.pasteAs',
|
|
58
|
-
label: ( localize(
|
|
58
|
+
label: ( localize(1395, "Paste As...")),
|
|
59
59
|
alias: 'Paste As...',
|
|
60
60
|
precondition: EditorContextKeys.writable,
|
|
61
61
|
metadata: {
|
|
@@ -79,7 +79,7 @@ registerEditorAction(class extends EditorAction {
|
|
|
79
79
|
constructor() {
|
|
80
80
|
super({
|
|
81
81
|
id: 'editor.action.pasteAsText',
|
|
82
|
-
label: ( localize(
|
|
82
|
+
label: ( localize(1396, "Paste as Text")),
|
|
83
83
|
alias: 'Paste as Text',
|
|
84
84
|
precondition: EditorContextKeys.writable,
|
|
85
85
|
});
|
|
@@ -33,7 +33,7 @@ import { PostEditWidgetManager } from './postEditWidget.js';
|
|
|
33
33
|
import { isCancellationError, CancellationError } from '../../../../base/common/errors.js';
|
|
34
34
|
var CopyPasteController_1;
|
|
35
35
|
const changePasteTypeCommandId = 'editor.changePasteType';
|
|
36
|
-
const pasteWidgetVisibleCtx = ( (new RawContextKey('pasteWidgetVisible', false, ( localize(
|
|
36
|
+
const pasteWidgetVisibleCtx = ( (new RawContextKey('pasteWidgetVisible', false, ( localize(4973, "Whether the paste widget is showing")))));
|
|
37
37
|
const vscodeClipboardMime = 'application/vnd.code.copyMetadata';
|
|
38
38
|
let CopyPasteController = class CopyPasteController extends Disposable {
|
|
39
39
|
static { CopyPasteController_1 = this; }
|
|
@@ -54,7 +54,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
54
54
|
this._register(addDisposableListener(container, 'cut', e => this.handleCopy(e)));
|
|
55
55
|
this._register(addDisposableListener(container, 'paste', e => this.handlePaste(e), true));
|
|
56
56
|
this._pasteProgressManager = this._register(( (new InlineProgressManager('pasteIntoEditor', editor, instantiationService))));
|
|
57
|
-
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: ( localize(
|
|
57
|
+
this._postPasteWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'pasteIntoEditor', editor, pasteWidgetVisibleCtx, { id: changePasteTypeCommandId, label: ( localize(4974, "Show paste options...")) }));
|
|
58
58
|
}
|
|
59
59
|
changePasteType() {
|
|
60
60
|
this._postPasteWidgetManager.tryShowSelector();
|
|
@@ -201,7 +201,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
201
201
|
}
|
|
202
202
|
showPasteAsNoEditMessage(selections, preference) {
|
|
203
203
|
MessageController.get(this._editor)?.showMessage(( localize(
|
|
204
|
-
|
|
204
|
+
4975,
|
|
205
205
|
"No paste edits for '{0}' found",
|
|
206
206
|
preference instanceof HierarchicalKind ? preference.value : preference.providerId
|
|
207
207
|
)), selections[0].getStartPosition());
|
|
@@ -257,7 +257,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
257
257
|
try {
|
|
258
258
|
const resolveP = edit.provider.resolveDocumentPasteEdit?.(edit, token);
|
|
259
259
|
const showP = ( (new DeferredPromise()));
|
|
260
|
-
const resolved = resolveP && (await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(
|
|
260
|
+
const resolved = resolveP && (await this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(4976, "Resolving paste edit. Click to cancel")), Promise.race([showP.p, resolveP]), {
|
|
261
261
|
cancel: () => {
|
|
262
262
|
showP.cancel();
|
|
263
263
|
return reject(( (new CancellationError())));
|
|
@@ -285,7 +285,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
|
-
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(
|
|
288
|
+
this._pasteProgressManager.showWhile(selections[0].getEndPosition(), ( localize(4977, "Running paste handlers. Click to cancel and do basic paste")), p, {
|
|
289
289
|
cancel: async () => {
|
|
290
290
|
try {
|
|
291
291
|
p.cancel();
|
|
@@ -363,7 +363,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
363
363
|
description: edit.kind?.value,
|
|
364
364
|
edit,
|
|
365
365
|
})))), {
|
|
366
|
-
placeHolder: ( localize(
|
|
366
|
+
placeHolder: ( localize(4978, "Select Paste Action")),
|
|
367
367
|
});
|
|
368
368
|
pickedEdit = selected?.edit;
|
|
369
369
|
}
|
|
@@ -382,7 +382,7 @@ let CopyPasteController = class CopyPasteController extends Disposable {
|
|
|
382
382
|
});
|
|
383
383
|
this._progressService.withProgress({
|
|
384
384
|
location: ProgressLocation.Window,
|
|
385
|
-
title: ( localize(
|
|
385
|
+
title: ( localize(4979, "Running paste handlers")),
|
|
386
386
|
}, () => p);
|
|
387
387
|
}
|
|
388
388
|
setCopyMetadata(dataTransfer, metadata) {
|
|
@@ -54,7 +54,7 @@ class DefaultTextPasteOrDropEditProvider extends SimplePasteAndDropProvider {
|
|
|
54
54
|
const insertText = await textEntry.asString();
|
|
55
55
|
return {
|
|
56
56
|
handledMimeType: Mimes.text,
|
|
57
|
-
title: ( localize(
|
|
57
|
+
title: ( localize(5022, "Insert Plain Text")),
|
|
58
58
|
insertText,
|
|
59
59
|
kind: this.kind,
|
|
60
60
|
};
|
|
@@ -87,13 +87,13 @@ class PathProvider extends SimplePasteAndDropProvider {
|
|
|
87
87
|
let label;
|
|
88
88
|
if (uriCount > 0) {
|
|
89
89
|
label = entries.length > 1
|
|
90
|
-
? ( localize(
|
|
91
|
-
: ( localize(
|
|
90
|
+
? ( localize(5023, "Insert Uris"))
|
|
91
|
+
: ( localize(5024, "Insert Uri"));
|
|
92
92
|
}
|
|
93
93
|
else {
|
|
94
94
|
label = entries.length > 1
|
|
95
|
-
? ( localize(
|
|
96
|
-
: ( localize(
|
|
95
|
+
? ( localize(5025, "Insert Paths"))
|
|
96
|
+
: ( localize(5026, "Insert Path"));
|
|
97
97
|
}
|
|
98
98
|
return {
|
|
99
99
|
handledMimeType: Mimes.uriList,
|
|
@@ -127,8 +127,8 @@ let RelativePathProvider = class RelativePathProvider extends SimplePasteAndDrop
|
|
|
127
127
|
handledMimeType: Mimes.uriList,
|
|
128
128
|
insertText: relativeUris.join(' '),
|
|
129
129
|
title: entries.length > 1
|
|
130
|
-
? ( localize(
|
|
131
|
-
: ( localize(
|
|
130
|
+
? ( localize(5027, "Insert Relative Paths"))
|
|
131
|
+
: ( localize(5028, "Insert Relative Path")),
|
|
132
132
|
kind: this.kind,
|
|
133
133
|
};
|
|
134
134
|
}
|
|
@@ -156,7 +156,7 @@ class PasteHtmlProvider {
|
|
|
156
156
|
edits: [{
|
|
157
157
|
insertText: htmlText,
|
|
158
158
|
yieldTo: this._yieldTo,
|
|
159
|
-
title: ( localize(
|
|
159
|
+
title: ( localize(5029, 'Insert HTML')),
|
|
160
160
|
kind: this.kind,
|
|
161
161
|
}],
|
|
162
162
|
};
|
|
@@ -47,7 +47,7 @@ registerEditorCommand(new (class extends EditorCommand {
|
|
|
47
47
|
type: 'object',
|
|
48
48
|
scope: ConfigurationScope.LANGUAGE_OVERRIDABLE,
|
|
49
49
|
description: ( localize(
|
|
50
|
-
|
|
50
|
+
1397,
|
|
51
51
|
"Configures the default drop provider to use for content of a given mime type."
|
|
52
52
|
)),
|
|
53
53
|
default: {},
|
|
@@ -22,7 +22,7 @@ import { PostEditWidgetManager } from './postEditWidget.js';
|
|
|
22
22
|
var DropIntoEditorController_1;
|
|
23
23
|
const defaultProviderConfig = 'editor.experimental.dropIntoEditor.defaultProvider';
|
|
24
24
|
const changeDropTypeCommandId = 'editor.changeDropType';
|
|
25
|
-
const dropWidgetVisibleCtx = ( (new RawContextKey('dropWidgetVisible', false, ( localize(
|
|
25
|
+
const dropWidgetVisibleCtx = ( (new RawContextKey('dropWidgetVisible', false, ( localize(5030, "Whether the drop widget is showing")))));
|
|
26
26
|
let DropIntoEditorController = class DropIntoEditorController extends Disposable {
|
|
27
27
|
static { DropIntoEditorController_1 = this; }
|
|
28
28
|
static { this.ID = 'editor.contrib.dropIntoEditorController'; }
|
|
@@ -36,7 +36,7 @@ let DropIntoEditorController = class DropIntoEditorController extends Disposable
|
|
|
36
36
|
this._treeViewsDragAndDropService = _treeViewsDragAndDropService;
|
|
37
37
|
this.treeItemsTransfer = LocalSelectionTransfer.getInstance();
|
|
38
38
|
this._dropProgressManager = this._register(instantiationService.createInstance(InlineProgressManager, 'dropIntoEditor', editor));
|
|
39
|
-
this._postDropWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'dropIntoEditor', editor, dropWidgetVisibleCtx, { id: changeDropTypeCommandId, label: ( localize(
|
|
39
|
+
this._postDropWidgetManager = this._register(instantiationService.createInstance(PostEditWidgetManager, 'dropIntoEditor', editor, dropWidgetVisibleCtx, { id: changeDropTypeCommandId, label: ( localize(5031, "Show drop options...")) }));
|
|
40
40
|
this._register(editor.onDropIntoEditor(e => this.onDropIntoEditor(editor, e.position, e.event)));
|
|
41
41
|
}
|
|
42
42
|
clearWidgets() {
|
|
@@ -91,7 +91,7 @@ let DropIntoEditorController = class DropIntoEditorController extends Disposable
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
this._dropProgressManager.showWhile(position, ( localize(
|
|
94
|
+
this._dropProgressManager.showWhile(position, ( localize(5032, "Running drop handlers. Click to cancel")), p, { cancel: () => p.cancel() });
|
|
95
95
|
this._currentOperation = p;
|
|
96
96
|
}
|
|
97
97
|
async getDropEdits(providers, model, position, dataTransfer, tokenSource) {
|
|
@@ -10,7 +10,7 @@ import { registerSingleton, InstantiationType } from '../../../../platform/insta
|
|
|
10
10
|
import { localize } from '../../../../nls.js';
|
|
11
11
|
const IEditorCancellationTokens = ( (createDecorator('IEditorCancelService')));
|
|
12
12
|
const ctxCancellableOperation = ( (new RawContextKey('cancellableOperation', false, ( localize(
|
|
13
|
-
|
|
13
|
+
9909,
|
|
14
14
|
'Whether the editor runs a cancellable operation, e.g. like \'Peek References\''
|
|
15
15
|
)))));
|
|
16
16
|
registerSingleton(IEditorCancellationTokens, class {
|
|
@@ -306,7 +306,7 @@ let CommonFindController = class CommonFindController extends Disposable {
|
|
|
306
306
|
replaceAll() {
|
|
307
307
|
if (this._model) {
|
|
308
308
|
if (this._editor.getModel()?.isTooLargeForHeapOperation()) {
|
|
309
|
-
this._notificationService.warn(( localize(
|
|
309
|
+
this._notificationService.warn(( localize(1398, "The file is too large to perform a replace all operation.")));
|
|
310
310
|
return false;
|
|
311
311
|
}
|
|
312
312
|
this._model.replaceAll();
|
|
@@ -429,7 +429,7 @@ FindController = ( (__decorate([
|
|
|
429
429
|
], FindController)));
|
|
430
430
|
const StartFindAction = registerMultiEditorAction(( (new MultiEditorAction({
|
|
431
431
|
id: FIND_IDS.StartFindAction,
|
|
432
|
-
label: ( localize(
|
|
432
|
+
label: ( localize(1399, "Find")),
|
|
433
433
|
alias: 'Find',
|
|
434
434
|
precondition: ( (ContextKeyExpr.or(
|
|
435
435
|
EditorContextKeys.focus,
|
|
@@ -443,7 +443,7 @@ const StartFindAction = registerMultiEditorAction(( (new MultiEditorAction({
|
|
|
443
443
|
menuOpts: {
|
|
444
444
|
menuId: MenuId.MenubarEditMenu,
|
|
445
445
|
group: '3_find',
|
|
446
|
-
title: ( localize(
|
|
446
|
+
title: ( localize(1400, "&&Find")),
|
|
447
447
|
order: 1
|
|
448
448
|
}
|
|
449
449
|
}))));
|
|
@@ -484,7 +484,7 @@ class StartFindWithArgsAction extends EditorAction {
|
|
|
484
484
|
constructor() {
|
|
485
485
|
super({
|
|
486
486
|
id: FIND_IDS.StartFindWithArgs,
|
|
487
|
-
label: ( localize(
|
|
487
|
+
label: ( localize(1401, "Find With Arguments")),
|
|
488
488
|
alias: 'Find With Arguments',
|
|
489
489
|
precondition: undefined,
|
|
490
490
|
kbOpts: {
|
|
@@ -525,7 +525,7 @@ class StartFindWithSelectionAction extends EditorAction {
|
|
|
525
525
|
constructor() {
|
|
526
526
|
super({
|
|
527
527
|
id: FIND_IDS.StartFindWithSelection,
|
|
528
|
-
label: ( localize(
|
|
528
|
+
label: ( localize(1402, "Find With Selection")),
|
|
529
529
|
alias: 'Find With Selection',
|
|
530
530
|
precondition: undefined,
|
|
531
531
|
kbOpts: {
|
|
@@ -577,7 +577,7 @@ class NextMatchFindAction extends MatchFindAction {
|
|
|
577
577
|
constructor() {
|
|
578
578
|
super({
|
|
579
579
|
id: FIND_IDS.NextMatchFindAction,
|
|
580
|
-
label: ( localize(
|
|
580
|
+
label: ( localize(1403, "Find Next")),
|
|
581
581
|
alias: 'Find Next',
|
|
582
582
|
precondition: undefined,
|
|
583
583
|
kbOpts: [{
|
|
@@ -605,7 +605,7 @@ class PreviousMatchFindAction extends MatchFindAction {
|
|
|
605
605
|
constructor() {
|
|
606
606
|
super({
|
|
607
607
|
id: FIND_IDS.PreviousMatchFindAction,
|
|
608
|
-
label: ( localize(
|
|
608
|
+
label: ( localize(1404, "Find Previous")),
|
|
609
609
|
alias: 'Find Previous',
|
|
610
610
|
precondition: undefined,
|
|
611
611
|
kbOpts: [{
|
|
@@ -629,7 +629,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
629
629
|
constructor() {
|
|
630
630
|
super({
|
|
631
631
|
id: FIND_IDS.GoToMatchFindAction,
|
|
632
|
-
label: ( localize(
|
|
632
|
+
label: ( localize(1405, "Go to Match...")),
|
|
633
633
|
alias: 'Go to Match...',
|
|
634
634
|
precondition: CONTEXT_FIND_WIDGET_VISIBLE
|
|
635
635
|
});
|
|
@@ -645,7 +645,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
645
645
|
const notificationService = accessor.get(INotificationService);
|
|
646
646
|
notificationService.notify({
|
|
647
647
|
severity: Severity$1.Warning,
|
|
648
|
-
message: ( localize(
|
|
648
|
+
message: ( localize(1406, "No matches. Try searching for something else."))
|
|
649
649
|
});
|
|
650
650
|
return;
|
|
651
651
|
}
|
|
@@ -653,7 +653,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
653
653
|
const disposables = ( (new DisposableStore()));
|
|
654
654
|
const inputBox = disposables.add(quickInputService.createInputBox());
|
|
655
655
|
inputBox.placeholder = ( localize(
|
|
656
|
-
|
|
656
|
+
1407,
|
|
657
657
|
"Type a number to go to a specific match (between 1 and {0})",
|
|
658
658
|
matchesCount
|
|
659
659
|
));
|
|
@@ -683,7 +683,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
683
683
|
}
|
|
684
684
|
else {
|
|
685
685
|
inputBox.validationMessage = ( localize(
|
|
686
|
-
|
|
686
|
+
1408,
|
|
687
687
|
"Please type a number between 1 and {0}",
|
|
688
688
|
controller.getState().matchesCount
|
|
689
689
|
));
|
|
@@ -701,7 +701,7 @@ class MoveToMatchFindAction extends EditorAction {
|
|
|
701
701
|
}
|
|
702
702
|
else {
|
|
703
703
|
inputBox.validationMessage = ( localize(
|
|
704
|
-
|
|
704
|
+
1408,
|
|
705
705
|
"Please type a number between 1 and {0}",
|
|
706
706
|
controller.getState().matchesCount
|
|
707
707
|
));
|
|
@@ -772,7 +772,7 @@ class NextSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
772
772
|
constructor() {
|
|
773
773
|
super({
|
|
774
774
|
id: FIND_IDS.NextSelectionMatchFindAction,
|
|
775
|
-
label: ( localize(
|
|
775
|
+
label: ( localize(1409, "Find Next Selection")),
|
|
776
776
|
alias: 'Find Next Selection',
|
|
777
777
|
precondition: undefined,
|
|
778
778
|
kbOpts: {
|
|
@@ -790,7 +790,7 @@ class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
790
790
|
constructor() {
|
|
791
791
|
super({
|
|
792
792
|
id: FIND_IDS.PreviousSelectionMatchFindAction,
|
|
793
|
-
label: ( localize(
|
|
793
|
+
label: ( localize(1410, "Find Previous Selection")),
|
|
794
794
|
alias: 'Find Previous Selection',
|
|
795
795
|
precondition: undefined,
|
|
796
796
|
kbOpts: {
|
|
@@ -806,7 +806,7 @@ class PreviousSelectionMatchFindAction extends SelectionMatchFindAction {
|
|
|
806
806
|
}
|
|
807
807
|
const StartFindReplaceAction = registerMultiEditorAction(( (new MultiEditorAction({
|
|
808
808
|
id: FIND_IDS.StartFindReplaceAction,
|
|
809
|
-
label: ( localize(
|
|
809
|
+
label: ( localize(1411, "Replace")),
|
|
810
810
|
alias: 'Replace',
|
|
811
811
|
precondition: ( (ContextKeyExpr.or(
|
|
812
812
|
EditorContextKeys.focus,
|
|
@@ -821,7 +821,7 @@ const StartFindReplaceAction = registerMultiEditorAction(( (new MultiEditorActio
|
|
|
821
821
|
menuOpts: {
|
|
822
822
|
menuId: MenuId.MenubarEditMenu,
|
|
823
823
|
group: '3_find',
|
|
824
|
-
title: ( localize(
|
|
824
|
+
title: ( localize(1412, "&&Replace")),
|
|
825
825
|
order: 2
|
|
826
826
|
}
|
|
827
827
|
}))));
|