@codingame/monaco-vscode-api 15.0.0 → 15.0.2
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/missing-services.js +53 -4
- package/package.json +8 -8
- package/services.js +5 -5
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +2 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +125 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +2 -3
- package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -3
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +2 -3
- package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -3
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.d.ts +15 -0
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +93 -0
- package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +2 -3
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +4 -4
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.d.ts +45 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +215 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.service.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.d.ts +26 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +178 -0
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- 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 +24 -24
- 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/inlayHintsController.js +1 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/indicatorView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +18 -18
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- 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.d.ts +6 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -22
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.d.ts +67 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +232 -0
- 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/suggest/browser/wordContextKey.js +1 -1
- 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/editor/standalone/browser/standaloneServices.js +12 -8
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +54 -54
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +255 -13
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +26 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +230 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- 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 +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +94 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +22 -23
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- 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/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
- package/vscode/src/vs/workbench/common/editor/editorOptions.d.ts +3 -0
- package/vscode/src/vs/workbench/common/editor/editorOptions.js +52 -0
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +141 -141
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +32 -32
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.d.ts +13 -0
- package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +87 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +83 -83
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +12 -12
|
@@ -24,10 +24,10 @@ class ShowOrFocusHoverAction extends EditorAction {
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super({
|
|
26
26
|
id: SHOW_OR_FOCUS_HOVER_ACTION_ID,
|
|
27
|
-
label: ( localize2(
|
|
27
|
+
label: ( localize2(1138, "Show or Focus Hover")),
|
|
28
28
|
metadata: {
|
|
29
29
|
description: ( localize2(
|
|
30
|
-
|
|
30
|
+
1139,
|
|
31
31
|
'Show or focus the editor hover which shows documentation, references, and other content for a symbol at the current cursor position.'
|
|
32
32
|
)),
|
|
33
33
|
args: [{
|
|
@@ -39,9 +39,9 @@ class ShowOrFocusHoverAction extends EditorAction {
|
|
|
39
39
|
description: 'Controls if and when the hover should take focus upon being triggered by this action.',
|
|
40
40
|
enum: [HoverFocusBehavior.NoAutoFocus, HoverFocusBehavior.FocusIfVisible, HoverFocusBehavior.AutoFocusImmediately],
|
|
41
41
|
enumDescriptions: [
|
|
42
|
-
( localize(
|
|
43
|
-
( localize(
|
|
44
|
-
( localize(
|
|
42
|
+
( localize(1140, 'The hover will not automatically take focus.')),
|
|
43
|
+
( localize(1141, 'The hover will take focus only if it is already visible.')),
|
|
44
|
+
( localize(1142, 'The hover will automatically take focus when it appears.')),
|
|
45
45
|
],
|
|
46
46
|
default: HoverFocusBehavior.FocusIfVisible,
|
|
47
47
|
}
|
|
@@ -96,10 +96,10 @@ class ShowDefinitionPreviewHoverAction extends EditorAction {
|
|
|
96
96
|
constructor() {
|
|
97
97
|
super({
|
|
98
98
|
id: SHOW_DEFINITION_PREVIEW_HOVER_ACTION_ID,
|
|
99
|
-
label: ( localize2(
|
|
99
|
+
label: ( localize2(1143, "Show Definition Preview Hover")),
|
|
100
100
|
precondition: undefined,
|
|
101
101
|
metadata: {
|
|
102
|
-
description: ( localize2(
|
|
102
|
+
description: ( localize2(1144, 'Show the definition preview hover in the editor.')),
|
|
103
103
|
},
|
|
104
104
|
});
|
|
105
105
|
}
|
|
@@ -127,7 +127,7 @@ class HideContentHoverAction extends EditorAction {
|
|
|
127
127
|
constructor() {
|
|
128
128
|
super({
|
|
129
129
|
id: HIDE_HOVER_ACTION_ID,
|
|
130
|
-
label: ( localize2(
|
|
130
|
+
label: ( localize2(1145, "Hide Hover")),
|
|
131
131
|
alias: 'Hide Content Hover',
|
|
132
132
|
precondition: undefined
|
|
133
133
|
});
|
|
@@ -140,7 +140,7 @@ class ScrollUpHoverAction extends EditorAction {
|
|
|
140
140
|
constructor() {
|
|
141
141
|
super({
|
|
142
142
|
id: SCROLL_UP_HOVER_ACTION_ID,
|
|
143
|
-
label: ( localize2(
|
|
143
|
+
label: ( localize2(1146, "Scroll Up Hover")),
|
|
144
144
|
precondition: EditorContextKeys.hoverFocused,
|
|
145
145
|
kbOpts: {
|
|
146
146
|
kbExpr: EditorContextKeys.hoverFocused,
|
|
@@ -148,7 +148,7 @@ class ScrollUpHoverAction extends EditorAction {
|
|
|
148
148
|
weight: KeybindingWeight.EditorContrib
|
|
149
149
|
},
|
|
150
150
|
metadata: {
|
|
151
|
-
description: ( localize2(
|
|
151
|
+
description: ( localize2(1147, 'Scroll up the editor hover.'))
|
|
152
152
|
},
|
|
153
153
|
});
|
|
154
154
|
}
|
|
@@ -164,7 +164,7 @@ class ScrollDownHoverAction extends EditorAction {
|
|
|
164
164
|
constructor() {
|
|
165
165
|
super({
|
|
166
166
|
id: SCROLL_DOWN_HOVER_ACTION_ID,
|
|
167
|
-
label: ( localize2(
|
|
167
|
+
label: ( localize2(1148, "Scroll Down Hover")),
|
|
168
168
|
precondition: EditorContextKeys.hoverFocused,
|
|
169
169
|
kbOpts: {
|
|
170
170
|
kbExpr: EditorContextKeys.hoverFocused,
|
|
@@ -172,7 +172,7 @@ class ScrollDownHoverAction extends EditorAction {
|
|
|
172
172
|
weight: KeybindingWeight.EditorContrib
|
|
173
173
|
},
|
|
174
174
|
metadata: {
|
|
175
|
-
description: ( localize2(
|
|
175
|
+
description: ( localize2(1149, 'Scroll down the editor hover.')),
|
|
176
176
|
},
|
|
177
177
|
});
|
|
178
178
|
}
|
|
@@ -188,7 +188,7 @@ class ScrollLeftHoverAction extends EditorAction {
|
|
|
188
188
|
constructor() {
|
|
189
189
|
super({
|
|
190
190
|
id: SCROLL_LEFT_HOVER_ACTION_ID,
|
|
191
|
-
label: ( localize2(
|
|
191
|
+
label: ( localize2(1150, "Scroll Left Hover")),
|
|
192
192
|
precondition: EditorContextKeys.hoverFocused,
|
|
193
193
|
kbOpts: {
|
|
194
194
|
kbExpr: EditorContextKeys.hoverFocused,
|
|
@@ -196,7 +196,7 @@ class ScrollLeftHoverAction extends EditorAction {
|
|
|
196
196
|
weight: KeybindingWeight.EditorContrib
|
|
197
197
|
},
|
|
198
198
|
metadata: {
|
|
199
|
-
description: ( localize2(
|
|
199
|
+
description: ( localize2(1151, 'Scroll left the editor hover.')),
|
|
200
200
|
},
|
|
201
201
|
});
|
|
202
202
|
}
|
|
@@ -212,7 +212,7 @@ class ScrollRightHoverAction extends EditorAction {
|
|
|
212
212
|
constructor() {
|
|
213
213
|
super({
|
|
214
214
|
id: SCROLL_RIGHT_HOVER_ACTION_ID,
|
|
215
|
-
label: ( localize2(
|
|
215
|
+
label: ( localize2(1152, "Scroll Right Hover")),
|
|
216
216
|
precondition: EditorContextKeys.hoverFocused,
|
|
217
217
|
kbOpts: {
|
|
218
218
|
kbExpr: EditorContextKeys.hoverFocused,
|
|
@@ -220,7 +220,7 @@ class ScrollRightHoverAction extends EditorAction {
|
|
|
220
220
|
weight: KeybindingWeight.EditorContrib
|
|
221
221
|
},
|
|
222
222
|
metadata: {
|
|
223
|
-
description: ( localize2(
|
|
223
|
+
description: ( localize2(1153, 'Scroll right the editor hover.'))
|
|
224
224
|
},
|
|
225
225
|
});
|
|
226
226
|
}
|
|
@@ -236,7 +236,7 @@ class PageUpHoverAction extends EditorAction {
|
|
|
236
236
|
constructor() {
|
|
237
237
|
super({
|
|
238
238
|
id: PAGE_UP_HOVER_ACTION_ID,
|
|
239
|
-
label: ( localize2(
|
|
239
|
+
label: ( localize2(1154, "Page Up Hover")),
|
|
240
240
|
precondition: EditorContextKeys.hoverFocused,
|
|
241
241
|
kbOpts: {
|
|
242
242
|
kbExpr: EditorContextKeys.hoverFocused,
|
|
@@ -245,7 +245,7 @@ class PageUpHoverAction extends EditorAction {
|
|
|
245
245
|
weight: KeybindingWeight.EditorContrib
|
|
246
246
|
},
|
|
247
247
|
metadata: {
|
|
248
|
-
description: ( localize2(
|
|
248
|
+
description: ( localize2(1155, 'Page up the editor hover.')),
|
|
249
249
|
},
|
|
250
250
|
});
|
|
251
251
|
}
|
|
@@ -261,7 +261,7 @@ class PageDownHoverAction extends EditorAction {
|
|
|
261
261
|
constructor() {
|
|
262
262
|
super({
|
|
263
263
|
id: PAGE_DOWN_HOVER_ACTION_ID,
|
|
264
|
-
label: ( localize2(
|
|
264
|
+
label: ( localize2(1156, "Page Down Hover")),
|
|
265
265
|
precondition: EditorContextKeys.hoverFocused,
|
|
266
266
|
kbOpts: {
|
|
267
267
|
kbExpr: EditorContextKeys.hoverFocused,
|
|
@@ -270,7 +270,7 @@ class PageDownHoverAction extends EditorAction {
|
|
|
270
270
|
weight: KeybindingWeight.EditorContrib
|
|
271
271
|
},
|
|
272
272
|
metadata: {
|
|
273
|
-
description: ( localize2(
|
|
273
|
+
description: ( localize2(1157, 'Page down the editor hover.')),
|
|
274
274
|
},
|
|
275
275
|
});
|
|
276
276
|
}
|
|
@@ -286,7 +286,7 @@ class GoToTopHoverAction extends EditorAction {
|
|
|
286
286
|
constructor() {
|
|
287
287
|
super({
|
|
288
288
|
id: GO_TO_TOP_HOVER_ACTION_ID,
|
|
289
|
-
label: ( localize2(
|
|
289
|
+
label: ( localize2(1158, "Go To Top Hover")),
|
|
290
290
|
precondition: EditorContextKeys.hoverFocused,
|
|
291
291
|
kbOpts: {
|
|
292
292
|
kbExpr: EditorContextKeys.hoverFocused,
|
|
@@ -295,7 +295,7 @@ class GoToTopHoverAction extends EditorAction {
|
|
|
295
295
|
weight: KeybindingWeight.EditorContrib
|
|
296
296
|
},
|
|
297
297
|
metadata: {
|
|
298
|
-
description: ( localize2(
|
|
298
|
+
description: ( localize2(1159, 'Go to the top of the editor hover.')),
|
|
299
299
|
},
|
|
300
300
|
});
|
|
301
301
|
}
|
|
@@ -311,7 +311,7 @@ class GoToBottomHoverAction extends EditorAction {
|
|
|
311
311
|
constructor() {
|
|
312
312
|
super({
|
|
313
313
|
id: GO_TO_BOTTOM_HOVER_ACTION_ID,
|
|
314
|
-
label: ( localize2(
|
|
314
|
+
label: ( localize2(1160, "Go To Bottom Hover")),
|
|
315
315
|
precondition: EditorContextKeys.hoverFocused,
|
|
316
316
|
kbOpts: {
|
|
317
317
|
kbExpr: EditorContextKeys.hoverFocused,
|
|
@@ -320,7 +320,7 @@ class GoToBottomHoverAction extends EditorAction {
|
|
|
320
320
|
weight: KeybindingWeight.EditorContrib
|
|
321
321
|
},
|
|
322
322
|
metadata: {
|
|
323
|
-
description: ( localize2(
|
|
323
|
+
description: ( localize2(1161, 'Go to the bottom of the editor hover.'))
|
|
324
324
|
},
|
|
325
325
|
});
|
|
326
326
|
}
|
|
@@ -30,8 +30,8 @@ import { getHoverProviderResultsAsAsyncIterable } from './getHover.js';
|
|
|
30
30
|
import { ICommandService } from '../../../../platform/commands/common/commands.service.js';
|
|
31
31
|
|
|
32
32
|
const $ = $$1;
|
|
33
|
-
const increaseHoverVerbosityIcon = registerIcon('hover-increase-verbosity', Codicon.add, ( localize(
|
|
34
|
-
const decreaseHoverVerbosityIcon = registerIcon('hover-decrease-verbosity', Codicon.remove, ( localize(
|
|
33
|
+
const increaseHoverVerbosityIcon = registerIcon('hover-increase-verbosity', Codicon.add, ( localize(1162, 'Icon for increaseing hover verbosity.')));
|
|
34
|
+
const decreaseHoverVerbosityIcon = registerIcon('hover-decrease-verbosity', Codicon.remove, ( localize(1163, 'Icon for decreasing hover verbosity.')));
|
|
35
35
|
class MarkdownHover {
|
|
36
36
|
constructor(owner, range, contents, isBeforeContent, ordinal, source = undefined) {
|
|
37
37
|
this.owner = owner;
|
|
@@ -78,7 +78,7 @@ let MarkdownHoverParticipant = class MarkdownHoverParticipant {
|
|
|
78
78
|
return (new MarkdownHover(
|
|
79
79
|
this,
|
|
80
80
|
anchor.range,
|
|
81
|
-
[( new MarkdownString()).appendText(( localize(
|
|
81
|
+
[( new MarkdownString()).appendText(( localize(1164, "Loading...")))],
|
|
82
82
|
false,
|
|
83
83
|
2000
|
|
84
84
|
));
|
|
@@ -103,7 +103,7 @@ let MarkdownHoverParticipant = class MarkdownHoverParticipant {
|
|
|
103
103
|
stopRenderingMessage = true;
|
|
104
104
|
result.push(( new MarkdownHover(this, anchor.range, [{
|
|
105
105
|
value: ( localize(
|
|
106
|
-
|
|
106
|
+
1165,
|
|
107
107
|
"Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`."
|
|
108
108
|
))
|
|
109
109
|
}], false, index++)));
|
|
@@ -111,7 +111,7 @@ let MarkdownHoverParticipant = class MarkdownHoverParticipant {
|
|
|
111
111
|
if (!stopRenderingMessage && typeof maxTokenizationLineLength === 'number' && lineLength >= maxTokenizationLineLength) {
|
|
112
112
|
result.push(( new MarkdownHover(this, anchor.range, [{
|
|
113
113
|
value: ( localize(
|
|
114
|
-
|
|
114
|
+
1166,
|
|
115
115
|
"Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`."
|
|
116
116
|
))
|
|
117
117
|
}], false, index++)));
|
|
@@ -460,14 +460,14 @@ function labelForHoverVerbosityAction(keybindingService, action) {
|
|
|
460
460
|
case HoverVerbosityAction.Increase: {
|
|
461
461
|
const kb = keybindingService.lookupKeybinding(INCREASE_HOVER_VERBOSITY_ACTION_ID);
|
|
462
462
|
return kb ?
|
|
463
|
-
( localize(
|
|
464
|
-
( localize(
|
|
463
|
+
( localize(1167, "Increase Hover Verbosity ({0})", kb.getLabel())) :
|
|
464
|
+
( localize(1168, "Increase Hover Verbosity"));
|
|
465
465
|
}
|
|
466
466
|
case HoverVerbosityAction.Decrease: {
|
|
467
467
|
const kb = keybindingService.lookupKeybinding(DECREASE_HOVER_VERBOSITY_ACTION_ID);
|
|
468
468
|
return kb ?
|
|
469
|
-
( localize(
|
|
470
|
-
( localize(
|
|
469
|
+
( localize(1169, "Decrease Hover Verbosity ({0})", kb.getLabel())) :
|
|
470
|
+
( localize(1170, "Decrease Hover Verbosity"));
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
473
|
}
|
|
@@ -162,7 +162,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
162
162
|
const markerController = MarkerController.get(this._editor);
|
|
163
163
|
if (markerController) {
|
|
164
164
|
context.statusBar.addAction({
|
|
165
|
-
label: ( localize(
|
|
165
|
+
label: ( localize(1171, "View Problem")),
|
|
166
166
|
commandId: NextMarkerAction.ID,
|
|
167
167
|
run: () => {
|
|
168
168
|
context.hide();
|
|
@@ -177,14 +177,14 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
177
177
|
if (this.recentMarkerCodeActionsInfo) {
|
|
178
178
|
if (IMarkerData.makeKey(this.recentMarkerCodeActionsInfo.marker) === IMarkerData.makeKey(markerHover.marker)) {
|
|
179
179
|
if (!this.recentMarkerCodeActionsInfo.hasCodeActions) {
|
|
180
|
-
quickfixPlaceholderElement.textContent = ( localize(
|
|
180
|
+
quickfixPlaceholderElement.textContent = ( localize(1172, "No quick fixes available"));
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
else {
|
|
184
184
|
this.recentMarkerCodeActionsInfo = undefined;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
const updatePlaceholderDisposable = this.recentMarkerCodeActionsInfo && !this.recentMarkerCodeActionsInfo.hasCodeActions ? Disposable.None : disposableTimeout(() => quickfixPlaceholderElement.textContent = ( localize(
|
|
187
|
+
const updatePlaceholderDisposable = this.recentMarkerCodeActionsInfo && !this.recentMarkerCodeActionsInfo.hasCodeActions ? Disposable.None : disposableTimeout(() => quickfixPlaceholderElement.textContent = ( localize(1173, "Checking for quick fixes...")), 200, disposables);
|
|
188
188
|
if (!quickfixPlaceholderElement.textContent) {
|
|
189
189
|
quickfixPlaceholderElement.textContent = String.fromCharCode(0xA0);
|
|
190
190
|
}
|
|
@@ -195,7 +195,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
195
195
|
this.recentMarkerCodeActionsInfo = { marker: markerHover.marker, hasCodeActions: actions.validActions.length > 0 };
|
|
196
196
|
if (!this.recentMarkerCodeActionsInfo.hasCodeActions) {
|
|
197
197
|
actions.dispose();
|
|
198
|
-
quickfixPlaceholderElement.textContent = ( localize(
|
|
198
|
+
quickfixPlaceholderElement.textContent = ( localize(1172, "No quick fixes available"));
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
quickfixPlaceholderElement.style.display = 'none';
|
|
@@ -206,7 +206,7 @@ let MarkerHoverParticipant = class MarkerHoverParticipant {
|
|
|
206
206
|
}
|
|
207
207
|
}));
|
|
208
208
|
context.statusBar.addAction({
|
|
209
|
-
label: ( localize(
|
|
209
|
+
label: ( localize(1174, "Quick Fix...")),
|
|
210
210
|
commandId: quickFixCommandId,
|
|
211
211
|
run: (target) => {
|
|
212
212
|
showing = true;
|
|
@@ -95,7 +95,7 @@ class InPlaceReplaceUp extends EditorAction {
|
|
|
95
95
|
constructor() {
|
|
96
96
|
super({
|
|
97
97
|
id: 'editor.action.inPlaceReplace.up',
|
|
98
|
-
label: ( localize2(
|
|
98
|
+
label: ( localize2(1175, "Replace with Previous Value")),
|
|
99
99
|
precondition: EditorContextKeys.writable,
|
|
100
100
|
kbOpts: {
|
|
101
101
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -116,7 +116,7 @@ class InPlaceReplaceDown extends EditorAction {
|
|
|
116
116
|
constructor() {
|
|
117
117
|
super({
|
|
118
118
|
id: 'editor.action.inPlaceReplace.down',
|
|
119
|
-
label: ( localize2(
|
|
119
|
+
label: ( localize2(1176, "Replace with Next Value")),
|
|
120
120
|
precondition: EditorContextKeys.writable,
|
|
121
121
|
kbOpts: {
|
|
122
122
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -23,10 +23,10 @@ class IndentationToSpacesAction extends EditorAction {
|
|
|
23
23
|
constructor() {
|
|
24
24
|
super({
|
|
25
25
|
id: IndentationToSpacesAction.ID,
|
|
26
|
-
label: ( localize2(
|
|
26
|
+
label: ( localize2(1177, "Convert Indentation to Spaces")),
|
|
27
27
|
precondition: EditorContextKeys.writable,
|
|
28
28
|
metadata: {
|
|
29
|
-
description: ( localize2(
|
|
29
|
+
description: ( localize2(1178, "Convert the tab indentation to spaces.")),
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
}
|
|
@@ -54,10 +54,10 @@ class IndentationToTabsAction extends EditorAction {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super({
|
|
56
56
|
id: IndentationToTabsAction.ID,
|
|
57
|
-
label: ( localize2(
|
|
57
|
+
label: ( localize2(1179, "Convert Indentation to Tabs")),
|
|
58
58
|
precondition: EditorContextKeys.writable,
|
|
59
59
|
metadata: {
|
|
60
|
-
description: ( localize2(
|
|
60
|
+
description: ( localize2(1180, "Convert the spaces indentation to tabs.")),
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
}
|
|
@@ -99,16 +99,16 @@ class ChangeIndentationSizeAction extends EditorAction {
|
|
|
99
99
|
id: ( n.toString()),
|
|
100
100
|
label: ( n.toString()),
|
|
101
101
|
description: (n === creationOpts.tabSize && n === modelOpts.tabSize
|
|
102
|
-
? ( localize(
|
|
102
|
+
? ( localize(1181, "Configured Tab Size"))
|
|
103
103
|
: n === creationOpts.tabSize
|
|
104
|
-
? ( localize(
|
|
104
|
+
? ( localize(1182, "Default Tab Size"))
|
|
105
105
|
: n === modelOpts.tabSize
|
|
106
|
-
? ( localize(
|
|
106
|
+
? ( localize(1183, "Current Tab Size"))
|
|
107
107
|
: undefined)
|
|
108
108
|
})));
|
|
109
109
|
const autoFocusIndex = Math.min(model.getOptions().tabSize - 1, 7);
|
|
110
110
|
setTimeout(() => {
|
|
111
|
-
quickInputService.pick(picks, { placeHolder: ( localize(
|
|
111
|
+
quickInputService.pick(picks, { placeHolder: ( localize(1184, "Select Tab Size for Current File")), activeItem: picks[autoFocusIndex] }).then(pick => {
|
|
112
112
|
if (pick) {
|
|
113
113
|
if (model && !model.isDisposed()) {
|
|
114
114
|
const pickedVal = parseInt(pick.label, 10);
|
|
@@ -135,10 +135,10 @@ class IndentUsingTabs extends ChangeIndentationSizeAction {
|
|
|
135
135
|
constructor() {
|
|
136
136
|
super(false, false, {
|
|
137
137
|
id: IndentUsingTabs.ID,
|
|
138
|
-
label: ( localize2(
|
|
138
|
+
label: ( localize2(1185, "Indent Using Tabs")),
|
|
139
139
|
precondition: undefined,
|
|
140
140
|
metadata: {
|
|
141
|
-
description: ( localize2(
|
|
141
|
+
description: ( localize2(1186, "Use indentation with tabs.")),
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
}
|
|
@@ -148,10 +148,10 @@ class IndentUsingSpaces extends ChangeIndentationSizeAction {
|
|
|
148
148
|
constructor() {
|
|
149
149
|
super(true, false, {
|
|
150
150
|
id: IndentUsingSpaces.ID,
|
|
151
|
-
label: ( localize2(
|
|
151
|
+
label: ( localize2(1187, "Indent Using Spaces")),
|
|
152
152
|
precondition: undefined,
|
|
153
153
|
metadata: {
|
|
154
|
-
description: ( localize2(
|
|
154
|
+
description: ( localize2(1188, "Use indentation with spaces.")),
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
157
|
}
|
|
@@ -161,10 +161,10 @@ class ChangeTabDisplaySize extends ChangeIndentationSizeAction {
|
|
|
161
161
|
constructor() {
|
|
162
162
|
super(true, true, {
|
|
163
163
|
id: ChangeTabDisplaySize.ID,
|
|
164
|
-
label: ( localize2(
|
|
164
|
+
label: ( localize2(1189, "Change Tab Display Size")),
|
|
165
165
|
precondition: undefined,
|
|
166
166
|
metadata: {
|
|
167
|
-
description: ( localize2(
|
|
167
|
+
description: ( localize2(1190, "Change the space size equivalent of the tab.")),
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
}
|
|
@@ -174,10 +174,10 @@ class DetectIndentation extends EditorAction {
|
|
|
174
174
|
constructor() {
|
|
175
175
|
super({
|
|
176
176
|
id: DetectIndentation.ID,
|
|
177
|
-
label: ( localize2(
|
|
177
|
+
label: ( localize2(1191, "Detect Indentation from Content")),
|
|
178
178
|
precondition: undefined,
|
|
179
179
|
metadata: {
|
|
180
|
-
description: ( localize2(
|
|
180
|
+
description: ( localize2(1192, "Detect the indentation from content.")),
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
}
|
|
@@ -195,10 +195,10 @@ class ReindentLinesAction extends EditorAction {
|
|
|
195
195
|
constructor() {
|
|
196
196
|
super({
|
|
197
197
|
id: 'editor.action.reindentlines',
|
|
198
|
-
label: ( localize2(
|
|
198
|
+
label: ( localize2(1193, "Reindent Lines")),
|
|
199
199
|
precondition: EditorContextKeys.writable,
|
|
200
200
|
metadata: {
|
|
201
|
-
description: ( localize2(
|
|
201
|
+
description: ( localize2(1194, "Reindent the lines of the editor.")),
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
204
|
}
|
|
@@ -220,10 +220,10 @@ class ReindentSelectedLinesAction extends EditorAction {
|
|
|
220
220
|
constructor() {
|
|
221
221
|
super({
|
|
222
222
|
id: 'editor.action.reindentselectedlines',
|
|
223
|
-
label: ( localize2(
|
|
223
|
+
label: ( localize2(1195, "Reindent Selected Lines")),
|
|
224
224
|
precondition: EditorContextKeys.writable,
|
|
225
225
|
metadata: {
|
|
226
|
-
description: ( localize2(
|
|
226
|
+
description: ( localize2(1196, "Reindent the selected lines of the editor.")),
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
229
|
}
|
|
@@ -26,7 +26,7 @@ import { InlayHintsFragments, InlayHintAnchor } from './inlayHints.js';
|
|
|
26
26
|
import { goToDefinitionWithLocation, showGoToContextMenu } from './inlayHintsLocations.js';
|
|
27
27
|
import { CommandsRegistry } from '../../../../platform/commands/common/commands.js';
|
|
28
28
|
import { ICommandService } from '../../../../platform/commands/common/commands.service.js';
|
|
29
|
-
import
|
|
29
|
+
import '../../../../platform/instantiation/common/extensions.js';
|
|
30
30
|
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
31
31
|
import '../../../../platform/notification/common/notification.js';
|
|
32
32
|
import { INotificationService } from '../../../../platform/notification/common/notification.service.js';
|
|
@@ -62,7 +62,6 @@ class InlayHintsCache {
|
|
|
62
62
|
return `${( model.uri.toString())}/${model.getVersionId()}`;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
registerSingleton(IInlayHintsCache, InlayHintsCache, InstantiationType.Delayed);
|
|
66
65
|
class RenderedInlayHintLabelPart {
|
|
67
66
|
constructor(item, index) {
|
|
68
67
|
this.item = item;
|
|
@@ -73,7 +73,7 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
73
73
|
executor.emitOne(( new MarkdownHover(this, anchor.range, [itemTooltip], false, 0)));
|
|
74
74
|
}
|
|
75
75
|
if (isNonEmptyArray(part.item.hint.textEdits)) {
|
|
76
|
-
executor.emitOne(( new MarkdownHover(this, anchor.range, [( new MarkdownString()).appendText(( localize(
|
|
76
|
+
executor.emitOne(( new MarkdownHover(this, anchor.range, [( new MarkdownString()).appendText(( localize(1197, "Double-click to insert")))], false, 10001)));
|
|
77
77
|
}
|
|
78
78
|
let partTooltip;
|
|
79
79
|
if (typeof part.part.tooltip === 'string') {
|
|
@@ -90,19 +90,19 @@ let InlayHintsHover = class InlayHintsHover extends MarkdownHoverParticipant {
|
|
|
90
90
|
const useMetaKey = this._editor.getOption(EditorOption.multiCursorModifier) === 'altKey';
|
|
91
91
|
const kb = useMetaKey
|
|
92
92
|
? isMacintosh
|
|
93
|
-
? ( localize(
|
|
94
|
-
: ( localize(
|
|
93
|
+
? ( localize(1198, "cmd + click"))
|
|
94
|
+
: ( localize(1199, "ctrl + click"))
|
|
95
95
|
: isMacintosh
|
|
96
|
-
? ( localize(
|
|
97
|
-
: ( localize(
|
|
96
|
+
? ( localize(1200, "option + click"))
|
|
97
|
+
: ( localize(1201, "alt + click"));
|
|
98
98
|
if (part.part.location && part.part.command) {
|
|
99
|
-
linkHint = ( new MarkdownString()).appendText(( localize(
|
|
99
|
+
linkHint = ( new MarkdownString()).appendText(( localize(1202, 'Go to Definition ({0}), right click for more', kb)));
|
|
100
100
|
}
|
|
101
101
|
else if (part.part.location) {
|
|
102
|
-
linkHint = ( new MarkdownString()).appendText(( localize(
|
|
102
|
+
linkHint = ( new MarkdownString()).appendText(( localize(1203, 'Go to Definition ({0})', kb)));
|
|
103
103
|
}
|
|
104
104
|
else if (part.part.command) {
|
|
105
|
-
linkHint = ( new MarkdownString(`[${( localize(
|
|
105
|
+
linkHint = ( new MarkdownString(`[${( localize(1204, "Execute Command"))}](${asCommandLink(part.part.command)} "${part.part.command.title}") (${kb})`, { isTrusted: true }));
|
|
106
106
|
}
|
|
107
107
|
if (linkHint) {
|
|
108
108
|
executor.emitOne(( new MarkdownHover(this, anchor.range, [linkHint], false, 10000)));
|
|
@@ -24,7 +24,7 @@ class ShowNextInlineSuggestionAction extends EditorAction {
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super({
|
|
26
26
|
id: ShowNextInlineSuggestionAction.ID,
|
|
27
|
-
label: ( localize2(
|
|
27
|
+
label: ( localize2(1205, "Show Next Inline Suggestion")),
|
|
28
28
|
precondition: ( ContextKeyExpr.and(
|
|
29
29
|
EditorContextKeys.writable,
|
|
30
30
|
InlineCompletionContextKeys.inlineSuggestionVisible
|
|
@@ -45,7 +45,7 @@ class ShowPreviousInlineSuggestionAction extends EditorAction {
|
|
|
45
45
|
constructor() {
|
|
46
46
|
super({
|
|
47
47
|
id: ShowPreviousInlineSuggestionAction.ID,
|
|
48
|
-
label: ( localize2(
|
|
48
|
+
label: ( localize2(1206, "Show Previous Inline Suggestion")),
|
|
49
49
|
precondition: ( ContextKeyExpr.and(
|
|
50
50
|
EditorContextKeys.writable,
|
|
51
51
|
InlineCompletionContextKeys.inlineSuggestionVisible
|
|
@@ -65,7 +65,7 @@ class TriggerInlineSuggestionAction extends EditorAction {
|
|
|
65
65
|
constructor() {
|
|
66
66
|
super({
|
|
67
67
|
id: 'editor.action.inlineSuggest.trigger',
|
|
68
|
-
label: ( localize2(
|
|
68
|
+
label: ( localize2(1207, "Trigger Inline Suggestion")),
|
|
69
69
|
precondition: EditorContextKeys.writable
|
|
70
70
|
});
|
|
71
71
|
}
|
|
@@ -81,7 +81,7 @@ class ExplicitTriggerInlineEditAction extends EditorAction {
|
|
|
81
81
|
constructor() {
|
|
82
82
|
super({
|
|
83
83
|
id: 'editor.action.inlineSuggest.triggerInlineEditExplicit',
|
|
84
|
-
label: ( localize2(
|
|
84
|
+
label: ( localize2(1208, "Trigger Next Edit Suggestion")),
|
|
85
85
|
precondition: EditorContextKeys.writable,
|
|
86
86
|
});
|
|
87
87
|
}
|
|
@@ -92,7 +92,7 @@ class ExplicitTriggerInlineEditAction extends EditorAction {
|
|
|
92
92
|
if (!controller?.model.get()?.inlineEditAvailable.get()) {
|
|
93
93
|
notificationService.notify({
|
|
94
94
|
severity: Severity$1.Info,
|
|
95
|
-
message: ( localize(
|
|
95
|
+
message: ( localize(1209, "No inline edit is available."))
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -113,7 +113,7 @@ class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
|
113
113
|
constructor() {
|
|
114
114
|
super({
|
|
115
115
|
id: 'editor.action.inlineSuggest.acceptNextWord',
|
|
116
|
-
label: ( localize2(
|
|
116
|
+
label: ( localize2(1210, "Accept Next Word Of Inline Suggestion")),
|
|
117
117
|
precondition: ( ContextKeyExpr.and(
|
|
118
118
|
EditorContextKeys.writable,
|
|
119
119
|
InlineCompletionContextKeys.inlineSuggestionVisible
|
|
@@ -128,7 +128,7 @@ class AcceptNextWordOfInlineCompletion extends EditorAction {
|
|
|
128
128
|
},
|
|
129
129
|
menuOpts: [{
|
|
130
130
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
131
|
-
title: ( localize(
|
|
131
|
+
title: ( localize(1211, 'Accept Word')),
|
|
132
132
|
group: 'primary',
|
|
133
133
|
order: 2,
|
|
134
134
|
}],
|
|
@@ -143,7 +143,7 @@ class AcceptNextLineOfInlineCompletion extends EditorAction {
|
|
|
143
143
|
constructor() {
|
|
144
144
|
super({
|
|
145
145
|
id: 'editor.action.inlineSuggest.acceptNextLine',
|
|
146
|
-
label: ( localize2(
|
|
146
|
+
label: ( localize2(1212, "Accept Next Line Of Inline Suggestion")),
|
|
147
147
|
precondition: ( ContextKeyExpr.and(
|
|
148
148
|
EditorContextKeys.writable,
|
|
149
149
|
InlineCompletionContextKeys.inlineSuggestionVisible
|
|
@@ -153,7 +153,7 @@ class AcceptNextLineOfInlineCompletion extends EditorAction {
|
|
|
153
153
|
},
|
|
154
154
|
menuOpts: [{
|
|
155
155
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
156
|
-
title: ( localize(
|
|
156
|
+
title: ( localize(1213, 'Accept Line')),
|
|
157
157
|
group: 'secondary',
|
|
158
158
|
order: 2,
|
|
159
159
|
}],
|
|
@@ -168,19 +168,19 @@ class AcceptInlineCompletion extends EditorAction {
|
|
|
168
168
|
constructor() {
|
|
169
169
|
super({
|
|
170
170
|
id: inlineSuggestCommitId,
|
|
171
|
-
label: ( localize2(
|
|
171
|
+
label: ( localize2(1214, "Accept Inline Suggestion")),
|
|
172
172
|
precondition: ( ContextKeyExpr.or(
|
|
173
173
|
InlineCompletionContextKeys.inlineSuggestionVisible,
|
|
174
174
|
InlineCompletionContextKeys.inlineEditVisible
|
|
175
175
|
)),
|
|
176
176
|
menuOpts: [{
|
|
177
177
|
menuId: MenuId.InlineSuggestionToolbar,
|
|
178
|
-
title: ( localize(
|
|
178
|
+
title: ( localize(1215, "Accept")),
|
|
179
179
|
group: 'primary',
|
|
180
180
|
order: 2,
|
|
181
181
|
}, {
|
|
182
182
|
menuId: MenuId.InlineEditsActions,
|
|
183
|
-
title: ( localize(
|
|
183
|
+
title: ( localize(1215, "Accept")),
|
|
184
184
|
group: 'primary',
|
|
185
185
|
order: 2,
|
|
186
186
|
}],
|
|
@@ -211,11 +211,11 @@ class JumpToNextInlineEdit extends EditorAction {
|
|
|
211
211
|
constructor() {
|
|
212
212
|
super({
|
|
213
213
|
id: jumpToNextInlineEditId,
|
|
214
|
-
label: ( localize2(
|
|
214
|
+
label: ( localize2(1216, "Jump to next inline edit")),
|
|
215
215
|
precondition: InlineCompletionContextKeys.inlineEditVisible,
|
|
216
216
|
menuOpts: [{
|
|
217
217
|
menuId: MenuId.InlineEditsActions,
|
|
218
|
-
title: ( localize(
|
|
218
|
+
title: ( localize(1217, "Jump")),
|
|
219
219
|
group: 'primary',
|
|
220
220
|
order: 1,
|
|
221
221
|
when: ( InlineCompletionContextKeys.cursorAtInlineEdit.toNegated()),
|
|
@@ -238,7 +238,7 @@ class AcceptNextInlineEditPart extends EditorAction {
|
|
|
238
238
|
constructor() {
|
|
239
239
|
super({
|
|
240
240
|
id: 'editor.action.inlineSuggest.acceptNextInlineEditPart',
|
|
241
|
-
label: ( localize2(
|
|
241
|
+
label: ( localize2(1218, "Accept Next Inline Edit Part")),
|
|
242
242
|
precondition: ( ContextKeyExpr.and(EditorContextKeys.writable, InlineCompletionContextKeys.inlineEditVisible)),
|
|
243
243
|
kbOpts: {
|
|
244
244
|
weight: KeybindingWeight.EditorContrib + 1,
|
|
@@ -256,7 +256,7 @@ class HideInlineCompletion extends EditorAction {
|
|
|
256
256
|
constructor() {
|
|
257
257
|
super({
|
|
258
258
|
id: HideInlineCompletion.ID,
|
|
259
|
-
label: ( localize2(
|
|
259
|
+
label: ( localize2(1219, "Hide Inline Suggestion")),
|
|
260
260
|
precondition: ( ContextKeyExpr.or(
|
|
261
261
|
InlineCompletionContextKeys.inlineSuggestionVisible,
|
|
262
262
|
InlineCompletionContextKeys.inlineEditVisible
|
|
@@ -267,7 +267,7 @@ class HideInlineCompletion extends EditorAction {
|
|
|
267
267
|
},
|
|
268
268
|
menuOpts: [{
|
|
269
269
|
menuId: MenuId.InlineEditsActions,
|
|
270
|
-
title: ( localize(
|
|
270
|
+
title: ( localize(1220, "Reject")),
|
|
271
271
|
group: 'primary',
|
|
272
272
|
order: 3,
|
|
273
273
|
}]
|
|
@@ -286,7 +286,7 @@ class ToggleInlineCompletionShowCollapsed extends EditorAction {
|
|
|
286
286
|
constructor() {
|
|
287
287
|
super({
|
|
288
288
|
id: ToggleInlineCompletionShowCollapsed.ID,
|
|
289
|
-
label: ( localize2(
|
|
289
|
+
label: ( localize2(1221, "Toggle Inline Suggestions Show Collapsed")),
|
|
290
290
|
precondition: ContextKeyExpr.true(),
|
|
291
291
|
});
|
|
292
292
|
}
|
|
@@ -308,7 +308,7 @@ class ToggleAlwaysShowInlineSuggestionToolbar extends Action2 {
|
|
|
308
308
|
constructor() {
|
|
309
309
|
super({
|
|
310
310
|
id: ToggleAlwaysShowInlineSuggestionToolbar.ID,
|
|
311
|
-
title: ( localize(
|
|
311
|
+
title: ( localize(1222, "Always Show Toolbar")),
|
|
312
312
|
f1: false,
|
|
313
313
|
precondition: undefined,
|
|
314
314
|
menu: [{
|
|
@@ -330,7 +330,7 @@ class DevExtractReproSample extends EditorAction {
|
|
|
330
330
|
constructor() {
|
|
331
331
|
super({
|
|
332
332
|
id: 'editor.action.inlineSuggest.dev.extractRepro',
|
|
333
|
-
label: ( localize(
|
|
333
|
+
label: ( localize(1223, "Developer: Extract Inline Suggest State")),
|
|
334
334
|
alias: 'Developer: Inline Suggest Extract Repro',
|
|
335
335
|
precondition: InlineCompletionContextKeys.inlineEditVisible,
|
|
336
336
|
});
|