monaco-editor-core 0.56.0-dev-20251217 → 0.56.0-dev-20251219
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/esm/nls.keys.json +1 -1
- package/esm/nls.messages.cs.js +2 -2
- package/esm/nls.messages.de.js +2 -2
- package/esm/nls.messages.es.js +2 -2
- package/esm/nls.messages.fr.js +2 -2
- package/esm/nls.messages.it.js +2 -2
- package/esm/nls.messages.ja.js +2 -2
- package/esm/nls.messages.js +1 -1
- package/esm/nls.messages.json +1 -1
- package/esm/nls.messages.ko.js +2 -2
- package/esm/nls.messages.pl.js +2 -2
- package/esm/nls.messages.pt-br.js +2 -2
- package/esm/nls.messages.ru.js +2 -2
- package/esm/nls.messages.tr.js +2 -2
- package/esm/nls.messages.zh-cn.js +2 -2
- package/esm/nls.messages.zh-tw.js +2 -2
- package/esm/nls.metadata.json +6 -2
- package/esm/vs/base/browser/ui/actionbar/actionViewItems.js.map +1 -1
- package/esm/vs/base/browser/ui/findinput/findInput.js +6 -1
- package/esm/vs/base/browser/ui/findinput/findInput.js.map +1 -1
- package/esm/vs/base/browser/ui/inputbox/inputBox.js +17 -1
- package/esm/vs/base/browser/ui/inputbox/inputBox.js.map +1 -1
- package/esm/vs/base/browser/ui/toggle/toggle.js +78 -6
- package/esm/vs/base/browser/ui/toggle/toggle.js.map +1 -1
- package/esm/vs/base/common/fuzzyScorer.js +3 -2
- package/esm/vs/base/common/fuzzyScorer.js.map +1 -1
- package/esm/vs/editor/browser/services/editorWorkerService.js +6 -2
- package/esm/vs/editor/browser/services/editorWorkerService.js.map +1 -1
- package/esm/vs/editor/common/config/editorConfigurationSchema.js +49 -47
- package/esm/vs/editor/common/config/editorConfigurationSchema.js.map +1 -1
- package/esm/vs/editor/common/config/editorOptions.js +410 -410
- package/esm/vs/editor/common/core/editorColorRegistry.js +70 -69
- package/esm/vs/editor/common/core/editorColorRegistry.js.map +1 -1
- package/esm/vs/editor/common/cursor/cursorTypeEditOperations.js +3 -3
- package/esm/vs/editor/common/cursor/cursorTypeEditOperations.js.map +1 -1
- package/esm/vs/editor/common/editorContextKeys.js +47 -47
- package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
- package/esm/vs/editor/common/languages.js +56 -56
- package/esm/vs/editor/common/model/editStack.js +1 -1
- package/esm/vs/editor/common/standaloneStrings.js +11 -11
- package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/esm/vs/editor/common/viewModel/viewModelImpl.js +4 -15
- package/esm/vs/editor/common/viewModel/viewModelImpl.js.map +1 -1
- package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +18 -9
- package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js.map +1 -1
- package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
- package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/esm/vs/editor/contrib/find/browser/findController.js +16 -16
- package/esm/vs/editor/contrib/find/browser/findWidget.js +26 -26
- package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/esm/vs/editor/contrib/folding/browser/folding.js.map +1 -1
- package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
- package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +4 -4
- package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js.map +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
- package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/esm/vs/editor/contrib/links/browser/links.js +10 -10
- package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
- package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +25 -27
- package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js.map +1 -1
- package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
- package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/esm/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/esm/vs/platform/actions/browser/toolbar.js +2 -2
- package/esm/vs/platform/actions/common/menuService.js +2 -2
- package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
- package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/esm/vs/platform/contextkey/common/scanner.js +5 -5
- package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
- package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/esm/vs/platform/list/browser/listService.js +27 -27
- package/esm/vs/platform/markers/common/markerService.js +2 -2
- package/esm/vs/platform/markers/common/markers.js +6 -6
- package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
- package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
- package/esm/vs/platform/quickinput/browser/media/quickInput.css +38 -4
- package/esm/vs/platform/quickinput/browser/quickInput.js +42 -14
- package/esm/vs/platform/quickinput/browser/quickInput.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/esm/vs/platform/quickinput/browser/quickInputBox.js +13 -1
- package/esm/vs/platform/quickinput/browser/quickInputBox.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputController.js +22 -12
- package/esm/vs/platform/quickinput/browser/quickInputController.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputList.js +17 -12
- package/esm/vs/platform/quickinput/browser/quickInputList.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js +36 -8
- package/esm/vs/platform/quickinput/browser/quickInputUtils.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeController.js +3 -3
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeController.js.map +1 -1
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +8 -4
- package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js.map +1 -1
- package/esm/vs/platform/quickinput/common/quickInput.js.map +1 -1
- package/esm/vs/platform/theme/common/colorUtils.js +2 -2
- package/esm/vs/platform/theme/common/colors/baseColors.js +18 -18
- package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
- package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
- package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
- package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
- package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
- package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/esm/vs/platform/workspace/common/workspace.js +1 -1
- package/package.json +2 -2
|
@@ -174,19 +174,19 @@ class MessageWidget {
|
|
|
174
174
|
let severityLabel = '';
|
|
175
175
|
switch (marker.severity) {
|
|
176
176
|
case MarkerSeverity.Error:
|
|
177
|
-
severityLabel = nls.localize(
|
|
177
|
+
severityLabel = nls.localize(1032, "Error");
|
|
178
178
|
break;
|
|
179
179
|
case MarkerSeverity.Warning:
|
|
180
|
-
severityLabel = nls.localize(
|
|
180
|
+
severityLabel = nls.localize(1033, "Warning");
|
|
181
181
|
break;
|
|
182
182
|
case MarkerSeverity.Info:
|
|
183
|
-
severityLabel = nls.localize(
|
|
183
|
+
severityLabel = nls.localize(1034, "Info");
|
|
184
184
|
break;
|
|
185
185
|
case MarkerSeverity.Hint:
|
|
186
|
-
severityLabel = nls.localize(
|
|
186
|
+
severityLabel = nls.localize(1035, "Hint");
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
|
-
let ariaLabel = nls.localize(
|
|
189
|
+
let ariaLabel = nls.localize(1036, "{0} at {1}. ", severityLabel, marker.startLineNumber + ':' + marker.startColumn);
|
|
190
190
|
const model = this._editor.getModel();
|
|
191
191
|
if (model && (marker.startLineNumber <= model.getLineCount()) && (marker.startLineNumber >= 1)) {
|
|
192
192
|
const lineContent = model.getLineContent(marker.startLineNumber);
|
|
@@ -286,8 +286,8 @@ let MarkerNavigationWidget = class MarkerNavigationWidget extends PeekViewWidget
|
|
|
286
286
|
const model = this.editor.getModel();
|
|
287
287
|
if (model) {
|
|
288
288
|
const detail = markerCount > 1
|
|
289
|
-
? nls.localize(
|
|
290
|
-
: nls.localize(
|
|
289
|
+
? nls.localize(1037, "{0} of {1} problems", markerIdx, markerCount)
|
|
290
|
+
: nls.localize(1038, "{0} of {1} problem", markerIdx, markerCount);
|
|
291
291
|
this.setTitle(basename(model.uri), detail);
|
|
292
292
|
}
|
|
293
293
|
this._icon.className = `codicon ${SeverityIcon.className(MarkerSeverity.toSeverity(this._severity))}`;
|
|
@@ -331,11 +331,11 @@ export { MarkerNavigationWidget };
|
|
|
331
331
|
const errorDefault = oneOf(editorErrorForeground, editorErrorBorder);
|
|
332
332
|
const warningDefault = oneOf(editorWarningForeground, editorWarningBorder);
|
|
333
333
|
const infoDefault = oneOf(editorInfoForeground, editorInfoBorder);
|
|
334
|
-
const editorMarkerNavigationError = registerColor('editorMarkerNavigationError.background', { dark: errorDefault, light: errorDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(
|
|
335
|
-
const editorMarkerNavigationErrorHeader = registerColor('editorMarkerNavigationError.headerBackground', { dark: transparent(editorMarkerNavigationError, .1), light: transparent(editorMarkerNavigationError, .1), hcDark: null, hcLight: null }, nls.localize(
|
|
336
|
-
const editorMarkerNavigationWarning = registerColor('editorMarkerNavigationWarning.background', { dark: warningDefault, light: warningDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(
|
|
337
|
-
const editorMarkerNavigationWarningHeader = registerColor('editorMarkerNavigationWarning.headerBackground', { dark: transparent(editorMarkerNavigationWarning, .1), light: transparent(editorMarkerNavigationWarning, .1), hcDark: '#0C141F', hcLight: transparent(editorMarkerNavigationWarning, .2) }, nls.localize(
|
|
338
|
-
const editorMarkerNavigationInfo = registerColor('editorMarkerNavigationInfo.background', { dark: infoDefault, light: infoDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(
|
|
339
|
-
const editorMarkerNavigationInfoHeader = registerColor('editorMarkerNavigationInfo.headerBackground', { dark: transparent(editorMarkerNavigationInfo, .1), light: transparent(editorMarkerNavigationInfo, .1), hcDark: null, hcLight: null }, nls.localize(
|
|
340
|
-
const editorMarkerNavigationBackground = registerColor('editorMarkerNavigation.background', editorBackground, nls.localize(
|
|
334
|
+
const editorMarkerNavigationError = registerColor('editorMarkerNavigationError.background', { dark: errorDefault, light: errorDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1039, 'Editor marker navigation widget error color.'));
|
|
335
|
+
const editorMarkerNavigationErrorHeader = registerColor('editorMarkerNavigationError.headerBackground', { dark: transparent(editorMarkerNavigationError, .1), light: transparent(editorMarkerNavigationError, .1), hcDark: null, hcLight: null }, nls.localize(1040, 'Editor marker navigation widget error heading background.'));
|
|
336
|
+
const editorMarkerNavigationWarning = registerColor('editorMarkerNavigationWarning.background', { dark: warningDefault, light: warningDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1041, 'Editor marker navigation widget warning color.'));
|
|
337
|
+
const editorMarkerNavigationWarningHeader = registerColor('editorMarkerNavigationWarning.headerBackground', { dark: transparent(editorMarkerNavigationWarning, .1), light: transparent(editorMarkerNavigationWarning, .1), hcDark: '#0C141F', hcLight: transparent(editorMarkerNavigationWarning, .2) }, nls.localize(1042, 'Editor marker navigation widget warning heading background.'));
|
|
338
|
+
const editorMarkerNavigationInfo = registerColor('editorMarkerNavigationInfo.background', { dark: infoDefault, light: infoDefault, hcDark: contrastBorder, hcLight: contrastBorder }, nls.localize(1043, 'Editor marker navigation widget info color.'));
|
|
339
|
+
const editorMarkerNavigationInfoHeader = registerColor('editorMarkerNavigationInfo.headerBackground', { dark: transparent(editorMarkerNavigationInfo, .1), light: transparent(editorMarkerNavigationInfo, .1), hcDark: null, hcLight: null }, nls.localize(1044, 'Editor marker navigation widget info heading background.'));
|
|
340
|
+
const editorMarkerNavigationBackground = registerColor('editorMarkerNavigation.background', editorBackground, nls.localize(1045, 'Editor marker navigation widget background.'));
|
|
341
341
|
//# sourceMappingURL=gotoErrorWidget.js.map
|
|
@@ -34,7 +34,7 @@ import { Iterable } from '../../../../base/common/iterator.js';
|
|
|
34
34
|
import { IsWebContext } from '../../../../platform/contextkey/common/contextkeys.js';
|
|
35
35
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
36
36
|
submenu: MenuId.EditorContextPeek,
|
|
37
|
-
title: nls.localize(
|
|
37
|
+
title: nls.localize(1046, "Peek"),
|
|
38
38
|
group: 'navigation',
|
|
39
39
|
order: 100
|
|
40
40
|
});
|
|
@@ -203,12 +203,12 @@ export class SymbolNavigationAction extends EditorAction2 {
|
|
|
203
203
|
//#region --- DEFINITION
|
|
204
204
|
export class DefinitionAction extends SymbolNavigationAction {
|
|
205
205
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
206
|
-
return new ReferencesModel(await getDefinitionsAtPosition(languageFeaturesService.definitionProvider, model, position, false, token), nls.localize(
|
|
206
|
+
return new ReferencesModel(await getDefinitionsAtPosition(languageFeaturesService.definitionProvider, model, position, false, token), nls.localize(1047, 'Definitions'));
|
|
207
207
|
}
|
|
208
208
|
_getNoResultFoundMessage(info) {
|
|
209
209
|
return info && info.word
|
|
210
|
-
? nls.localize(
|
|
211
|
-
: nls.localize(
|
|
210
|
+
? nls.localize(1048, "No definition found for '{0}'", info.word)
|
|
211
|
+
: nls.localize(1049, "No definition found");
|
|
212
212
|
}
|
|
213
213
|
_getAlternativeCommand(editor) {
|
|
214
214
|
return editor.getOption(67 /* EditorOption.gotoLocation */).alternativeDefinitionCommand;
|
|
@@ -227,8 +227,8 @@ registerAction2(class GoToDefinitionAction extends DefinitionAction {
|
|
|
227
227
|
}, {
|
|
228
228
|
id: GoToDefinitionAction.id,
|
|
229
229
|
title: {
|
|
230
|
-
...nls.localize2(
|
|
231
|
-
mnemonicTitle: nls.localize(
|
|
230
|
+
...nls.localize2(1073, "Go to Definition"),
|
|
231
|
+
mnemonicTitle: nls.localize(1050, "Go to &&Definition"),
|
|
232
232
|
},
|
|
233
233
|
precondition: EditorContextKeys.hasDefinitionProvider,
|
|
234
234
|
keybinding: [{
|
|
@@ -263,7 +263,7 @@ registerAction2(class OpenDefinitionToSideAction extends DefinitionAction {
|
|
|
263
263
|
muteMessage: false
|
|
264
264
|
}, {
|
|
265
265
|
id: OpenDefinitionToSideAction.id,
|
|
266
|
-
title: nls.localize2(
|
|
266
|
+
title: nls.localize2(1074, "Open Definition to the Side"),
|
|
267
267
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasDefinitionProvider, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
268
268
|
keybinding: [{
|
|
269
269
|
when: EditorContextKeys.editorTextFocus,
|
|
@@ -287,7 +287,7 @@ registerAction2(class PeekDefinitionAction extends DefinitionAction {
|
|
|
287
287
|
muteMessage: false
|
|
288
288
|
}, {
|
|
289
289
|
id: PeekDefinitionAction.id,
|
|
290
|
-
title: nls.localize2(
|
|
290
|
+
title: nls.localize2(1075, "Peek Definition"),
|
|
291
291
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasDefinitionProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
292
292
|
keybinding: {
|
|
293
293
|
when: EditorContextKeys.editorTextFocus,
|
|
@@ -308,12 +308,12 @@ registerAction2(class PeekDefinitionAction extends DefinitionAction {
|
|
|
308
308
|
//#region --- DECLARATION
|
|
309
309
|
class DeclarationAction extends SymbolNavigationAction {
|
|
310
310
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
311
|
-
return new ReferencesModel(await getDeclarationsAtPosition(languageFeaturesService.declarationProvider, model, position, false, token), nls.localize(
|
|
311
|
+
return new ReferencesModel(await getDeclarationsAtPosition(languageFeaturesService.declarationProvider, model, position, false, token), nls.localize(1051, 'Declarations'));
|
|
312
312
|
}
|
|
313
313
|
_getNoResultFoundMessage(info) {
|
|
314
314
|
return info && info.word
|
|
315
|
-
? nls.localize(
|
|
316
|
-
: nls.localize(
|
|
315
|
+
? nls.localize(1052, "No declaration found for '{0}'", info.word)
|
|
316
|
+
: nls.localize(1053, "No declaration found");
|
|
317
317
|
}
|
|
318
318
|
_getAlternativeCommand(editor) {
|
|
319
319
|
return editor.getOption(67 /* EditorOption.gotoLocation */).alternativeDeclarationCommand;
|
|
@@ -332,8 +332,8 @@ registerAction2(class GoToDeclarationAction extends DeclarationAction {
|
|
|
332
332
|
}, {
|
|
333
333
|
id: GoToDeclarationAction.id,
|
|
334
334
|
title: {
|
|
335
|
-
...nls.localize2(
|
|
336
|
-
mnemonicTitle: nls.localize(
|
|
335
|
+
...nls.localize2(1076, "Go to Declaration"),
|
|
336
|
+
mnemonicTitle: nls.localize(1054, "Go to &&Declaration"),
|
|
337
337
|
},
|
|
338
338
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasDeclarationProvider, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
339
339
|
menu: [{
|
|
@@ -350,8 +350,8 @@ registerAction2(class GoToDeclarationAction extends DeclarationAction {
|
|
|
350
350
|
}
|
|
351
351
|
_getNoResultFoundMessage(info) {
|
|
352
352
|
return info && info.word
|
|
353
|
-
? nls.localize(
|
|
354
|
-
: nls.localize(
|
|
353
|
+
? nls.localize(1055, "No declaration found for '{0}'", info.word)
|
|
354
|
+
: nls.localize(1056, "No declaration found");
|
|
355
355
|
}
|
|
356
356
|
});
|
|
357
357
|
registerAction2(class PeekDeclarationAction extends DeclarationAction {
|
|
@@ -362,7 +362,7 @@ registerAction2(class PeekDeclarationAction extends DeclarationAction {
|
|
|
362
362
|
muteMessage: false
|
|
363
363
|
}, {
|
|
364
364
|
id: 'editor.action.peekDeclaration',
|
|
365
|
-
title: nls.localize2(
|
|
365
|
+
title: nls.localize2(1077, "Peek Declaration"),
|
|
366
366
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasDeclarationProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
367
367
|
menu: {
|
|
368
368
|
id: MenuId.EditorContextPeek,
|
|
@@ -376,12 +376,12 @@ registerAction2(class PeekDeclarationAction extends DeclarationAction {
|
|
|
376
376
|
//#region --- TYPE DEFINITION
|
|
377
377
|
class TypeDefinitionAction extends SymbolNavigationAction {
|
|
378
378
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
379
|
-
return new ReferencesModel(await getTypeDefinitionsAtPosition(languageFeaturesService.typeDefinitionProvider, model, position, false, token), nls.localize(
|
|
379
|
+
return new ReferencesModel(await getTypeDefinitionsAtPosition(languageFeaturesService.typeDefinitionProvider, model, position, false, token), nls.localize(1057, 'Type Definitions'));
|
|
380
380
|
}
|
|
381
381
|
_getNoResultFoundMessage(info) {
|
|
382
382
|
return info && info.word
|
|
383
|
-
? nls.localize(
|
|
384
|
-
: nls.localize(
|
|
383
|
+
? nls.localize(1058, "No type definition found for '{0}'", info.word)
|
|
384
|
+
: nls.localize(1059, "No type definition found");
|
|
385
385
|
}
|
|
386
386
|
_getAlternativeCommand(editor) {
|
|
387
387
|
return editor.getOption(67 /* EditorOption.gotoLocation */).alternativeTypeDefinitionCommand;
|
|
@@ -400,8 +400,8 @@ registerAction2(class GoToTypeDefinitionAction extends TypeDefinitionAction {
|
|
|
400
400
|
}, {
|
|
401
401
|
id: GoToTypeDefinitionAction.ID,
|
|
402
402
|
title: {
|
|
403
|
-
...nls.localize2(
|
|
404
|
-
mnemonicTitle: nls.localize(
|
|
403
|
+
...nls.localize2(1078, "Go to Type Definition"),
|
|
404
|
+
mnemonicTitle: nls.localize(1060, "Go to &&Type Definition"),
|
|
405
405
|
},
|
|
406
406
|
precondition: EditorContextKeys.hasTypeDefinitionProvider,
|
|
407
407
|
keybinding: {
|
|
@@ -431,7 +431,7 @@ registerAction2(class PeekTypeDefinitionAction extends TypeDefinitionAction {
|
|
|
431
431
|
muteMessage: false
|
|
432
432
|
}, {
|
|
433
433
|
id: PeekTypeDefinitionAction.ID,
|
|
434
|
-
title: nls.localize2(
|
|
434
|
+
title: nls.localize2(1079, "Peek Type Definition"),
|
|
435
435
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasTypeDefinitionProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
436
436
|
menu: {
|
|
437
437
|
id: MenuId.EditorContextPeek,
|
|
@@ -445,12 +445,12 @@ registerAction2(class PeekTypeDefinitionAction extends TypeDefinitionAction {
|
|
|
445
445
|
//#region --- IMPLEMENTATION
|
|
446
446
|
class ImplementationAction extends SymbolNavigationAction {
|
|
447
447
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
448
|
-
return new ReferencesModel(await getImplementationsAtPosition(languageFeaturesService.implementationProvider, model, position, false, token), nls.localize(
|
|
448
|
+
return new ReferencesModel(await getImplementationsAtPosition(languageFeaturesService.implementationProvider, model, position, false, token), nls.localize(1061, 'Implementations'));
|
|
449
449
|
}
|
|
450
450
|
_getNoResultFoundMessage(info) {
|
|
451
451
|
return info && info.word
|
|
452
|
-
? nls.localize(
|
|
453
|
-
: nls.localize(
|
|
452
|
+
? nls.localize(1062, "No implementation found for '{0}'", info.word)
|
|
453
|
+
: nls.localize(1063, "No implementation found");
|
|
454
454
|
}
|
|
455
455
|
_getAlternativeCommand(editor) {
|
|
456
456
|
return editor.getOption(67 /* EditorOption.gotoLocation */).alternativeImplementationCommand;
|
|
@@ -469,8 +469,8 @@ registerAction2(class GoToImplementationAction extends ImplementationAction {
|
|
|
469
469
|
}, {
|
|
470
470
|
id: GoToImplementationAction.ID,
|
|
471
471
|
title: {
|
|
472
|
-
...nls.localize2(
|
|
473
|
-
mnemonicTitle: nls.localize(
|
|
472
|
+
...nls.localize2(1080, "Go to Implementations"),
|
|
473
|
+
mnemonicTitle: nls.localize(1064, "Go to &&Implementations"),
|
|
474
474
|
},
|
|
475
475
|
precondition: EditorContextKeys.hasImplementationProvider,
|
|
476
476
|
keybinding: {
|
|
@@ -500,7 +500,7 @@ registerAction2(class PeekImplementationAction extends ImplementationAction {
|
|
|
500
500
|
muteMessage: false
|
|
501
501
|
}, {
|
|
502
502
|
id: PeekImplementationAction.ID,
|
|
503
|
-
title: nls.localize2(
|
|
503
|
+
title: nls.localize2(1081, "Peek Implementations"),
|
|
504
504
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasImplementationProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
505
505
|
keybinding: {
|
|
506
506
|
when: EditorContextKeys.editorTextFocus,
|
|
@@ -520,8 +520,8 @@ registerAction2(class PeekImplementationAction extends ImplementationAction {
|
|
|
520
520
|
class ReferencesAction extends SymbolNavigationAction {
|
|
521
521
|
_getNoResultFoundMessage(info) {
|
|
522
522
|
return info
|
|
523
|
-
? nls.localize(
|
|
524
|
-
: nls.localize(
|
|
523
|
+
? nls.localize(1065, "No references found for '{0}'", info.word)
|
|
524
|
+
: nls.localize(1066, "No references found");
|
|
525
525
|
}
|
|
526
526
|
_getAlternativeCommand(editor) {
|
|
527
527
|
return editor.getOption(67 /* EditorOption.gotoLocation */).alternativeReferenceCommand;
|
|
@@ -539,8 +539,8 @@ registerAction2(class GoToReferencesAction extends ReferencesAction {
|
|
|
539
539
|
}, {
|
|
540
540
|
id: 'editor.action.goToReferences',
|
|
541
541
|
title: {
|
|
542
|
-
...nls.localize2(
|
|
543
|
-
mnemonicTitle: nls.localize(
|
|
542
|
+
...nls.localize2(1082, "Go to References"),
|
|
543
|
+
mnemonicTitle: nls.localize(1067, "Go to &&References"),
|
|
544
544
|
},
|
|
545
545
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasReferenceProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
546
546
|
keybinding: {
|
|
@@ -561,7 +561,7 @@ registerAction2(class GoToReferencesAction extends ReferencesAction {
|
|
|
561
561
|
});
|
|
562
562
|
}
|
|
563
563
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
564
|
-
return new ReferencesModel(await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, true, false, token), nls.localize(
|
|
564
|
+
return new ReferencesModel(await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, true, false, token), nls.localize(1068, 'References'));
|
|
565
565
|
}
|
|
566
566
|
});
|
|
567
567
|
registerAction2(class PeekReferencesAction extends ReferencesAction {
|
|
@@ -572,7 +572,7 @@ registerAction2(class PeekReferencesAction extends ReferencesAction {
|
|
|
572
572
|
muteMessage: false
|
|
573
573
|
}, {
|
|
574
574
|
id: 'editor.action.referenceSearch.trigger',
|
|
575
|
-
title: nls.localize2(
|
|
575
|
+
title: nls.localize2(1083, "Peek References"),
|
|
576
576
|
precondition: ContextKeyExpr.and(EditorContextKeys.hasReferenceProvider, PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
577
577
|
menu: {
|
|
578
578
|
id: MenuId.EditorContextPeek,
|
|
@@ -582,7 +582,7 @@ registerAction2(class PeekReferencesAction extends ReferencesAction {
|
|
|
582
582
|
});
|
|
583
583
|
}
|
|
584
584
|
async _getLocationModel(languageFeaturesService, model, position, token) {
|
|
585
|
-
return new ReferencesModel(await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, false, false, token), nls.localize(
|
|
585
|
+
return new ReferencesModel(await getReferencesAtPosition(languageFeaturesService.referenceProvider, model, position, false, false, token), nls.localize(1069, 'References'));
|
|
586
586
|
}
|
|
587
587
|
});
|
|
588
588
|
//#endregion
|
|
@@ -591,17 +591,17 @@ class GenericGoToLocationAction extends SymbolNavigationAction {
|
|
|
591
591
|
constructor(config, _references, _gotoMultipleBehaviour) {
|
|
592
592
|
super(config, {
|
|
593
593
|
id: 'editor.action.goToLocation',
|
|
594
|
-
title: nls.localize2(
|
|
594
|
+
title: nls.localize2(1084, "Go to Any Symbol"),
|
|
595
595
|
precondition: ContextKeyExpr.and(PeekContext.notInPeekEditor, EditorContextKeys.isInEmbeddedEditor.toNegated()),
|
|
596
596
|
});
|
|
597
597
|
this._references = _references;
|
|
598
598
|
this._gotoMultipleBehaviour = _gotoMultipleBehaviour;
|
|
599
599
|
}
|
|
600
600
|
async _getLocationModel(languageFeaturesService, _model, _position, _token) {
|
|
601
|
-
return new ReferencesModel(this._references, nls.localize(
|
|
601
|
+
return new ReferencesModel(this._references, nls.localize(1070, 'Locations'));
|
|
602
602
|
}
|
|
603
603
|
_getNoResultFoundMessage(info) {
|
|
604
|
-
return info && nls.localize(
|
|
604
|
+
return info && nls.localize(1071, "No results for '{0}'", info.word) || '';
|
|
605
605
|
}
|
|
606
606
|
_getGoToPreference(editor) {
|
|
607
607
|
return this._gotoMultipleBehaviour ?? editor.getOption(67 /* EditorOption.gotoLocation */).multipleReferences;
|
|
@@ -680,7 +680,7 @@ CommandsRegistry.registerCommand({
|
|
|
680
680
|
if (!controller) {
|
|
681
681
|
return undefined;
|
|
682
682
|
}
|
|
683
|
-
const references = createCancelablePromise(token => getReferencesAtPosition(languageFeaturesService.referenceProvider, control.getModel(), corePosition.Position.lift(position), false, false, token).then(references => new ReferencesModel(references, nls.localize(
|
|
683
|
+
const references = createCancelablePromise(token => getReferencesAtPosition(languageFeaturesService.referenceProvider, control.getModel(), corePosition.Position.lift(position), false, false, token).then(references => new ReferencesModel(references, nls.localize(1072, 'References'))));
|
|
684
684
|
const range = new Range(position.lineNumber, position.column, position.lineNumber, position.column);
|
|
685
685
|
return Promise.resolve(controller.toggleWidget(range, references, false));
|
|
686
686
|
});
|
|
@@ -150,7 +150,7 @@ let GotoDefinitionAtPositionEditorContribution = class GotoDefinitionAtPositionE
|
|
|
150
150
|
combinedRange = Range.plusRange(combinedRange, originSelectionRange);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
this.addDecoration(combinedRange, new MarkdownString().appendText(nls.localize(
|
|
153
|
+
this.addDecoration(combinedRange, new MarkdownString().appendText(nls.localize(1085, "Click to show {0} definitions.", results.length)));
|
|
154
154
|
}
|
|
155
155
|
else {
|
|
156
156
|
// Single result
|
|
@@ -34,7 +34,7 @@ import { OneReference } from '../referencesModel.js';
|
|
|
34
34
|
import { LayoutData, ReferenceWidget } from './referencesWidget.js';
|
|
35
35
|
import { EditorContextKeys } from '../../../../common/editorContextKeys.js';
|
|
36
36
|
import { InputFocusedContext } from '../../../../../platform/contextkey/common/contextkeys.js';
|
|
37
|
-
export const ctxReferenceSearchVisible = new RawContextKey('referenceSearchVisible', false, nls.localize(
|
|
37
|
+
export const ctxReferenceSearchVisible = new RawContextKey('referenceSearchVisible', false, nls.localize(1086, "Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));
|
|
38
38
|
let ReferencesController = class ReferencesController {
|
|
39
39
|
static { ReferencesController_1 = this; }
|
|
40
40
|
static { this.ID = 'editor.contrib.referencesController'; }
|
|
@@ -84,7 +84,7 @@ let ReferencesController = class ReferencesController {
|
|
|
84
84
|
const storageKey = 'peekViewLayout';
|
|
85
85
|
const data = LayoutData.fromJSON(this._storageService.get(storageKey, 0 /* StorageScope.PROFILE */, '{}'));
|
|
86
86
|
this._widget = this._instantiationService.createInstance(ReferenceWidget, this._editor, this._defaultTreeKeyboardSupport, data);
|
|
87
|
-
this._widget.setTitle(nls.localize(
|
|
87
|
+
this._widget.setTitle(nls.localize(1087, "Loading..."));
|
|
88
88
|
this._widget.show(range);
|
|
89
89
|
this._disposables.add(this._widget.onDidClose(() => {
|
|
90
90
|
modelPromise.cancel();
|
|
@@ -140,7 +140,7 @@ let ReferencesController = class ReferencesController {
|
|
|
140
140
|
if (this._widget && this._model && this._editor.hasModel()) { // might have been closed
|
|
141
141
|
// set title
|
|
142
142
|
if (!this._model.isEmpty) {
|
|
143
|
-
this._widget.setMetaTitle(nls.localize(
|
|
143
|
+
this._widget.setMetaTitle(nls.localize(1088, "{0} ({1})", this._model.title, this._model.references.length));
|
|
144
144
|
}
|
|
145
145
|
else {
|
|
146
146
|
this._widget.setMetaTitle('');
|
|
@@ -115,10 +115,10 @@ let FileReferencesTemplate = class FileReferencesTemplate extends Disposable {
|
|
|
115
115
|
const len = element.children.length;
|
|
116
116
|
this.badge.setCount(len);
|
|
117
117
|
if (len > 1) {
|
|
118
|
-
this.badge.setTitleFormat(localize(
|
|
118
|
+
this.badge.setTitleFormat(localize(1089, "{0} references", len));
|
|
119
119
|
}
|
|
120
120
|
else {
|
|
121
|
-
this.badge.setTitleFormat(localize(
|
|
121
|
+
this.badge.setTitleFormat(localize(1090, "{0} reference", len));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
@@ -192,7 +192,7 @@ export class OneReferenceRenderer {
|
|
|
192
192
|
//#endregion
|
|
193
193
|
export class AccessibilityProvider {
|
|
194
194
|
getWidgetAriaLabel() {
|
|
195
|
-
return localize(
|
|
195
|
+
return localize(1091, "References");
|
|
196
196
|
}
|
|
197
197
|
getAriaLabel(element) {
|
|
198
198
|
return element.ariaMessage;
|
|
@@ -301,7 +301,7 @@ let ReferenceWidget = class ReferenceWidget extends peekView.PeekViewWidget {
|
|
|
301
301
|
};
|
|
302
302
|
this._preview = this._instantiationService.createInstance(EmbeddedCodeEditorWidget, this._previewContainer, options, {}, this.editor);
|
|
303
303
|
dom.hide(this._previewContainer);
|
|
304
|
-
this._previewNotAvailableMessage = this._instantiationService.createInstance(TextModel, nls.localize(
|
|
304
|
+
this._previewNotAvailableMessage = this._instantiationService.createInstance(TextModel, nls.localize(1092, "no preview available"), PLAINTEXT_LANGUAGE_ID, TextModel.DEFAULT_CREATION_OPTIONS, null);
|
|
305
305
|
// tree
|
|
306
306
|
this._treeContainer = dom.append(containerElement, dom.$('div.ref-tree.inline'));
|
|
307
307
|
const treeOptions = {
|
|
@@ -415,7 +415,7 @@ let ReferenceWidget = class ReferenceWidget extends peekView.PeekViewWidget {
|
|
|
415
415
|
}
|
|
416
416
|
if (this._model.isEmpty) {
|
|
417
417
|
this.setTitle('');
|
|
418
|
-
this._messageContainer.innerText = nls.localize(
|
|
418
|
+
this._messageContainer.innerText = nls.localize(1093, "No results");
|
|
419
419
|
dom.show(this._messageContainer);
|
|
420
420
|
return Promise.resolve(undefined);
|
|
421
421
|
}
|
|
@@ -476,7 +476,7 @@ let ReferenceWidget = class ReferenceWidget extends peekView.PeekViewWidget {
|
|
|
476
476
|
this.setTitle(basenameOrAuthority(reference.uri), this._uriLabel.getUriLabel(dirname(reference.uri)));
|
|
477
477
|
}
|
|
478
478
|
else {
|
|
479
|
-
this.setTitle(nls.localize(
|
|
479
|
+
this.setTitle(nls.localize(1094, "References"));
|
|
480
480
|
}
|
|
481
481
|
const promise = this._textModelResolverService.createModelReference(reference.uri);
|
|
482
482
|
if (this._tree.getInput() === reference.parent) {
|
|
@@ -32,10 +32,10 @@ export class OneReference {
|
|
|
32
32
|
get ariaMessage() {
|
|
33
33
|
const preview = this.parent.getPreview(this)?.preview(this.range);
|
|
34
34
|
if (!preview) {
|
|
35
|
-
return localize(
|
|
35
|
+
return localize(1095, "in {0} on line {1} at column {2}", basename(this.uri), this.range.startLineNumber, this.range.startColumn);
|
|
36
36
|
}
|
|
37
37
|
else {
|
|
38
|
-
return localize(
|
|
38
|
+
return localize(1096, "{0} in {1} on line {2} at column {3}", preview.value, basename(this.uri), this.range.startLineNumber, this.range.startColumn);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -81,10 +81,10 @@ export class FileReferences {
|
|
|
81
81
|
get ariaMessage() {
|
|
82
82
|
const len = this.children.length;
|
|
83
83
|
if (len === 1) {
|
|
84
|
-
return localize(
|
|
84
|
+
return localize(1097, "1 symbol in {0}, full path {1}", basename(this.uri), this.uri.fsPath);
|
|
85
85
|
}
|
|
86
86
|
else {
|
|
87
|
-
return localize(
|
|
87
|
+
return localize(1098, "{0} symbols in {1}, full path {2}", len, basename(this.uri), this.uri.fsPath);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
async resolve(textModelResolverService) {
|
|
@@ -148,16 +148,16 @@ export class ReferencesModel {
|
|
|
148
148
|
}
|
|
149
149
|
get ariaMessage() {
|
|
150
150
|
if (this.isEmpty) {
|
|
151
|
-
return localize(
|
|
151
|
+
return localize(1099, "No results found");
|
|
152
152
|
}
|
|
153
153
|
else if (this.references.length === 1) {
|
|
154
|
-
return localize(
|
|
154
|
+
return localize(1100, "Found 1 symbol in {0}", this.references[0].uri.fsPath);
|
|
155
155
|
}
|
|
156
156
|
else if (this.groups.length === 1) {
|
|
157
|
-
return localize(
|
|
157
|
+
return localize(1101, "Found {0} symbols in {1}", this.references.length, this.groups[0].uri.fsPath);
|
|
158
158
|
}
|
|
159
159
|
else {
|
|
160
|
-
return localize(
|
|
160
|
+
return localize(1102, "Found {0} symbols in {1} files", this.references.length, this.groups.length);
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
nextOrPreviousReference(reference, next) {
|
|
@@ -24,7 +24,7 @@ import { createDecorator } from '../../../../platform/instantiation/common/insta
|
|
|
24
24
|
import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
|
|
25
25
|
import { KeybindingsRegistry } from '../../../../platform/keybinding/common/keybindingsRegistry.js';
|
|
26
26
|
import { INotificationService } from '../../../../platform/notification/common/notification.js';
|
|
27
|
-
export const ctxHasSymbols = new RawContextKey('hasSymbols', false, localize(
|
|
27
|
+
export const ctxHasSymbols = new RawContextKey('hasSymbols', false, localize(1103, "Whether there are symbol locations that can be navigated via keyboard-only."));
|
|
28
28
|
export const ISymbolNavigationService = createDecorator('ISymbolNavigationService');
|
|
29
29
|
let SymbolNavigationService = class SymbolNavigationService {
|
|
30
30
|
constructor(contextKeyService, _editorService, _notificationService, _keybindingService) {
|
|
@@ -110,8 +110,8 @@ let SymbolNavigationService = class SymbolNavigationService {
|
|
|
110
110
|
this._currentMessage?.close();
|
|
111
111
|
const kb = this._keybindingService.lookupKeybinding('editor.gotoNextSymbolFromResult');
|
|
112
112
|
const message = kb
|
|
113
|
-
? localize(
|
|
114
|
-
: localize(
|
|
113
|
+
? localize(1104, "Symbol {0} of {1}, {2} for next", this._currentIdx + 1, this._currentModel.references.length, kb.getLabel())
|
|
114
|
+
: localize(1105, "Symbol {0} of {1}", this._currentIdx + 1, this._currentModel.references.length);
|
|
115
115
|
this._currentMessage = this._notificationService.status(message);
|
|
116
116
|
}
|
|
117
117
|
};
|
|
@@ -21,7 +21,7 @@ class DebugEditorGpuRendererAction extends EditorAction {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super({
|
|
23
23
|
id: 'editor.action.debugEditorGpuRenderer',
|
|
24
|
-
label: localize2(
|
|
24
|
+
label: localize2(1109, "Developer: Debug Editor GPU Renderer"),
|
|
25
25
|
// TODO: Why doesn't `ContextKeyExpr.equals('config:editor.experimentalGpuAcceleration', 'on')` work?
|
|
26
26
|
precondition: ContextKeyExpr.true(),
|
|
27
27
|
});
|
|
@@ -31,15 +31,15 @@ class DebugEditorGpuRendererAction extends EditorAction {
|
|
|
31
31
|
const quickInputService = accessor.get(IQuickInputService);
|
|
32
32
|
const choice = await quickInputService.pick([
|
|
33
33
|
{
|
|
34
|
-
label: localize(
|
|
34
|
+
label: localize(1106, "Log Texture Atlas Stats"),
|
|
35
35
|
id: 'logTextureAtlasStats',
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
label: localize(
|
|
38
|
+
label: localize(1107, "Save Texture Atlas"),
|
|
39
39
|
id: 'saveTextureAtlas',
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
label: localize(
|
|
42
|
+
label: localize(1108, "Draw Glyph"),
|
|
43
43
|
id: 'drawGlyph',
|
|
44
44
|
},
|
|
45
45
|
], { canPickMany: false });
|
|
@@ -15,7 +15,7 @@ export const PAGE_DOWN_HOVER_ACTION_ID = 'editor.action.pageDownHover';
|
|
|
15
15
|
export const GO_TO_TOP_HOVER_ACTION_ID = 'editor.action.goToTopHover';
|
|
16
16
|
export const GO_TO_BOTTOM_HOVER_ACTION_ID = 'editor.action.goToBottomHover';
|
|
17
17
|
export const INCREASE_HOVER_VERBOSITY_ACTION_ID = 'editor.action.increaseHoverVerbosityLevel';
|
|
18
|
-
export const INCREASE_HOVER_VERBOSITY_ACTION_LABEL = nls.localize(
|
|
18
|
+
export const INCREASE_HOVER_VERBOSITY_ACTION_LABEL = nls.localize(1110, "Increase Hover Verbosity Level");
|
|
19
19
|
export const DECREASE_HOVER_VERBOSITY_ACTION_ID = 'editor.action.decreaseHoverVerbosityLevel';
|
|
20
|
-
export const DECREASE_HOVER_VERBOSITY_ACTION_LABEL = nls.localize(
|
|
20
|
+
export const DECREASE_HOVER_VERBOSITY_ACTION_LABEL = nls.localize(1111, "Decrease Hover Verbosity Level");
|
|
21
21
|
//# sourceMappingURL=hoverActionIds.js.map
|