@codingame/monaco-vscode-api 10.1.3 → 10.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -3
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
- package/vscode/src/vs/editor/common/config/editorOptions.js +368 -368
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +28 -28
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +7 -7
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +1 -1
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +27 -27
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +14 -14
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +16 -16
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +3 -3
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +15 -15
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +18 -18
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +4 -4
- package/vscode/src/vs/workbench/browser/window.js +16 -16
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -13
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +10 -10
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +34 -34
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +21 -21
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +3 -3
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/activity/common/activity.js +4 -4
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
|
@@ -31,7 +31,7 @@ import { Iterable } from '../../../../base/common/iterator.js';
|
|
|
31
31
|
import { IsWebContext } from '../../../../platform/contextkey/common/contextkeys.js';
|
|
32
32
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
33
33
|
submenu: MenuId.EditorContextPeek,
|
|
34
|
-
title: ( localize(
|
|
34
|
+
title: ( localize(1258, "Peek")),
|
|
35
35
|
group: 'navigation',
|
|
36
36
|
order: 100
|
|
37
37
|
});
|
|
@@ -198,14 +198,14 @@ class DefinitionAction extends SymbolNavigationAction {
|
|
|
198
198
|
return (
|
|
199
199
|
(new ReferencesModel(
|
|
200
200
|
await getDefinitionsAtPosition(languageFeaturesService.definitionProvider, model, position, false, token),
|
|
201
|
-
( localize(
|
|
201
|
+
( localize(1259, 'Definitions'))
|
|
202
202
|
))
|
|
203
203
|
);
|
|
204
204
|
}
|
|
205
205
|
_getNoResultFoundMessage(info) {
|
|
206
206
|
return info && info.word
|
|
207
|
-
? ( localize(
|
|
208
|
-
: ( localize(
|
|
207
|
+
? ( localize(1260, "No definition found for '{0}'", info.word))
|
|
208
|
+
: ( localize(1261, "No definition found"));
|
|
209
209
|
}
|
|
210
210
|
_getAlternativeCommand(editor) {
|
|
211
211
|
return editor.getOption(60 ).alternativeDefinitionCommand;
|
|
@@ -224,8 +224,8 @@ registerAction2(class GoToDefinitionAction extends DefinitionAction {
|
|
|
224
224
|
}, {
|
|
225
225
|
id: GoToDefinitionAction.id,
|
|
226
226
|
title: {
|
|
227
|
-
...( localize2(
|
|
228
|
-
mnemonicTitle: ( localize(
|
|
227
|
+
...( localize2(1262, "Go to Definition")),
|
|
228
|
+
mnemonicTitle: ( localize(1263, "Go to &&Definition")),
|
|
229
229
|
},
|
|
230
230
|
precondition: EditorContextKeys.hasDefinitionProvider,
|
|
231
231
|
keybinding: [{
|
|
@@ -260,7 +260,7 @@ registerAction2(class OpenDefinitionToSideAction extends DefinitionAction {
|
|
|
260
260
|
muteMessage: false
|
|
261
261
|
}, {
|
|
262
262
|
id: OpenDefinitionToSideAction.id,
|
|
263
|
-
title: ( localize2(
|
|
263
|
+
title: ( localize2(1264, "Open Definition to the Side")),
|
|
264
264
|
precondition: ( (ContextKeyExpr.and(
|
|
265
265
|
EditorContextKeys.hasDefinitionProvider,
|
|
266
266
|
(EditorContextKeys.isInEmbeddedEditor.toNegated())
|
|
@@ -287,7 +287,7 @@ registerAction2(class PeekDefinitionAction extends DefinitionAction {
|
|
|
287
287
|
muteMessage: false
|
|
288
288
|
}, {
|
|
289
289
|
id: PeekDefinitionAction.id,
|
|
290
|
-
title: ( localize2(
|
|
290
|
+
title: ( localize2(1265, "Peek Definition")),
|
|
291
291
|
precondition: ( (ContextKeyExpr.and(
|
|
292
292
|
EditorContextKeys.hasDefinitionProvider,
|
|
293
293
|
PeekContext.notInPeekEditor,
|
|
@@ -313,14 +313,14 @@ class DeclarationAction extends SymbolNavigationAction {
|
|
|
313
313
|
return (
|
|
314
314
|
(new ReferencesModel(
|
|
315
315
|
await getDeclarationsAtPosition(languageFeaturesService.declarationProvider, model, position, false, token),
|
|
316
|
-
( localize(
|
|
316
|
+
( localize(1266, 'Declarations'))
|
|
317
317
|
))
|
|
318
318
|
);
|
|
319
319
|
}
|
|
320
320
|
_getNoResultFoundMessage(info) {
|
|
321
321
|
return info && info.word
|
|
322
|
-
? ( localize(
|
|
323
|
-
: ( localize(
|
|
322
|
+
? ( localize(1267, "No declaration found for '{0}'", info.word))
|
|
323
|
+
: ( localize(1268, "No declaration found"));
|
|
324
324
|
}
|
|
325
325
|
_getAlternativeCommand(editor) {
|
|
326
326
|
return editor.getOption(60 ).alternativeDeclarationCommand;
|
|
@@ -339,8 +339,8 @@ registerAction2(class GoToDeclarationAction extends DeclarationAction {
|
|
|
339
339
|
}, {
|
|
340
340
|
id: GoToDeclarationAction.id,
|
|
341
341
|
title: {
|
|
342
|
-
...( localize2(
|
|
343
|
-
mnemonicTitle: ( localize(
|
|
342
|
+
...( localize2(1269, "Go to Declaration")),
|
|
343
|
+
mnemonicTitle: ( localize(1270, "Go to &&Declaration")),
|
|
344
344
|
},
|
|
345
345
|
precondition: ( (ContextKeyExpr.and(
|
|
346
346
|
EditorContextKeys.hasDeclarationProvider,
|
|
@@ -360,8 +360,8 @@ registerAction2(class GoToDeclarationAction extends DeclarationAction {
|
|
|
360
360
|
}
|
|
361
361
|
_getNoResultFoundMessage(info) {
|
|
362
362
|
return info && info.word
|
|
363
|
-
? ( localize(
|
|
364
|
-
: ( localize(
|
|
363
|
+
? ( localize(1267, "No declaration found for '{0}'", info.word))
|
|
364
|
+
: ( localize(1268, "No declaration found"));
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
367
|
registerAction2(class PeekDeclarationAction extends DeclarationAction {
|
|
@@ -372,7 +372,7 @@ registerAction2(class PeekDeclarationAction extends DeclarationAction {
|
|
|
372
372
|
muteMessage: false
|
|
373
373
|
}, {
|
|
374
374
|
id: 'editor.action.peekDeclaration',
|
|
375
|
-
title: ( localize2(
|
|
375
|
+
title: ( localize2(1271, "Peek Declaration")),
|
|
376
376
|
precondition: ( (ContextKeyExpr.and(
|
|
377
377
|
EditorContextKeys.hasDeclarationProvider,
|
|
378
378
|
PeekContext.notInPeekEditor,
|
|
@@ -391,14 +391,14 @@ class TypeDefinitionAction extends SymbolNavigationAction {
|
|
|
391
391
|
return (
|
|
392
392
|
(new ReferencesModel(
|
|
393
393
|
await getTypeDefinitionsAtPosition(languageFeaturesService.typeDefinitionProvider, model, position, false, token),
|
|
394
|
-
( localize(
|
|
394
|
+
( localize(1272, 'Type Definitions'))
|
|
395
395
|
))
|
|
396
396
|
);
|
|
397
397
|
}
|
|
398
398
|
_getNoResultFoundMessage(info) {
|
|
399
399
|
return info && info.word
|
|
400
|
-
? ( localize(
|
|
401
|
-
: ( localize(
|
|
400
|
+
? ( localize(1273, "No type definition found for '{0}'", info.word))
|
|
401
|
+
: ( localize(1274, "No type definition found"));
|
|
402
402
|
}
|
|
403
403
|
_getAlternativeCommand(editor) {
|
|
404
404
|
return editor.getOption(60 ).alternativeTypeDefinitionCommand;
|
|
@@ -417,8 +417,8 @@ registerAction2(class GoToTypeDefinitionAction extends TypeDefinitionAction {
|
|
|
417
417
|
}, {
|
|
418
418
|
id: GoToTypeDefinitionAction.ID,
|
|
419
419
|
title: {
|
|
420
|
-
...( localize2(
|
|
421
|
-
mnemonicTitle: ( localize(
|
|
420
|
+
...( localize2(1275, "Go to Type Definition")),
|
|
421
|
+
mnemonicTitle: ( localize(1276, "Go to &&Type Definition")),
|
|
422
422
|
},
|
|
423
423
|
precondition: EditorContextKeys.hasTypeDefinitionProvider,
|
|
424
424
|
keybinding: {
|
|
@@ -448,7 +448,7 @@ registerAction2(class PeekTypeDefinitionAction extends TypeDefinitionAction {
|
|
|
448
448
|
muteMessage: false
|
|
449
449
|
}, {
|
|
450
450
|
id: PeekTypeDefinitionAction.ID,
|
|
451
|
-
title: ( localize2(
|
|
451
|
+
title: ( localize2(1277, "Peek Type Definition")),
|
|
452
452
|
precondition: ( (ContextKeyExpr.and(
|
|
453
453
|
EditorContextKeys.hasTypeDefinitionProvider,
|
|
454
454
|
PeekContext.notInPeekEditor,
|
|
@@ -467,14 +467,14 @@ class ImplementationAction extends SymbolNavigationAction {
|
|
|
467
467
|
return (
|
|
468
468
|
(new ReferencesModel(
|
|
469
469
|
await getImplementationsAtPosition(languageFeaturesService.implementationProvider, model, position, false, token),
|
|
470
|
-
( localize(
|
|
470
|
+
( localize(1278, 'Implementations'))
|
|
471
471
|
))
|
|
472
472
|
);
|
|
473
473
|
}
|
|
474
474
|
_getNoResultFoundMessage(info) {
|
|
475
475
|
return info && info.word
|
|
476
|
-
? ( localize(
|
|
477
|
-
: ( localize(
|
|
476
|
+
? ( localize(1279, "No implementation found for '{0}'", info.word))
|
|
477
|
+
: ( localize(1280, "No implementation found"));
|
|
478
478
|
}
|
|
479
479
|
_getAlternativeCommand(editor) {
|
|
480
480
|
return editor.getOption(60 ).alternativeImplementationCommand;
|
|
@@ -493,8 +493,8 @@ registerAction2(class GoToImplementationAction extends ImplementationAction {
|
|
|
493
493
|
}, {
|
|
494
494
|
id: GoToImplementationAction.ID,
|
|
495
495
|
title: {
|
|
496
|
-
...( localize2(
|
|
497
|
-
mnemonicTitle: ( localize(
|
|
496
|
+
...( localize2(1281, "Go to Implementations")),
|
|
497
|
+
mnemonicTitle: ( localize(1282, "Go to &&Implementations")),
|
|
498
498
|
},
|
|
499
499
|
precondition: EditorContextKeys.hasImplementationProvider,
|
|
500
500
|
keybinding: {
|
|
@@ -524,7 +524,7 @@ registerAction2(class PeekImplementationAction extends ImplementationAction {
|
|
|
524
524
|
muteMessage: false
|
|
525
525
|
}, {
|
|
526
526
|
id: PeekImplementationAction.ID,
|
|
527
|
-
title: ( localize2(
|
|
527
|
+
title: ( localize2(1283, "Peek Implementations")),
|
|
528
528
|
precondition: ( (ContextKeyExpr.and(
|
|
529
529
|
EditorContextKeys.hasImplementationProvider,
|
|
530
530
|
PeekContext.notInPeekEditor,
|
|
@@ -546,8 +546,8 @@ registerAction2(class PeekImplementationAction extends ImplementationAction {
|
|
|
546
546
|
class ReferencesAction extends SymbolNavigationAction {
|
|
547
547
|
_getNoResultFoundMessage(info) {
|
|
548
548
|
return info
|
|
549
|
-
? ( localize(
|
|
550
|
-
: ( localize(
|
|
549
|
+
? ( localize(1284, "No references found for '{0}'", info.word))
|
|
550
|
+
: ( localize(1285, "No references found"));
|
|
551
551
|
}
|
|
552
552
|
_getAlternativeCommand(editor) {
|
|
553
553
|
return editor.getOption(60 ).alternativeReferenceCommand;
|
|
@@ -565,8 +565,8 @@ registerAction2(class GoToReferencesAction extends ReferencesAction {
|
|
|
565
565
|
}, {
|
|
566
566
|
id: 'editor.action.goToReferences',
|
|
567
567
|
title: {
|
|
568
|
-
...( localize2(
|
|
569
|
-
mnemonicTitle: ( localize(
|
|
568
|
+
...( localize2(1286, "Go to References")),
|
|
569
|
+
mnemonicTitle: ( localize(1287, "Go to &&References")),
|
|
570
570
|
},
|
|
571
571
|
precondition: ( (ContextKeyExpr.and(
|
|
572
572
|
EditorContextKeys.hasReferenceProvider,
|
|
@@ -594,7 +594,7 @@ registerAction2(class GoToReferencesAction extends ReferencesAction {
|
|
|
594
594
|
return (
|
|
595
595
|
(new ReferencesModel(
|
|
596
596
|
await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, true, false, token),
|
|
597
|
-
( localize(
|
|
597
|
+
( localize(1288, 'References'))
|
|
598
598
|
))
|
|
599
599
|
);
|
|
600
600
|
}
|
|
@@ -607,7 +607,7 @@ registerAction2(class PeekReferencesAction extends ReferencesAction {
|
|
|
607
607
|
muteMessage: false
|
|
608
608
|
}, {
|
|
609
609
|
id: 'editor.action.referenceSearch.trigger',
|
|
610
|
-
title: ( localize2(
|
|
610
|
+
title: ( localize2(1289, "Peek References")),
|
|
611
611
|
precondition: ( (ContextKeyExpr.and(
|
|
612
612
|
EditorContextKeys.hasReferenceProvider,
|
|
613
613
|
PeekContext.notInPeekEditor,
|
|
@@ -624,7 +624,7 @@ registerAction2(class PeekReferencesAction extends ReferencesAction {
|
|
|
624
624
|
return (
|
|
625
625
|
(new ReferencesModel(
|
|
626
626
|
await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, false, false, token),
|
|
627
|
-
( localize(
|
|
627
|
+
( localize(1288, 'References'))
|
|
628
628
|
))
|
|
629
629
|
);
|
|
630
630
|
}
|
|
@@ -633,7 +633,7 @@ class GenericGoToLocationAction extends SymbolNavigationAction {
|
|
|
633
633
|
constructor(config, _references, _gotoMultipleBehaviour) {
|
|
634
634
|
super(config, {
|
|
635
635
|
id: 'editor.action.goToLocation',
|
|
636
|
-
title: ( localize2(
|
|
636
|
+
title: ( localize2(1290, "Go to Any Symbol")),
|
|
637
637
|
precondition: ( (ContextKeyExpr.and(
|
|
638
638
|
PeekContext.notInPeekEditor,
|
|
639
639
|
(EditorContextKeys.isInEmbeddedEditor.toNegated())
|
|
@@ -644,11 +644,11 @@ class GenericGoToLocationAction extends SymbolNavigationAction {
|
|
|
644
644
|
}
|
|
645
645
|
async _getLocationModel(languageFeaturesService, _model, _position, _token) {
|
|
646
646
|
return (
|
|
647
|
-
(new ReferencesModel(this._references, ( localize(
|
|
647
|
+
(new ReferencesModel(this._references, ( localize(1291, 'Locations'))))
|
|
648
648
|
);
|
|
649
649
|
}
|
|
650
650
|
_getNoResultFoundMessage(info) {
|
|
651
|
-
return info && ( localize(
|
|
651
|
+
return info && ( localize(1292, "No results for '{0}'", info.word)) || '';
|
|
652
652
|
}
|
|
653
653
|
_getGoToPreference(editor) {
|
|
654
654
|
return this._gotoMultipleBehaviour ?? editor.getOption(60 ).multipleReferences;
|
|
@@ -723,7 +723,7 @@ CommandsRegistry.registerCommand({
|
|
|
723
723
|
if (!controller) {
|
|
724
724
|
return undefined;
|
|
725
725
|
}
|
|
726
|
-
const references = createCancelablePromise(token => getReferencesAtPosition(languageFeaturesService.referenceProvider, control.getModel(), Position.lift(position), false, false, token).then(references => ( (new ReferencesModel(references, ( localize(
|
|
726
|
+
const references = createCancelablePromise(token => getReferencesAtPosition(languageFeaturesService.referenceProvider, control.getModel(), Position.lift(position), false, false, token).then(references => ( (new ReferencesModel(references, ( localize(1288, 'References')))))));
|
|
727
727
|
const range = ( (new Range(position.lineNumber, position.column, position.lineNumber, position.column)));
|
|
728
728
|
return Promise.resolve(controller.toggleWidget(range, references, false));
|
|
729
729
|
});
|
|
@@ -126,7 +126,7 @@ let GotoDefinitionAtPositionEditorContribution = class GotoDefinitionAtPositionE
|
|
|
126
126
|
combinedRange = Range.plusRange(combinedRange, originSelectionRange);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
this.addDecoration(combinedRange, ( (new MarkdownString())).appendText(( localize(
|
|
129
|
+
this.addDecoration(combinedRange, ( (new MarkdownString())).appendText(( localize(1293, "Click to show {0} definitions.", results.length))));
|
|
130
130
|
}
|
|
131
131
|
else {
|
|
132
132
|
const result = results[0];
|
|
@@ -29,7 +29,7 @@ class OneReference {
|
|
|
29
29
|
const preview = this.parent.getPreview(this)?.preview(this.range);
|
|
30
30
|
if (!preview) {
|
|
31
31
|
return ( localize(
|
|
32
|
-
|
|
32
|
+
5066,
|
|
33
33
|
"in {0} on line {1} at column {2}",
|
|
34
34
|
basename(this.uri),
|
|
35
35
|
this.range.startLineNumber,
|
|
@@ -38,7 +38,7 @@ class OneReference {
|
|
|
38
38
|
}
|
|
39
39
|
else {
|
|
40
40
|
return ( localize(
|
|
41
|
-
|
|
41
|
+
5067,
|
|
42
42
|
"{0} in {1} on line {2} at column {3}",
|
|
43
43
|
preview.value,
|
|
44
44
|
basename(this.uri),
|
|
@@ -96,7 +96,7 @@ class FileReferences {
|
|
|
96
96
|
const len = this.children.length;
|
|
97
97
|
if (len === 1) {
|
|
98
98
|
return ( localize(
|
|
99
|
-
|
|
99
|
+
5068,
|
|
100
100
|
"1 symbol in {0}, full path {1}",
|
|
101
101
|
basename(this.uri),
|
|
102
102
|
this.uri.fsPath
|
|
@@ -104,7 +104,7 @@ class FileReferences {
|
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
106
106
|
return ( localize(
|
|
107
|
-
|
|
107
|
+
5069,
|
|
108
108
|
"{0} symbols in {1}, full path {2}",
|
|
109
109
|
len,
|
|
110
110
|
basename(this.uri),
|
|
@@ -177,14 +177,14 @@ class ReferencesModel {
|
|
|
177
177
|
}
|
|
178
178
|
get ariaMessage() {
|
|
179
179
|
if (this.isEmpty) {
|
|
180
|
-
return ( localize(
|
|
180
|
+
return ( localize(5070, "No results found"));
|
|
181
181
|
}
|
|
182
182
|
else if (this.references.length === 1) {
|
|
183
|
-
return ( localize(
|
|
183
|
+
return ( localize(5071, "Found 1 symbol in {0}", this.references[0].uri.fsPath));
|
|
184
184
|
}
|
|
185
185
|
else if (this.groups.length === 1) {
|
|
186
186
|
return ( localize(
|
|
187
|
-
|
|
187
|
+
5072,
|
|
188
188
|
"Found {0} symbols in {1}",
|
|
189
189
|
this.references.length,
|
|
190
190
|
this.groups[0].uri.fsPath
|
|
@@ -192,7 +192,7 @@ class ReferencesModel {
|
|
|
192
192
|
}
|
|
193
193
|
else {
|
|
194
194
|
return ( localize(
|
|
195
|
-
|
|
195
|
+
5073,
|
|
196
196
|
"Found {0} symbols in {1} files",
|
|
197
197
|
this.references.length,
|
|
198
198
|
this.groups.length
|
|
@@ -14,7 +14,7 @@ import { IKeybindingService } from '../../../../platform/keybinding/common/keybi
|
|
|
14
14
|
import { KeybindingsRegistry } from '../../../../platform/keybinding/common/keybindingsRegistry.js';
|
|
15
15
|
import { INotificationService } from '../../../../platform/notification/common/notification.service.js';
|
|
16
16
|
const ctxHasSymbols = ( (new RawContextKey('hasSymbols', false, ( localize(
|
|
17
|
-
|
|
17
|
+
5074,
|
|
18
18
|
"Whether there are symbol locations that can be navigated via keyboard-only."
|
|
19
19
|
)))));
|
|
20
20
|
const ISymbolNavigationService = ( (createDecorator('ISymbolNavigationService')));
|
|
@@ -100,14 +100,14 @@ let SymbolNavigationService = class SymbolNavigationService {
|
|
|
100
100
|
const kb = this._keybindingService.lookupKeybinding('editor.gotoNextSymbolFromResult');
|
|
101
101
|
const message = kb
|
|
102
102
|
? ( localize(
|
|
103
|
-
|
|
103
|
+
5075,
|
|
104
104
|
"Symbol {0} of {1}, {2} for next",
|
|
105
105
|
this._currentIdx + 1,
|
|
106
106
|
this._currentModel.references.length,
|
|
107
107
|
kb.getLabel()
|
|
108
108
|
))
|
|
109
109
|
: ( localize(
|
|
110
|
-
|
|
110
|
+
5076,
|
|
111
111
|
"Symbol {0} of {1}",
|
|
112
112
|
this._currentIdx + 1,
|
|
113
113
|
this._currentModel.references.length
|
|
@@ -16,7 +16,7 @@ class DebugEditorGpuRendererAction extends EditorAction {
|
|
|
16
16
|
constructor() {
|
|
17
17
|
super({
|
|
18
18
|
id: 'editor.action.debugEditorGpuRenderer',
|
|
19
|
-
label: ( localize(
|
|
19
|
+
label: ( localize(1302, "Developer: Debug Editor GPU Renderer")),
|
|
20
20
|
alias: 'Developer: Debug Editor GPU Renderer',
|
|
21
21
|
precondition: ContextKeyExpr.true(),
|
|
22
22
|
});
|
|
@@ -26,15 +26,15 @@ class DebugEditorGpuRendererAction extends EditorAction {
|
|
|
26
26
|
const quickInputService = accessor.get(IQuickInputService);
|
|
27
27
|
const choice = await quickInputService.pick([
|
|
28
28
|
{
|
|
29
|
-
label: ( localize(
|
|
29
|
+
label: ( localize(1303, "Log Texture Atlas Stats")),
|
|
30
30
|
id: 'logTextureAtlasStats',
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
label: ( localize(
|
|
33
|
+
label: ( localize(1304, "Save Texture Atlas")),
|
|
34
34
|
id: 'saveTextureAtlas',
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
label: ( localize(
|
|
37
|
+
label: ( localize(1305, "Draw Glyph")),
|
|
38
38
|
id: 'drawGlyph',
|
|
39
39
|
},
|
|
40
40
|
], { canPickMany: false });
|
|
@@ -18,12 +18,12 @@ import { labelForHoverVerbosityAction } from './markdownHoverParticipant.js';
|
|
|
18
18
|
var HoverAccessibilityHelpNLS;
|
|
19
19
|
( ((function(HoverAccessibilityHelpNLS) {
|
|
20
20
|
HoverAccessibilityHelpNLS.increaseVerbosity = ( localize(
|
|
21
|
-
|
|
21
|
+
5155,
|
|
22
22
|
'- The focused hover part verbosity level can be increased with the Increase Hover Verbosity command.',
|
|
23
23
|
`<keybinding:${INCREASE_HOVER_VERBOSITY_ACTION_ID}>`
|
|
24
24
|
));
|
|
25
25
|
HoverAccessibilityHelpNLS.decreaseVerbosity = ( localize(
|
|
26
|
-
|
|
26
|
+
5156,
|
|
27
27
|
'- The focused hover part verbosity level can be decreased with the Decrease Hover Verbosity command.',
|
|
28
28
|
`<keybinding:${DECREASE_HOVER_VERBOSITY_ACTION_ID}>`
|
|
29
29
|
));
|
|
@@ -11,8 +11,8 @@ const GO_TO_TOP_HOVER_ACTION_ID = 'editor.action.goToTopHover';
|
|
|
11
11
|
const GO_TO_BOTTOM_HOVER_ACTION_ID = 'editor.action.goToBottomHover';
|
|
12
12
|
const INCREASE_HOVER_VERBOSITY_ACTION_ID = 'editor.action.increaseHoverVerbosityLevel';
|
|
13
13
|
const INCREASE_HOVER_VERBOSITY_ACCESSIBLE_ACTION_ID = 'editor.action.increaseHoverVerbosityLevelFromAccessibleView';
|
|
14
|
-
const INCREASE_HOVER_VERBOSITY_ACTION_LABEL = ( localize(
|
|
14
|
+
const INCREASE_HOVER_VERBOSITY_ACTION_LABEL = ( localize(9993, "Increase Hover Verbosity Level"));
|
|
15
15
|
const DECREASE_HOVER_VERBOSITY_ACTION_ID = 'editor.action.decreaseHoverVerbosityLevel';
|
|
16
16
|
const DECREASE_HOVER_VERBOSITY_ACCESSIBLE_ACTION_ID = 'editor.action.decreaseHoverVerbosityLevelFromAccessibleView';
|
|
17
|
-
const DECREASE_HOVER_VERBOSITY_ACTION_LABEL = ( localize(
|
|
17
|
+
const DECREASE_HOVER_VERBOSITY_ACTION_LABEL = ( localize(9994, "Decrease Hover Verbosity Level"));
|
|
18
18
|
export { DECREASE_HOVER_VERBOSITY_ACCESSIBLE_ACTION_ID, DECREASE_HOVER_VERBOSITY_ACTION_ID, DECREASE_HOVER_VERBOSITY_ACTION_LABEL, GO_TO_BOTTOM_HOVER_ACTION_ID, GO_TO_TOP_HOVER_ACTION_ID, INCREASE_HOVER_VERBOSITY_ACCESSIBLE_ACTION_ID, INCREASE_HOVER_VERBOSITY_ACTION_ID, INCREASE_HOVER_VERBOSITY_ACTION_LABEL, PAGE_DOWN_HOVER_ACTION_ID, PAGE_UP_HOVER_ACTION_ID, SCROLL_DOWN_HOVER_ACTION_ID, SCROLL_LEFT_HOVER_ACTION_ID, SCROLL_RIGHT_HOVER_ACTION_ID, SCROLL_UP_HOVER_ACTION_ID, SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID, SHOW_OR_FOCUS_HOVER_ACTION_ID };
|
|
@@ -18,10 +18,10 @@ class ShowOrFocusHoverAction extends EditorAction {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: SHOW_OR_FOCUS_HOVER_ACTION_ID,
|
|
21
|
-
label: ( localize(
|
|
21
|
+
label: ( localize(5119, "Show or Focus Hover")),
|
|
22
22
|
metadata: {
|
|
23
23
|
description: ( localize2(
|
|
24
|
-
|
|
24
|
+
5120,
|
|
25
25
|
'Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position.'
|
|
26
26
|
)),
|
|
27
27
|
args: [{
|
|
@@ -33,9 +33,9 @@ class ShowOrFocusHoverAction extends EditorAction {
|
|
|
33
33
|
description: 'Controls if and when the hover should take focus upon being triggered by this action.',
|
|
34
34
|
enum: [HoverFocusBehavior.NoAutoFocus, HoverFocusBehavior.FocusIfVisible, HoverFocusBehavior.AutoFocusImmediately],
|
|
35
35
|
enumDescriptions: [
|
|
36
|
-
( localize(
|
|
37
|
-
( localize(
|
|
38
|
-
( localize(
|
|
36
|
+
( localize(5121, 'The hover will not automatically take focus.')),
|
|
37
|
+
( localize(5122, 'The hover will take focus only if it is already visible.')),
|
|
38
|
+
( localize(5123, 'The hover will automatically take focus when it appears.')),
|
|
39
39
|
],
|
|
40
40
|
default: HoverFocusBehavior.FocusIfVisible,
|
|
41
41
|
}
|
|
@@ -91,11 +91,11 @@ class ShowDefinitionPreviewHoverAction extends EditorAction {
|
|
|
91
91
|
constructor() {
|
|
92
92
|
super({
|
|
93
93
|
id: SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID,
|
|
94
|
-
label: ( localize(
|
|
94
|
+
label: ( localize(5124, "Show Definition Preview Hover")),
|
|
95
95
|
alias: 'Show Definition Preview Hover',
|
|
96
96
|
precondition: undefined,
|
|
97
97
|
metadata: {
|
|
98
|
-
description: ( localize2(
|
|
98
|
+
description: ( localize2(5125, 'Show the definition preview hover in the editor.')),
|
|
99
99
|
},
|
|
100
100
|
});
|
|
101
101
|
}
|
|
@@ -123,7 +123,7 @@ class ScrollUpHoverAction extends EditorAction {
|
|
|
123
123
|
constructor() {
|
|
124
124
|
super({
|
|
125
125
|
id: SCROLL_UP_HOVER_ACTION_ID,
|
|
126
|
-
label: ( localize(
|
|
126
|
+
label: ( localize(5126, "Scroll Up Hover")),
|
|
127
127
|
alias: 'Scroll Up Hover',
|
|
128
128
|
precondition: EditorContextKeys.hoverFocused,
|
|
129
129
|
kbOpts: {
|
|
@@ -132,7 +132,7 @@ class ScrollUpHoverAction extends EditorAction {
|
|
|
132
132
|
weight: 100
|
|
133
133
|
},
|
|
134
134
|
metadata: {
|
|
135
|
-
description: ( localize2(
|
|
135
|
+
description: ( localize2(5127, 'Scroll up the editor hover.'))
|
|
136
136
|
},
|
|
137
137
|
});
|
|
138
138
|
}
|
|
@@ -148,7 +148,7 @@ class ScrollDownHoverAction extends EditorAction {
|
|
|
148
148
|
constructor() {
|
|
149
149
|
super({
|
|
150
150
|
id: SCROLL_DOWN_HOVER_ACTION_ID,
|
|
151
|
-
label: ( localize(
|
|
151
|
+
label: ( localize(5128, "Scroll Down Hover")),
|
|
152
152
|
alias: 'Scroll Down Hover',
|
|
153
153
|
precondition: EditorContextKeys.hoverFocused,
|
|
154
154
|
kbOpts: {
|
|
@@ -157,7 +157,7 @@ class ScrollDownHoverAction extends EditorAction {
|
|
|
157
157
|
weight: 100
|
|
158
158
|
},
|
|
159
159
|
metadata: {
|
|
160
|
-
description: ( localize2(
|
|
160
|
+
description: ( localize2(5129, 'Scroll down the editor hover.')),
|
|
161
161
|
},
|
|
162
162
|
});
|
|
163
163
|
}
|
|
@@ -173,7 +173,7 @@ class ScrollLeftHoverAction extends EditorAction {
|
|
|
173
173
|
constructor() {
|
|
174
174
|
super({
|
|
175
175
|
id: SCROLL_LEFT_HOVER_ACTION_ID,
|
|
176
|
-
label: ( localize(
|
|
176
|
+
label: ( localize(5130, "Scroll Left Hover")),
|
|
177
177
|
alias: 'Scroll Left Hover',
|
|
178
178
|
precondition: EditorContextKeys.hoverFocused,
|
|
179
179
|
kbOpts: {
|
|
@@ -182,7 +182,7 @@ class ScrollLeftHoverAction extends EditorAction {
|
|
|
182
182
|
weight: 100
|
|
183
183
|
},
|
|
184
184
|
metadata: {
|
|
185
|
-
description: ( localize2(
|
|
185
|
+
description: ( localize2(5131, 'Scroll left the editor hover.')),
|
|
186
186
|
},
|
|
187
187
|
});
|
|
188
188
|
}
|
|
@@ -198,7 +198,7 @@ class ScrollRightHoverAction extends EditorAction {
|
|
|
198
198
|
constructor() {
|
|
199
199
|
super({
|
|
200
200
|
id: SCROLL_RIGHT_HOVER_ACTION_ID,
|
|
201
|
-
label: ( localize(
|
|
201
|
+
label: ( localize(5132, "Scroll Right Hover")),
|
|
202
202
|
alias: 'Scroll Right Hover',
|
|
203
203
|
precondition: EditorContextKeys.hoverFocused,
|
|
204
204
|
kbOpts: {
|
|
@@ -207,7 +207,7 @@ class ScrollRightHoverAction extends EditorAction {
|
|
|
207
207
|
weight: 100
|
|
208
208
|
},
|
|
209
209
|
metadata: {
|
|
210
|
-
description: ( localize2(
|
|
210
|
+
description: ( localize2(5133, 'Scroll right the editor hover.'))
|
|
211
211
|
},
|
|
212
212
|
});
|
|
213
213
|
}
|
|
@@ -223,7 +223,7 @@ class PageUpHoverAction extends EditorAction {
|
|
|
223
223
|
constructor() {
|
|
224
224
|
super({
|
|
225
225
|
id: PAGE_UP_HOVER_ACTION_ID,
|
|
226
|
-
label: ( localize(
|
|
226
|
+
label: ( localize(5134, "Page Up Hover")),
|
|
227
227
|
alias: 'Page Up Hover',
|
|
228
228
|
precondition: EditorContextKeys.hoverFocused,
|
|
229
229
|
kbOpts: {
|
|
@@ -233,7 +233,7 @@ class PageUpHoverAction extends EditorAction {
|
|
|
233
233
|
weight: 100
|
|
234
234
|
},
|
|
235
235
|
metadata: {
|
|
236
|
-
description: ( localize2(
|
|
236
|
+
description: ( localize2(5135, 'Page up the editor hover.')),
|
|
237
237
|
},
|
|
238
238
|
});
|
|
239
239
|
}
|
|
@@ -249,7 +249,7 @@ class PageDownHoverAction extends EditorAction {
|
|
|
249
249
|
constructor() {
|
|
250
250
|
super({
|
|
251
251
|
id: PAGE_DOWN_HOVER_ACTION_ID,
|
|
252
|
-
label: ( localize(
|
|
252
|
+
label: ( localize(5136, "Page Down Hover")),
|
|
253
253
|
alias: 'Page Down Hover',
|
|
254
254
|
precondition: EditorContextKeys.hoverFocused,
|
|
255
255
|
kbOpts: {
|
|
@@ -259,7 +259,7 @@ class PageDownHoverAction extends EditorAction {
|
|
|
259
259
|
weight: 100
|
|
260
260
|
},
|
|
261
261
|
metadata: {
|
|
262
|
-
description: ( localize2(
|
|
262
|
+
description: ( localize2(5137, 'Page down the editor hover.')),
|
|
263
263
|
},
|
|
264
264
|
});
|
|
265
265
|
}
|
|
@@ -275,7 +275,7 @@ class GoToTopHoverAction extends EditorAction {
|
|
|
275
275
|
constructor() {
|
|
276
276
|
super({
|
|
277
277
|
id: GO_TO_TOP_HOVER_ACTION_ID,
|
|
278
|
-
label: ( localize(
|
|
278
|
+
label: ( localize(5138, "Go To Top Hover")),
|
|
279
279
|
alias: 'Go To Bottom Hover',
|
|
280
280
|
precondition: EditorContextKeys.hoverFocused,
|
|
281
281
|
kbOpts: {
|
|
@@ -285,7 +285,7 @@ class GoToTopHoverAction extends EditorAction {
|
|
|
285
285
|
weight: 100
|
|
286
286
|
},
|
|
287
287
|
metadata: {
|
|
288
|
-
description: ( localize2(
|
|
288
|
+
description: ( localize2(5139, 'Go to the top of the editor hover.')),
|
|
289
289
|
},
|
|
290
290
|
});
|
|
291
291
|
}
|
|
@@ -301,7 +301,7 @@ class GoToBottomHoverAction extends EditorAction {
|
|
|
301
301
|
constructor() {
|
|
302
302
|
super({
|
|
303
303
|
id: GO_TO_BOTTOM_HOVER_ACTION_ID,
|
|
304
|
-
label: ( localize(
|
|
304
|
+
label: ( localize(5140, "Go To Bottom Hover")),
|
|
305
305
|
alias: 'Go To Bottom Hover',
|
|
306
306
|
precondition: EditorContextKeys.hoverFocused,
|
|
307
307
|
kbOpts: {
|
|
@@ -311,7 +311,7 @@ class GoToBottomHoverAction extends EditorAction {
|
|
|
311
311
|
weight: 100
|
|
312
312
|
},
|
|
313
313
|
metadata: {
|
|
314
|
-
description: ( localize2(
|
|
314
|
+
description: ( localize2(5141, 'Go to the bottom of the editor hover.'))
|
|
315
315
|
},
|
|
316
316
|
});
|
|
317
317
|
}
|
|
@@ -26,8 +26,8 @@ import { AsyncIterableObject } from '../../../../base/common/async.js';
|
|
|
26
26
|
import { getHoverProviderResultsAsAsyncIterable } from './getHover.js';
|
|
27
27
|
import { ICommandService } from '../../../../platform/commands/common/commands.service.js';
|
|
28
28
|
const $ = $$1;
|
|
29
|
-
const increaseHoverVerbosityIcon = registerIcon('hover-increase-verbosity', Codicon.add, ( localize(
|
|
30
|
-
const decreaseHoverVerbosityIcon = registerIcon('hover-decrease-verbosity', Codicon.remove, ( localize(
|
|
29
|
+
const increaseHoverVerbosityIcon = registerIcon('hover-increase-verbosity', Codicon.add, ( localize(5142, 'Icon for increaseing hover verbosity.')));
|
|
30
|
+
const decreaseHoverVerbosityIcon = registerIcon('hover-decrease-verbosity', Codicon.remove, ( localize(5143, 'Icon for decreasing hover verbosity.')));
|
|
31
31
|
class MarkdownHover {
|
|
32
32
|
constructor(owner, range, contents, isBeforeContent, ordinal, source = undefined) {
|
|
33
33
|
this.owner = owner;
|
|
@@ -75,7 +75,7 @@ let MarkdownHoverParticipant = class MarkdownHoverParticipant {
|
|
|
75
75
|
(new MarkdownHover(
|
|
76
76
|
this,
|
|
77
77
|
anchor.range,
|
|
78
|
-
[( (new MarkdownString())).appendText(( localize(
|
|
78
|
+
[( (new MarkdownString())).appendText(( localize(5144, "Loading...")))],
|
|
79
79
|
false,
|
|
80
80
|
2000
|
|
81
81
|
))
|
|
@@ -101,7 +101,7 @@ let MarkdownHoverParticipant = class MarkdownHoverParticipant {
|
|
|
101
101
|
stopRenderingMessage = true;
|
|
102
102
|
result.push(( (new MarkdownHover(this, anchor.range, [{
|
|
103
103
|
value: ( localize(
|
|
104
|
-
|
|
104
|
+
5145,
|
|
105
105
|
"Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`."
|
|
106
106
|
))
|
|
107
107
|
}], false, index++))));
|
|
@@ -109,7 +109,7 @@ let MarkdownHoverParticipant = class MarkdownHoverParticipant {
|
|
|
109
109
|
if (!stopRenderingMessage && typeof maxTokenizationLineLength === 'number' && lineLength >= maxTokenizationLineLength) {
|
|
110
110
|
result.push(( (new MarkdownHover(this, anchor.range, [{
|
|
111
111
|
value: ( localize(
|
|
112
|
-
|
|
112
|
+
5146,
|
|
113
113
|
"Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`."
|
|
114
114
|
))
|
|
115
115
|
}], false, index++))));
|
|
@@ -442,14 +442,14 @@ function labelForHoverVerbosityAction(keybindingService, action) {
|
|
|
442
442
|
case HoverVerbosityAction.Increase: {
|
|
443
443
|
const kb = keybindingService.lookupKeybinding(INCREASE_HOVER_VERBOSITY_ACTION_ID);
|
|
444
444
|
return kb ?
|
|
445
|
-
( localize(
|
|
446
|
-
( localize(
|
|
445
|
+
( localize(5147, "Increase Hover Verbosity ({0})", kb.getLabel())) :
|
|
446
|
+
( localize(5148, "Increase Hover Verbosity"));
|
|
447
447
|
}
|
|
448
448
|
case HoverVerbosityAction.Decrease: {
|
|
449
449
|
const kb = keybindingService.lookupKeybinding(DECREASE_HOVER_VERBOSITY_ACTION_ID);
|
|
450
450
|
return kb ?
|
|
451
|
-
( localize(
|
|
452
|
-
( localize(
|
|
451
|
+
( localize(5149, "Decrease Hover Verbosity ({0})", kb.getLabel())) :
|
|
452
|
+
( localize(5150, "Decrease Hover Verbosity"));
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
}
|