@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
|
@@ -38,32 +38,32 @@ import { isHighContrast } from '../../../../platform/theme/common/theme.js';
|
|
|
38
38
|
import { assertIsDefined } from '../../../../base/common/types.js';
|
|
39
39
|
import { defaultInputBoxStyles, defaultToggleStyles } from '../../../../platform/theme/browser/defaultStyles.js';
|
|
40
40
|
import { createInstantHoverDelegate, getDefaultHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegateFactory.js';
|
|
41
|
-
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, ( localize(
|
|
42
|
-
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, ( localize(
|
|
43
|
-
const findSelectionIcon = registerIcon('find-selection', Codicon.selection, ( localize(
|
|
44
|
-
const findReplaceIcon = registerIcon('find-replace', Codicon.replace, ( localize(
|
|
45
|
-
const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, ( localize(
|
|
46
|
-
const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, ( localize(
|
|
47
|
-
const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, ( localize(
|
|
48
|
-
const NLS_FIND_DIALOG_LABEL = ( localize(
|
|
49
|
-
const NLS_FIND_INPUT_LABEL = ( localize(
|
|
50
|
-
const NLS_FIND_INPUT_PLACEHOLDER = ( localize(
|
|
51
|
-
const NLS_PREVIOUS_MATCH_BTN_LABEL = ( localize(
|
|
52
|
-
const NLS_NEXT_MATCH_BTN_LABEL = ( localize(
|
|
53
|
-
const NLS_TOGGLE_SELECTION_FIND_TITLE = ( localize(
|
|
54
|
-
const NLS_CLOSE_BTN_LABEL = ( localize(
|
|
55
|
-
const NLS_REPLACE_INPUT_LABEL = ( localize(
|
|
56
|
-
const NLS_REPLACE_INPUT_PLACEHOLDER = ( localize(
|
|
57
|
-
const NLS_REPLACE_BTN_LABEL = ( localize(
|
|
58
|
-
const NLS_REPLACE_ALL_BTN_LABEL = ( localize(
|
|
59
|
-
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = ( localize(
|
|
41
|
+
const findCollapsedIcon = registerIcon('find-collapsed', Codicon.chevronRight, ( localize(5033, 'Icon to indicate that the editor find widget is collapsed.')));
|
|
42
|
+
const findExpandedIcon = registerIcon('find-expanded', Codicon.chevronDown, ( localize(5034, 'Icon to indicate that the editor find widget is expanded.')));
|
|
43
|
+
const findSelectionIcon = registerIcon('find-selection', Codicon.selection, ( localize(5035, 'Icon for \'Find in Selection\' in the editor find widget.')));
|
|
44
|
+
const findReplaceIcon = registerIcon('find-replace', Codicon.replace, ( localize(5036, 'Icon for \'Replace\' in the editor find widget.')));
|
|
45
|
+
const findReplaceAllIcon = registerIcon('find-replace-all', Codicon.replaceAll, ( localize(5037, 'Icon for \'Replace All\' in the editor find widget.')));
|
|
46
|
+
const findPreviousMatchIcon = registerIcon('find-previous-match', Codicon.arrowUp, ( localize(5038, 'Icon for \'Find Previous\' in the editor find widget.')));
|
|
47
|
+
const findNextMatchIcon = registerIcon('find-next-match', Codicon.arrowDown, ( localize(5039, 'Icon for \'Find Next\' in the editor find widget.')));
|
|
48
|
+
const NLS_FIND_DIALOG_LABEL = ( localize(5040, "Find / Replace"));
|
|
49
|
+
const NLS_FIND_INPUT_LABEL = ( localize(5041, "Find"));
|
|
50
|
+
const NLS_FIND_INPUT_PLACEHOLDER = ( localize(5042, "Find"));
|
|
51
|
+
const NLS_PREVIOUS_MATCH_BTN_LABEL = ( localize(5043, "Previous Match"));
|
|
52
|
+
const NLS_NEXT_MATCH_BTN_LABEL = ( localize(5044, "Next Match"));
|
|
53
|
+
const NLS_TOGGLE_SELECTION_FIND_TITLE = ( localize(5045, "Find in Selection"));
|
|
54
|
+
const NLS_CLOSE_BTN_LABEL = ( localize(5046, "Close"));
|
|
55
|
+
const NLS_REPLACE_INPUT_LABEL = ( localize(5047, "Replace"));
|
|
56
|
+
const NLS_REPLACE_INPUT_PLACEHOLDER = ( localize(5048, "Replace"));
|
|
57
|
+
const NLS_REPLACE_BTN_LABEL = ( localize(5049, "Replace"));
|
|
58
|
+
const NLS_REPLACE_ALL_BTN_LABEL = ( localize(5050, "Replace All"));
|
|
59
|
+
const NLS_TOGGLE_REPLACE_MODE_BTN_LABEL = ( localize(5051, "Toggle Replace"));
|
|
60
60
|
const NLS_MATCHES_COUNT_LIMIT_TITLE = ( localize(
|
|
61
|
-
|
|
61
|
+
5052,
|
|
62
62
|
"Only the first {0} results are highlighted, but all find operations work on the entire text.",
|
|
63
63
|
MATCHES_LIMIT
|
|
64
64
|
));
|
|
65
|
-
const NLS_MATCHES_LOCATION = ( localize(
|
|
66
|
-
const NLS_NO_RESULTS = ( localize(
|
|
65
|
+
const NLS_MATCHES_LOCATION = ( localize(5053, "{0} of {1}"));
|
|
66
|
+
const NLS_NO_RESULTS = ( localize(5054, "No results"));
|
|
67
67
|
const FIND_WIDGET_INITIAL_WIDTH = 419;
|
|
68
68
|
const PART_WIDTH = 275;
|
|
69
69
|
const FIND_INPUT_AREA_WIDTH = PART_WIDTH - 54;
|
|
@@ -335,12 +335,12 @@ class FindWidget extends Widget {
|
|
|
335
335
|
_getAriaLabel(label, currentMatch, searchString) {
|
|
336
336
|
if (label === NLS_NO_RESULTS) {
|
|
337
337
|
return searchString === ''
|
|
338
|
-
? ( localize(
|
|
339
|
-
: ( localize(
|
|
338
|
+
? ( localize(5055, "{0} found", label))
|
|
339
|
+
: ( localize(5056, "{0} found for '{1}'", label, searchString));
|
|
340
340
|
}
|
|
341
341
|
if (currentMatch) {
|
|
342
342
|
const ariaLabel = ( localize(
|
|
343
|
-
|
|
343
|
+
5057,
|
|
344
344
|
"{0} found for '{1}', at {2}",
|
|
345
345
|
label,
|
|
346
346
|
searchString,
|
|
@@ -353,7 +353,7 @@ class FindWidget extends Widget {
|
|
|
353
353
|
}
|
|
354
354
|
return ariaLabel;
|
|
355
355
|
}
|
|
356
|
-
return ( localize(
|
|
356
|
+
return ( localize(5058, "{0} found for '{1}'", label, searchString));
|
|
357
357
|
}
|
|
358
358
|
_updateToggleSelectionFindButton() {
|
|
359
359
|
const selection = this._codeEditor.getSelection();
|
|
@@ -686,7 +686,7 @@ class FindWidget extends Widget {
|
|
|
686
686
|
else {
|
|
687
687
|
if (isWindows && isNative && !this._ctrlEnterReplaceAllWarningPrompted) {
|
|
688
688
|
this._notificationService.info(( localize(
|
|
689
|
-
|
|
689
|
+
5059,
|
|
690
690
|
'Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.'
|
|
691
691
|
)));
|
|
692
692
|
this._ctrlEnterReplaceAllWarningPrompted = true;
|
|
@@ -5,7 +5,7 @@ class EditorFontZoomIn extends EditorAction {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
super({
|
|
7
7
|
id: 'editor.action.fontZoomIn',
|
|
8
|
-
label: ( localize(
|
|
8
|
+
label: ( localize(1413, "Increase Editor Font Size")),
|
|
9
9
|
alias: 'Increase Editor Font Size',
|
|
10
10
|
precondition: undefined
|
|
11
11
|
});
|
|
@@ -18,7 +18,7 @@ class EditorFontZoomOut extends EditorAction {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: 'editor.action.fontZoomOut',
|
|
21
|
-
label: ( localize(
|
|
21
|
+
label: ( localize(1414, "Decrease Editor Font Size")),
|
|
22
22
|
alias: 'Decrease Editor Font Size',
|
|
23
23
|
precondition: undefined
|
|
24
24
|
});
|
|
@@ -31,7 +31,7 @@ class EditorFontZoomReset extends EditorAction {
|
|
|
31
31
|
constructor() {
|
|
32
32
|
super({
|
|
33
33
|
id: 'editor.action.fontZoomReset',
|
|
34
|
-
label: ( localize(
|
|
34
|
+
label: ( localize(1415, "Reset Editor Font Size")),
|
|
35
35
|
alias: 'Reset Editor Font Size',
|
|
36
36
|
precondition: undefined
|
|
37
37
|
});
|
|
@@ -162,7 +162,7 @@ class FormatDocumentAction extends EditorAction {
|
|
|
162
162
|
constructor() {
|
|
163
163
|
super({
|
|
164
164
|
id: 'editor.action.formatDocument',
|
|
165
|
-
label: ( localize(
|
|
165
|
+
label: ( localize(1416, "Format Document")),
|
|
166
166
|
alias: 'Format Document',
|
|
167
167
|
precondition: ( (ContextKeyExpr.and(
|
|
168
168
|
EditorContextKeys.notInCompositeEditor,
|
|
@@ -193,7 +193,7 @@ class FormatSelectionAction extends EditorAction {
|
|
|
193
193
|
constructor() {
|
|
194
194
|
super({
|
|
195
195
|
id: 'editor.action.formatSelection',
|
|
196
|
-
label: ( localize(
|
|
196
|
+
label: ( localize(1417, "Format Selection")),
|
|
197
197
|
alias: 'Format Selection',
|
|
198
198
|
precondition: ( (ContextKeyExpr.and(
|
|
199
199
|
EditorContextKeys.writable,
|
|
@@ -148,7 +148,7 @@ class MarkerNavigationAction extends EditorAction {
|
|
|
148
148
|
}
|
|
149
149
|
class NextMarkerAction extends MarkerNavigationAction {
|
|
150
150
|
static { this.ID = 'editor.action.marker.next'; }
|
|
151
|
-
static { this.LABEL = ( localize(
|
|
151
|
+
static { this.LABEL = ( localize(1454, "Go to Next Problem (Error, Warning, Info)")); }
|
|
152
152
|
constructor() {
|
|
153
153
|
super(true, false, {
|
|
154
154
|
id: NextMarkerAction.ID,
|
|
@@ -163,7 +163,7 @@ class NextMarkerAction extends MarkerNavigationAction {
|
|
|
163
163
|
menuOpts: {
|
|
164
164
|
menuId: MarkerNavigationWidget.TitleMenu,
|
|
165
165
|
title: NextMarkerAction.LABEL,
|
|
166
|
-
icon: registerIcon('marker-navigation-next', Codicon.arrowDown, ( localize(
|
|
166
|
+
icon: registerIcon('marker-navigation-next', Codicon.arrowDown, ( localize(1455, 'Icon for goto next marker.'))),
|
|
167
167
|
group: 'navigation',
|
|
168
168
|
order: 1
|
|
169
169
|
}
|
|
@@ -172,7 +172,7 @@ class NextMarkerAction extends MarkerNavigationAction {
|
|
|
172
172
|
}
|
|
173
173
|
class PrevMarkerAction extends MarkerNavigationAction {
|
|
174
174
|
static { this.ID = 'editor.action.marker.prev'; }
|
|
175
|
-
static { this.LABEL = ( localize(
|
|
175
|
+
static { this.LABEL = ( localize(1456, "Go to Previous Problem (Error, Warning, Info)")); }
|
|
176
176
|
constructor() {
|
|
177
177
|
super(false, false, {
|
|
178
178
|
id: PrevMarkerAction.ID,
|
|
@@ -187,7 +187,7 @@ class PrevMarkerAction extends MarkerNavigationAction {
|
|
|
187
187
|
menuOpts: {
|
|
188
188
|
menuId: MarkerNavigationWidget.TitleMenu,
|
|
189
189
|
title: PrevMarkerAction.LABEL,
|
|
190
|
-
icon: registerIcon('marker-navigation-previous', Codicon.arrowUp, ( localize(
|
|
190
|
+
icon: registerIcon('marker-navigation-previous', Codicon.arrowUp, ( localize(1457, 'Icon for goto previous marker.'))),
|
|
191
191
|
group: 'navigation',
|
|
192
192
|
order: 2
|
|
193
193
|
}
|
|
@@ -198,7 +198,7 @@ class NextMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
198
198
|
constructor() {
|
|
199
199
|
super(true, true, {
|
|
200
200
|
id: 'editor.action.marker.nextInFiles',
|
|
201
|
-
label: ( localize(
|
|
201
|
+
label: ( localize(1458, "Go to Next Problem in Files (Error, Warning, Info)")),
|
|
202
202
|
alias: 'Go to Next Problem in Files (Error, Warning, Info)',
|
|
203
203
|
precondition: undefined,
|
|
204
204
|
kbOpts: {
|
|
@@ -208,7 +208,7 @@ class NextMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
208
208
|
},
|
|
209
209
|
menuOpts: {
|
|
210
210
|
menuId: MenuId.MenubarGoMenu,
|
|
211
|
-
title: ( localize(
|
|
211
|
+
title: ( localize(1459, "Next &&Problem")),
|
|
212
212
|
group: '6_problem_nav',
|
|
213
213
|
order: 1
|
|
214
214
|
}
|
|
@@ -219,7 +219,7 @@ class PrevMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
219
219
|
constructor() {
|
|
220
220
|
super(false, true, {
|
|
221
221
|
id: 'editor.action.marker.prevInFiles',
|
|
222
|
-
label: ( localize(
|
|
222
|
+
label: ( localize(1460, "Go to Previous Problem in Files (Error, Warning, Info)")),
|
|
223
223
|
alias: 'Go to Previous Problem in Files (Error, Warning, Info)',
|
|
224
224
|
precondition: undefined,
|
|
225
225
|
kbOpts: {
|
|
@@ -229,7 +229,7 @@ class PrevMarkerInFilesAction extends MarkerNavigationAction {
|
|
|
229
229
|
},
|
|
230
230
|
menuOpts: {
|
|
231
231
|
menuId: MenuId.MenubarGoMenu,
|
|
232
|
-
title: ( localize(
|
|
232
|
+
title: ( localize(1461, "Previous &&Problem")),
|
|
233
233
|
group: '6_problem_nav',
|
|
234
234
|
order: 2
|
|
235
235
|
}
|
|
@@ -176,20 +176,20 @@ class MessageWidget {
|
|
|
176
176
|
let severityLabel = '';
|
|
177
177
|
switch (marker.severity) {
|
|
178
178
|
case MarkerSeverity.Error:
|
|
179
|
-
severityLabel = ( localize(
|
|
179
|
+
severityLabel = ( localize(5103, "Error"));
|
|
180
180
|
break;
|
|
181
181
|
case MarkerSeverity.Warning:
|
|
182
|
-
severityLabel = ( localize(
|
|
182
|
+
severityLabel = ( localize(5104, "Warning"));
|
|
183
183
|
break;
|
|
184
184
|
case MarkerSeverity.Info:
|
|
185
|
-
severityLabel = ( localize(
|
|
185
|
+
severityLabel = ( localize(5105, "Info"));
|
|
186
186
|
break;
|
|
187
187
|
case MarkerSeverity.Hint:
|
|
188
|
-
severityLabel = ( localize(
|
|
188
|
+
severityLabel = ( localize(5106, "Hint"));
|
|
189
189
|
break;
|
|
190
190
|
}
|
|
191
191
|
let ariaLabel = ( localize(
|
|
192
|
-
|
|
192
|
+
5107,
|
|
193
193
|
"{0} at {1}. ",
|
|
194
194
|
severityLabel,
|
|
195
195
|
marker.startLineNumber + ':' + marker.startColumn
|
|
@@ -298,8 +298,8 @@ let MarkerNavigationWidget = class MarkerNavigationWidget extends PeekViewWidget
|
|
|
298
298
|
const model = this.editor.getModel();
|
|
299
299
|
if (model) {
|
|
300
300
|
const detail = markerCount > 1
|
|
301
|
-
? ( localize(
|
|
302
|
-
: ( localize(
|
|
301
|
+
? ( localize(5108, "{0} of {1} problems", markerIdx, markerCount))
|
|
302
|
+
: ( localize(5109, "{0} of {1} problem", markerIdx, markerCount));
|
|
303
303
|
this.setTitle(basename(model.uri), detail);
|
|
304
304
|
}
|
|
305
305
|
this._icon.className = `codicon ${SeverityIcon.className(MarkerSeverity.toSeverity(this._severity))}`;
|
|
@@ -341,11 +341,11 @@ MarkerNavigationWidget = MarkerNavigationWidget_1 = ( (__decorate([
|
|
|
341
341
|
const errorDefault = oneOf(editorErrorForeground, editorErrorBorder);
|
|
342
342
|
const warningDefault = oneOf(editorWarningForeground, editorWarningBorder);
|
|
343
343
|
const infoDefault = oneOf(editorInfoForeground, editorInfoBorder);
|
|
344
|
-
const editorMarkerNavigationError = registerColor('editorMarkerNavigationError.background', { dark: errorDefault, light: errorDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(
|
|
345
|
-
const editorMarkerNavigationErrorHeader = registerColor('editorMarkerNavigationError.headerBackground', { dark: ( (transparent(editorMarkerNavigationError, .1))), light: ( (transparent(editorMarkerNavigationError, .1))), hcDark: null, hcLight: null }, ( localize(
|
|
346
|
-
const editorMarkerNavigationWarning = registerColor('editorMarkerNavigationWarning.background', { dark: warningDefault, light: warningDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(
|
|
347
|
-
const editorMarkerNavigationWarningHeader = registerColor('editorMarkerNavigationWarning.headerBackground', { dark: ( (transparent(editorMarkerNavigationWarning, .1))), light: ( (transparent(editorMarkerNavigationWarning, .1))), hcDark: '#0C141F', hcLight: ( (transparent(editorMarkerNavigationWarning, .2))) }, ( localize(
|
|
348
|
-
const editorMarkerNavigationInfo = registerColor('editorMarkerNavigationInfo.background', { dark: infoDefault, light: infoDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(
|
|
349
|
-
const editorMarkerNavigationInfoHeader = registerColor('editorMarkerNavigationInfo.headerBackground', { dark: ( (transparent(editorMarkerNavigationInfo, .1))), light: ( (transparent(editorMarkerNavigationInfo, .1))), hcDark: null, hcLight: null }, ( localize(
|
|
350
|
-
const editorMarkerNavigationBackground = registerColor('editorMarkerNavigation.background', editorBackground, ( localize(
|
|
344
|
+
const editorMarkerNavigationError = registerColor('editorMarkerNavigationError.background', { dark: errorDefault, light: errorDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(5110, 'Editor marker navigation widget error color.')));
|
|
345
|
+
const editorMarkerNavigationErrorHeader = registerColor('editorMarkerNavigationError.headerBackground', { dark: ( (transparent(editorMarkerNavigationError, .1))), light: ( (transparent(editorMarkerNavigationError, .1))), hcDark: null, hcLight: null }, ( localize(5111, 'Editor marker navigation widget error heading background.')));
|
|
346
|
+
const editorMarkerNavigationWarning = registerColor('editorMarkerNavigationWarning.background', { dark: warningDefault, light: warningDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(5112, 'Editor marker navigation widget warning color.')));
|
|
347
|
+
const editorMarkerNavigationWarningHeader = registerColor('editorMarkerNavigationWarning.headerBackground', { dark: ( (transparent(editorMarkerNavigationWarning, .1))), light: ( (transparent(editorMarkerNavigationWarning, .1))), hcDark: '#0C141F', hcLight: ( (transparent(editorMarkerNavigationWarning, .2))) }, ( localize(5113, 'Editor marker navigation widget warning heading background.')));
|
|
348
|
+
const editorMarkerNavigationInfo = registerColor('editorMarkerNavigationInfo.background', { dark: infoDefault, light: infoDefault, hcDark: contrastBorder, hcLight: contrastBorder }, ( localize(5114, 'Editor marker navigation widget info color.')));
|
|
349
|
+
const editorMarkerNavigationInfoHeader = registerColor('editorMarkerNavigationInfo.headerBackground', { dark: ( (transparent(editorMarkerNavigationInfo, .1))), light: ( (transparent(editorMarkerNavigationInfo, .1))), hcDark: null, hcLight: null }, ( localize(5115, 'Editor marker navigation widget info heading background.')));
|
|
350
|
+
const editorMarkerNavigationBackground = registerColor('editorMarkerNavigation.background', editorBackground, ( localize(5116, 'Editor marker navigation widget background.')));
|
|
351
351
|
export { MarkerNavigationWidget };
|
|
@@ -35,7 +35,7 @@ import { Iterable } from '../../../../base/common/iterator.js';
|
|
|
35
35
|
import { IsWebContext } from '../../../../platform/contextkey/common/contextkeys.js';
|
|
36
36
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
37
37
|
submenu: MenuId.EditorContextPeek,
|
|
38
|
-
title: ( localize(
|
|
38
|
+
title: ( localize(1418, "Peek")),
|
|
39
39
|
group: 'navigation',
|
|
40
40
|
order: 100
|
|
41
41
|
});
|
|
@@ -199,14 +199,14 @@ class DefinitionAction extends SymbolNavigationAction {
|
|
|
199
199
|
return (
|
|
200
200
|
(new ReferencesModel(
|
|
201
201
|
await getDefinitionsAtPosition(languageFeaturesService.definitionProvider, model, position, false, token),
|
|
202
|
-
( localize(
|
|
202
|
+
( localize(1419, 'Definitions'))
|
|
203
203
|
))
|
|
204
204
|
);
|
|
205
205
|
}
|
|
206
206
|
_getNoResultFoundMessage(info) {
|
|
207
207
|
return info && info.word
|
|
208
|
-
? ( localize(
|
|
209
|
-
: ( localize(
|
|
208
|
+
? ( localize(1420, "No definition found for '{0}'", info.word))
|
|
209
|
+
: ( localize(1421, "No definition found"));
|
|
210
210
|
}
|
|
211
211
|
_getAlternativeCommand(editor) {
|
|
212
212
|
return editor.getOption(EditorOption.gotoLocation).alternativeDefinitionCommand;
|
|
@@ -225,8 +225,8 @@ registerAction2(class GoToDefinitionAction extends DefinitionAction {
|
|
|
225
225
|
}, {
|
|
226
226
|
id: GoToDefinitionAction.id,
|
|
227
227
|
title: {
|
|
228
|
-
...( localize2(
|
|
229
|
-
mnemonicTitle: ( localize(
|
|
228
|
+
...( localize2(1422, "Go to Definition")),
|
|
229
|
+
mnemonicTitle: ( localize(1423, "Go to &&Definition")),
|
|
230
230
|
},
|
|
231
231
|
precondition: EditorContextKeys.hasDefinitionProvider,
|
|
232
232
|
keybinding: [{
|
|
@@ -261,7 +261,7 @@ registerAction2(class OpenDefinitionToSideAction extends DefinitionAction {
|
|
|
261
261
|
muteMessage: false
|
|
262
262
|
}, {
|
|
263
263
|
id: OpenDefinitionToSideAction.id,
|
|
264
|
-
title: ( localize2(
|
|
264
|
+
title: ( localize2(1424, "Open Definition to the Side")),
|
|
265
265
|
precondition: ( (ContextKeyExpr.and(
|
|
266
266
|
EditorContextKeys.hasDefinitionProvider,
|
|
267
267
|
(EditorContextKeys.isInEmbeddedEditor.toNegated())
|
|
@@ -288,7 +288,7 @@ registerAction2(class PeekDefinitionAction extends DefinitionAction {
|
|
|
288
288
|
muteMessage: false
|
|
289
289
|
}, {
|
|
290
290
|
id: PeekDefinitionAction.id,
|
|
291
|
-
title: ( localize2(
|
|
291
|
+
title: ( localize2(1425, "Peek Definition")),
|
|
292
292
|
precondition: ( (ContextKeyExpr.and(
|
|
293
293
|
EditorContextKeys.hasDefinitionProvider,
|
|
294
294
|
PeekContext.notInPeekEditor,
|
|
@@ -314,14 +314,14 @@ class DeclarationAction extends SymbolNavigationAction {
|
|
|
314
314
|
return (
|
|
315
315
|
(new ReferencesModel(
|
|
316
316
|
await getDeclarationsAtPosition(languageFeaturesService.declarationProvider, model, position, false, token),
|
|
317
|
-
( localize(
|
|
317
|
+
( localize(1426, 'Declarations'))
|
|
318
318
|
))
|
|
319
319
|
);
|
|
320
320
|
}
|
|
321
321
|
_getNoResultFoundMessage(info) {
|
|
322
322
|
return info && info.word
|
|
323
|
-
? ( localize(
|
|
324
|
-
: ( localize(
|
|
323
|
+
? ( localize(1427, "No declaration found for '{0}'", info.word))
|
|
324
|
+
: ( localize(1428, "No declaration found"));
|
|
325
325
|
}
|
|
326
326
|
_getAlternativeCommand(editor) {
|
|
327
327
|
return editor.getOption(EditorOption.gotoLocation).alternativeDeclarationCommand;
|
|
@@ -340,8 +340,8 @@ registerAction2(class GoToDeclarationAction extends DeclarationAction {
|
|
|
340
340
|
}, {
|
|
341
341
|
id: GoToDeclarationAction.id,
|
|
342
342
|
title: {
|
|
343
|
-
...( localize2(
|
|
344
|
-
mnemonicTitle: ( localize(
|
|
343
|
+
...( localize2(1429, "Go to Declaration")),
|
|
344
|
+
mnemonicTitle: ( localize(1430, "Go to &&Declaration")),
|
|
345
345
|
},
|
|
346
346
|
precondition: ( (ContextKeyExpr.and(
|
|
347
347
|
EditorContextKeys.hasDeclarationProvider,
|
|
@@ -361,8 +361,8 @@ registerAction2(class GoToDeclarationAction extends DeclarationAction {
|
|
|
361
361
|
}
|
|
362
362
|
_getNoResultFoundMessage(info) {
|
|
363
363
|
return info && info.word
|
|
364
|
-
? ( localize(
|
|
365
|
-
: ( localize(
|
|
364
|
+
? ( localize(1427, "No declaration found for '{0}'", info.word))
|
|
365
|
+
: ( localize(1428, "No declaration found"));
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
368
|
registerAction2(class PeekDeclarationAction extends DeclarationAction {
|
|
@@ -373,7 +373,7 @@ registerAction2(class PeekDeclarationAction extends DeclarationAction {
|
|
|
373
373
|
muteMessage: false
|
|
374
374
|
}, {
|
|
375
375
|
id: 'editor.action.peekDeclaration',
|
|
376
|
-
title: ( localize2(
|
|
376
|
+
title: ( localize2(1431, "Peek Declaration")),
|
|
377
377
|
precondition: ( (ContextKeyExpr.and(
|
|
378
378
|
EditorContextKeys.hasDeclarationProvider,
|
|
379
379
|
PeekContext.notInPeekEditor,
|
|
@@ -392,14 +392,14 @@ class TypeDefinitionAction extends SymbolNavigationAction {
|
|
|
392
392
|
return (
|
|
393
393
|
(new ReferencesModel(
|
|
394
394
|
await getTypeDefinitionsAtPosition(languageFeaturesService.typeDefinitionProvider, model, position, false, token),
|
|
395
|
-
( localize(
|
|
395
|
+
( localize(1432, 'Type Definitions'))
|
|
396
396
|
))
|
|
397
397
|
);
|
|
398
398
|
}
|
|
399
399
|
_getNoResultFoundMessage(info) {
|
|
400
400
|
return info && info.word
|
|
401
|
-
? ( localize(
|
|
402
|
-
: ( localize(
|
|
401
|
+
? ( localize(1433, "No type definition found for '{0}'", info.word))
|
|
402
|
+
: ( localize(1434, "No type definition found"));
|
|
403
403
|
}
|
|
404
404
|
_getAlternativeCommand(editor) {
|
|
405
405
|
return editor.getOption(EditorOption.gotoLocation).alternativeTypeDefinitionCommand;
|
|
@@ -418,8 +418,8 @@ registerAction2(class GoToTypeDefinitionAction extends TypeDefinitionAction {
|
|
|
418
418
|
}, {
|
|
419
419
|
id: GoToTypeDefinitionAction.ID,
|
|
420
420
|
title: {
|
|
421
|
-
...( localize2(
|
|
422
|
-
mnemonicTitle: ( localize(
|
|
421
|
+
...( localize2(1435, "Go to Type Definition")),
|
|
422
|
+
mnemonicTitle: ( localize(1436, "Go to &&Type Definition")),
|
|
423
423
|
},
|
|
424
424
|
precondition: EditorContextKeys.hasTypeDefinitionProvider,
|
|
425
425
|
keybinding: {
|
|
@@ -449,7 +449,7 @@ registerAction2(class PeekTypeDefinitionAction extends TypeDefinitionAction {
|
|
|
449
449
|
muteMessage: false
|
|
450
450
|
}, {
|
|
451
451
|
id: PeekTypeDefinitionAction.ID,
|
|
452
|
-
title: ( localize2(
|
|
452
|
+
title: ( localize2(1437, "Peek Type Definition")),
|
|
453
453
|
precondition: ( (ContextKeyExpr.and(
|
|
454
454
|
EditorContextKeys.hasTypeDefinitionProvider,
|
|
455
455
|
PeekContext.notInPeekEditor,
|
|
@@ -468,14 +468,14 @@ class ImplementationAction extends SymbolNavigationAction {
|
|
|
468
468
|
return (
|
|
469
469
|
(new ReferencesModel(
|
|
470
470
|
await getImplementationsAtPosition(languageFeaturesService.implementationProvider, model, position, false, token),
|
|
471
|
-
( localize(
|
|
471
|
+
( localize(1438, 'Implementations'))
|
|
472
472
|
))
|
|
473
473
|
);
|
|
474
474
|
}
|
|
475
475
|
_getNoResultFoundMessage(info) {
|
|
476
476
|
return info && info.word
|
|
477
|
-
? ( localize(
|
|
478
|
-
: ( localize(
|
|
477
|
+
? ( localize(1439, "No implementation found for '{0}'", info.word))
|
|
478
|
+
: ( localize(1440, "No implementation found"));
|
|
479
479
|
}
|
|
480
480
|
_getAlternativeCommand(editor) {
|
|
481
481
|
return editor.getOption(EditorOption.gotoLocation).alternativeImplementationCommand;
|
|
@@ -494,8 +494,8 @@ registerAction2(class GoToImplementationAction extends ImplementationAction {
|
|
|
494
494
|
}, {
|
|
495
495
|
id: GoToImplementationAction.ID,
|
|
496
496
|
title: {
|
|
497
|
-
...( localize2(
|
|
498
|
-
mnemonicTitle: ( localize(
|
|
497
|
+
...( localize2(1441, "Go to Implementations")),
|
|
498
|
+
mnemonicTitle: ( localize(1442, "Go to &&Implementations")),
|
|
499
499
|
},
|
|
500
500
|
precondition: EditorContextKeys.hasImplementationProvider,
|
|
501
501
|
keybinding: {
|
|
@@ -525,7 +525,7 @@ registerAction2(class PeekImplementationAction extends ImplementationAction {
|
|
|
525
525
|
muteMessage: false
|
|
526
526
|
}, {
|
|
527
527
|
id: PeekImplementationAction.ID,
|
|
528
|
-
title: ( localize2(
|
|
528
|
+
title: ( localize2(1443, "Peek Implementations")),
|
|
529
529
|
precondition: ( (ContextKeyExpr.and(
|
|
530
530
|
EditorContextKeys.hasImplementationProvider,
|
|
531
531
|
PeekContext.notInPeekEditor,
|
|
@@ -547,8 +547,8 @@ registerAction2(class PeekImplementationAction extends ImplementationAction {
|
|
|
547
547
|
class ReferencesAction extends SymbolNavigationAction {
|
|
548
548
|
_getNoResultFoundMessage(info) {
|
|
549
549
|
return info
|
|
550
|
-
? ( localize(
|
|
551
|
-
: ( localize(
|
|
550
|
+
? ( localize(1444, "No references found for '{0}'", info.word))
|
|
551
|
+
: ( localize(1445, "No references found"));
|
|
552
552
|
}
|
|
553
553
|
_getAlternativeCommand(editor) {
|
|
554
554
|
return editor.getOption(EditorOption.gotoLocation).alternativeReferenceCommand;
|
|
@@ -566,8 +566,8 @@ registerAction2(class GoToReferencesAction extends ReferencesAction {
|
|
|
566
566
|
}, {
|
|
567
567
|
id: 'editor.action.goToReferences',
|
|
568
568
|
title: {
|
|
569
|
-
...( localize2(
|
|
570
|
-
mnemonicTitle: ( localize(
|
|
569
|
+
...( localize2(1446, "Go to References")),
|
|
570
|
+
mnemonicTitle: ( localize(1447, "Go to &&References")),
|
|
571
571
|
},
|
|
572
572
|
precondition: ( (ContextKeyExpr.and(
|
|
573
573
|
EditorContextKeys.hasReferenceProvider,
|
|
@@ -595,7 +595,7 @@ registerAction2(class GoToReferencesAction extends ReferencesAction {
|
|
|
595
595
|
return (
|
|
596
596
|
(new ReferencesModel(
|
|
597
597
|
await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, true, false, token),
|
|
598
|
-
( localize(
|
|
598
|
+
( localize(1448, 'References'))
|
|
599
599
|
))
|
|
600
600
|
);
|
|
601
601
|
}
|
|
@@ -608,7 +608,7 @@ registerAction2(class PeekReferencesAction extends ReferencesAction {
|
|
|
608
608
|
muteMessage: false
|
|
609
609
|
}, {
|
|
610
610
|
id: 'editor.action.referenceSearch.trigger',
|
|
611
|
-
title: ( localize2(
|
|
611
|
+
title: ( localize2(1449, "Peek References")),
|
|
612
612
|
precondition: ( (ContextKeyExpr.and(
|
|
613
613
|
EditorContextKeys.hasReferenceProvider,
|
|
614
614
|
PeekContext.notInPeekEditor,
|
|
@@ -625,7 +625,7 @@ registerAction2(class PeekReferencesAction extends ReferencesAction {
|
|
|
625
625
|
return (
|
|
626
626
|
(new ReferencesModel(
|
|
627
627
|
await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, false, false, token),
|
|
628
|
-
( localize(
|
|
628
|
+
( localize(1448, 'References'))
|
|
629
629
|
))
|
|
630
630
|
);
|
|
631
631
|
}
|
|
@@ -634,7 +634,7 @@ class GenericGoToLocationAction extends SymbolNavigationAction {
|
|
|
634
634
|
constructor(config, _references, _gotoMultipleBehaviour) {
|
|
635
635
|
super(config, {
|
|
636
636
|
id: 'editor.action.goToLocation',
|
|
637
|
-
title: ( localize2(
|
|
637
|
+
title: ( localize2(1450, "Go to Any Symbol")),
|
|
638
638
|
precondition: ( (ContextKeyExpr.and(
|
|
639
639
|
PeekContext.notInPeekEditor,
|
|
640
640
|
(EditorContextKeys.isInEmbeddedEditor.toNegated())
|
|
@@ -645,11 +645,11 @@ class GenericGoToLocationAction extends SymbolNavigationAction {
|
|
|
645
645
|
}
|
|
646
646
|
async _getLocationModel(languageFeaturesService, _model, _position, _token) {
|
|
647
647
|
return (
|
|
648
|
-
(new ReferencesModel(this._references, ( localize(
|
|
648
|
+
(new ReferencesModel(this._references, ( localize(1451, 'Locations'))))
|
|
649
649
|
);
|
|
650
650
|
}
|
|
651
651
|
_getNoResultFoundMessage(info) {
|
|
652
|
-
return info && ( localize(
|
|
652
|
+
return info && ( localize(1452, "No results for '{0}'", info.word)) || '';
|
|
653
653
|
}
|
|
654
654
|
_getGoToPreference(editor) {
|
|
655
655
|
return this._gotoMultipleBehaviour ?? editor.getOption(EditorOption.gotoLocation).multipleReferences;
|
|
@@ -724,7 +724,7 @@ CommandsRegistry.registerCommand({
|
|
|
724
724
|
if (!controller) {
|
|
725
725
|
return undefined;
|
|
726
726
|
}
|
|
727
|
-
const references = createCancelablePromise(token => getReferencesAtPosition(languageFeaturesService.referenceProvider, control.getModel(), Position.lift(position), false, false, token).then(references => ( (new ReferencesModel(references, ( localize(
|
|
727
|
+
const references = createCancelablePromise(token => getReferencesAtPosition(languageFeaturesService.referenceProvider, control.getModel(), Position.lift(position), false, false, token).then(references => ( (new ReferencesModel(references, ( localize(1448, 'References')))))));
|
|
728
728
|
const range = ( (new Range(position.lineNumber, position.column, position.lineNumber, position.column)));
|
|
729
729
|
return Promise.resolve(controller.toggleWidget(range, references, false));
|
|
730
730
|
});
|
|
@@ -128,7 +128,7 @@ let GotoDefinitionAtPositionEditorContribution = class GotoDefinitionAtPositionE
|
|
|
128
128
|
combinedRange = Range.plusRange(combinedRange, originSelectionRange);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
this.addDecoration(combinedRange, ( (new MarkdownString())).appendText(( localize(
|
|
131
|
+
this.addDecoration(combinedRange, ( (new MarkdownString())).appendText(( localize(1453, "Click to show {0} definitions.", results.length))));
|
|
132
132
|
}
|
|
133
133
|
else {
|
|
134
134
|
const result = results[0];
|
|
@@ -27,7 +27,7 @@ import { EditorContextKeys } from '../../../../common/editorContextKeys.js';
|
|
|
27
27
|
import { InputFocusedContext } from '../../../../../platform/contextkey/common/contextkeys.js';
|
|
28
28
|
var ReferencesController_1;
|
|
29
29
|
const ctxReferenceSearchVisible = ( (new RawContextKey('referenceSearchVisible', false, ( localize(
|
|
30
|
-
|
|
30
|
+
4452,
|
|
31
31
|
"Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"
|
|
32
32
|
)))));
|
|
33
33
|
let ReferencesController = class ReferencesController {
|
|
@@ -77,7 +77,7 @@ let ReferencesController = class ReferencesController {
|
|
|
77
77
|
const storageKey = 'peekViewLayout';
|
|
78
78
|
const data = LayoutData.fromJSON(this._storageService.get(storageKey, StorageScope.PROFILE, '{}'));
|
|
79
79
|
this._widget = this._instantiationService.createInstance(ReferenceWidget, this._editor, this._defaultTreeKeyboardSupport, data);
|
|
80
|
-
this._widget.setTitle(( localize(
|
|
80
|
+
this._widget.setTitle(( localize(4453, "Loading...")));
|
|
81
81
|
this._widget.show(range);
|
|
82
82
|
this._disposables.add(this._widget.onDidClose(() => {
|
|
83
83
|
modelPromise.cancel();
|
|
@@ -127,7 +127,7 @@ let ReferencesController = class ReferencesController {
|
|
|
127
127
|
return this._widget.setModel(this._model).then(() => {
|
|
128
128
|
if (this._widget && this._model && this._editor.hasModel()) {
|
|
129
129
|
if (!this._model.isEmpty) {
|
|
130
|
-
this._widget.setMetaTitle(( localize(
|
|
130
|
+
this._widget.setMetaTitle(( localize(4454, "{0} ({1})", this._model.title, this._model.references.length)));
|
|
131
131
|
}
|
|
132
132
|
else {
|
|
133
133
|
this._widget.setMetaTitle('');
|
|
@@ -30,7 +30,7 @@ class OneReference {
|
|
|
30
30
|
const preview = this.parent.getPreview(this)?.preview(this.range);
|
|
31
31
|
if (!preview) {
|
|
32
32
|
return ( localize(
|
|
33
|
-
|
|
33
|
+
5074,
|
|
34
34
|
"in {0} on line {1} at column {2}",
|
|
35
35
|
basename(this.uri),
|
|
36
36
|
this.range.startLineNumber,
|
|
@@ -39,7 +39,7 @@ class OneReference {
|
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
41
|
return ( localize(
|
|
42
|
-
|
|
42
|
+
5075,
|
|
43
43
|
"{0} in {1} on line {2} at column {3}",
|
|
44
44
|
preview.value,
|
|
45
45
|
basename(this.uri),
|
|
@@ -92,7 +92,7 @@ class FileReferences {
|
|
|
92
92
|
const len = this.children.length;
|
|
93
93
|
if (len === 1) {
|
|
94
94
|
return ( localize(
|
|
95
|
-
|
|
95
|
+
5076,
|
|
96
96
|
"1 symbol in {0}, full path {1}",
|
|
97
97
|
basename(this.uri),
|
|
98
98
|
this.uri.fsPath
|
|
@@ -100,7 +100,7 @@ class FileReferences {
|
|
|
100
100
|
}
|
|
101
101
|
else {
|
|
102
102
|
return ( localize(
|
|
103
|
-
|
|
103
|
+
5077,
|
|
104
104
|
"{0} symbols in {1}, full path {2}",
|
|
105
105
|
len,
|
|
106
106
|
basename(this.uri),
|
|
@@ -173,14 +173,14 @@ class ReferencesModel {
|
|
|
173
173
|
}
|
|
174
174
|
get ariaMessage() {
|
|
175
175
|
if (this.isEmpty) {
|
|
176
|
-
return ( localize(
|
|
176
|
+
return ( localize(5078, "No results found"));
|
|
177
177
|
}
|
|
178
178
|
else if (this.references.length === 1) {
|
|
179
|
-
return ( localize(
|
|
179
|
+
return ( localize(5079, "Found 1 symbol in {0}", this.references[0].uri.fsPath));
|
|
180
180
|
}
|
|
181
181
|
else if (this.groups.length === 1) {
|
|
182
182
|
return ( localize(
|
|
183
|
-
|
|
183
|
+
5080,
|
|
184
184
|
"Found {0} symbols in {1}",
|
|
185
185
|
this.references.length,
|
|
186
186
|
this.groups[0].uri.fsPath
|
|
@@ -188,7 +188,7 @@ class ReferencesModel {
|
|
|
188
188
|
}
|
|
189
189
|
else {
|
|
190
190
|
return ( localize(
|
|
191
|
-
|
|
191
|
+
5081,
|
|
192
192
|
"Found {0} symbols in {1} files",
|
|
193
193
|
this.references.length,
|
|
194
194
|
this.groups.length
|