@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
|
@@ -3,23 +3,23 @@ import { RawContextKey } from '../../../../../platform/contextkey/common/context
|
|
|
3
3
|
import { localize } from '../../../../../nls.js';
|
|
4
4
|
|
|
5
5
|
class InlineCompletionContextKeys {
|
|
6
|
-
static { this.inlineSuggestionVisible = ( new RawContextKey('inlineSuggestionVisible', false, ( localize(
|
|
7
|
-
static { this.inlineSuggestionHasIndentation = ( new RawContextKey('inlineSuggestionHasIndentation', false, ( localize(
|
|
6
|
+
static { this.inlineSuggestionVisible = ( new RawContextKey('inlineSuggestionVisible', false, ( localize(1224, "Whether an inline suggestion is visible")))); }
|
|
7
|
+
static { this.inlineSuggestionHasIndentation = ( new RawContextKey('inlineSuggestionHasIndentation', false, ( localize(1225, "Whether the inline suggestion starts with whitespace")))); }
|
|
8
8
|
static { this.inlineSuggestionHasIndentationLessThanTabSize = ( new RawContextKey('inlineSuggestionHasIndentationLessThanTabSize', true, ( localize(
|
|
9
|
-
|
|
9
|
+
1226,
|
|
10
10
|
"Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab"
|
|
11
11
|
)))); }
|
|
12
12
|
static { this.suppressSuggestions = ( new RawContextKey('inlineSuggestionSuppressSuggestions', undefined, ( localize(
|
|
13
|
-
|
|
13
|
+
1227,
|
|
14
14
|
"Whether suggestions should be suppressed for the current suggestion"
|
|
15
15
|
)))); }
|
|
16
|
-
static { this.cursorInIndentation = ( new RawContextKey('cursorInIndentation', false, ( localize(
|
|
17
|
-
static { this.hasSelection = ( new RawContextKey('editor.hasSelection', false, ( localize(
|
|
18
|
-
static { this.cursorAtInlineEdit = ( new RawContextKey('cursorAtInlineEdit', false, ( localize(
|
|
19
|
-
static { this.inlineEditVisible = ( new RawContextKey('inlineEditIsVisible', false, ( localize(
|
|
20
|
-
static { this.tabShouldJumpToInlineEdit = ( new RawContextKey('tabShouldJumpToInlineEdit', false, ( localize(
|
|
21
|
-
static { this.tabShouldAcceptInlineEdit = ( new RawContextKey('tabShouldAcceptInlineEdit', false, ( localize(
|
|
22
|
-
static { this.inInlineEditsPreviewEditor = ( new RawContextKey('inInlineEditsPreviewEditor', true, ( localize(
|
|
16
|
+
static { this.cursorInIndentation = ( new RawContextKey('cursorInIndentation', false, ( localize(1228, "Whether the cursor is in indentation")))); }
|
|
17
|
+
static { this.hasSelection = ( new RawContextKey('editor.hasSelection', false, ( localize(1229, "Whether the editor has a selection")))); }
|
|
18
|
+
static { this.cursorAtInlineEdit = ( new RawContextKey('cursorAtInlineEdit', false, ( localize(1230, "Whether the cursor is at an inline edit")))); }
|
|
19
|
+
static { this.inlineEditVisible = ( new RawContextKey('inlineEditIsVisible', false, ( localize(1231, "Whether an inline edit is visible")))); }
|
|
20
|
+
static { this.tabShouldJumpToInlineEdit = ( new RawContextKey('tabShouldJumpToInlineEdit', false, ( localize(1232, "Whether tab should jump to an inline edit.")))); }
|
|
21
|
+
static { this.tabShouldAcceptInlineEdit = ( new RawContextKey('tabShouldAcceptInlineEdit', false, ( localize(1233, "Whether tab should accept the inline edit.")))); }
|
|
22
|
+
static { this.inInlineEditsPreviewEditor = ( new RawContextKey('inInlineEditsPreviewEditor', true, ( localize(1234, "Whether the current code editor is showing an inline edits preview")))); }
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export { InlineCompletionContextKeys };
|
|
@@ -267,7 +267,7 @@ let InlineCompletionsController = class InlineCompletionsController extends Disp
|
|
|
267
267
|
let hint;
|
|
268
268
|
if (!accessibleViewShowing && accessibleViewKeybinding && this.editor.getOption(EditorOption.inlineCompletionsAccessibilityVerbose)) {
|
|
269
269
|
hint = ( localize(
|
|
270
|
-
|
|
270
|
+
1235,
|
|
271
271
|
"Inspect this in the accessible view ({0})",
|
|
272
272
|
accessibleViewKeybinding.getAriaLabel()
|
|
273
273
|
));
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js
CHANGED
|
@@ -130,7 +130,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
130
130
|
return ( new RenderedHoverParts([renderedHoverPart]));
|
|
131
131
|
}
|
|
132
132
|
getAccessibleContent(hoverPart) {
|
|
133
|
-
return localize(
|
|
133
|
+
return localize(1236, 'There are inline completions here');
|
|
134
134
|
}
|
|
135
135
|
renderScreenReaderText(context, part) {
|
|
136
136
|
const disposables = ( new DisposableStore());
|
|
@@ -139,7 +139,7 @@ let InlineCompletionsHoverParticipant = class InlineCompletionsHoverParticipant
|
|
|
139
139
|
const hoverContentsElement = append(markdownHoverElement, $$1('div.hover-contents', { ['aria-live']: 'assertive' }));
|
|
140
140
|
const renderer = ( new MarkdownRenderer({ editor: this._editor }, this._languageService, this._openerService));
|
|
141
141
|
const render = (code) => {
|
|
142
|
-
const inlineSuggestionAvailable = ( localize(
|
|
142
|
+
const inlineSuggestionAvailable = ( localize(1237, "Suggestion:"));
|
|
143
143
|
const renderedContents = disposables.add(renderer.render(( new MarkdownString()).appendText(inlineSuggestionAvailable).appendCodeblock('text', code), {
|
|
144
144
|
asyncRenderCallback: () => {
|
|
145
145
|
hoverContentsElement.className = 'hover-contents code-hover-contents';
|
|
@@ -95,8 +95,8 @@ let InlineCompletionsHintsWidget = class InlineCompletionsHintsWidget extends Di
|
|
|
95
95
|
InlineCompletionsHintsWidget = ( __decorate([
|
|
96
96
|
( __param(2, IInstantiationService))
|
|
97
97
|
], InlineCompletionsHintsWidget));
|
|
98
|
-
const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, ( localize(
|
|
99
|
-
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, ( localize(
|
|
98
|
+
const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, ( localize(1238, 'Icon for show next parameter hint.')));
|
|
99
|
+
const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, ( localize(1239, 'Icon for show previous parameter hint.')));
|
|
100
100
|
let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidget extends Disposable {
|
|
101
101
|
static { InlineSuggestionHintsContentWidget_1 = this; }
|
|
102
102
|
static { this.hot = createHotClass(InlineSuggestionHintsContentWidget_1); }
|
|
@@ -114,7 +114,7 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
114
114
|
const kb = this.keybindingService.lookupKeybinding(commandId, this._contextKeyService);
|
|
115
115
|
let tooltip = label;
|
|
116
116
|
if (kb) {
|
|
117
|
-
tooltip = ( localize(
|
|
117
|
+
tooltip = ( localize(1240, '{0} ({1})', label, kb.getLabel()));
|
|
118
118
|
}
|
|
119
119
|
action.tooltip = tooltip;
|
|
120
120
|
return action;
|
|
@@ -162,9 +162,9 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
|
|
|
162
162
|
this._warningMessageNode.element,
|
|
163
163
|
h('div@toolBar'),
|
|
164
164
|
]);
|
|
165
|
-
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, ( localize(
|
|
165
|
+
this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, ( localize(1241, 'Previous')), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon)));
|
|
166
166
|
this.availableSuggestionCountAction = this._register(( new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false)));
|
|
167
|
-
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, ( localize(
|
|
167
|
+
this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, ( localize(1242, 'Next')), ThemeIcon.asClassName(inlineSuggestionHintsNextIcon)));
|
|
168
168
|
this.inlineCompletionsActionsMenus = this._register(this._menuService.createMenu(MenuId.InlineCompletionsActions, this._contextKeyService));
|
|
169
169
|
this.clearAvailableSuggestionCountLabelDebounced = this._register(( new RunOnceScheduler(() => {
|
|
170
170
|
this.availableSuggestionCountAction.label = '';
|
|
@@ -64,7 +64,7 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
64
64
|
return hoverContent([
|
|
65
65
|
header(this._host.displayName),
|
|
66
66
|
option(createOptionArgs({
|
|
67
|
-
id: 'gotoAndAccept', title: `${( localize(
|
|
67
|
+
id: 'gotoAndAccept', title: `${( localize(1243, "Go To"))} / ${( localize(1244, "Accept"))}`,
|
|
68
68
|
icon: ( this._host.tabAction.map(
|
|
69
69
|
action => action === InlineEditTabAction.Accept ? Codicon.check : Codicon.arrowRight
|
|
70
70
|
)),
|
|
@@ -72,7 +72,7 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
72
72
|
action => action === InlineEditTabAction.Accept ? inlineSuggestCommitId : jumpToNextInlineEditId
|
|
73
73
|
))
|
|
74
74
|
})),
|
|
75
|
-
option(createOptionArgs({ id: 'reject', title: ( localize(
|
|
75
|
+
option(createOptionArgs({ id: 'reject', title: ( localize(1245, "Reject")), icon: Codicon.close, commandId: hideInlineCompletionId })),
|
|
76
76
|
separator(),
|
|
77
77
|
this._host.extensionCommands?.map(c => c && c.length > 0 ? [
|
|
78
78
|
...( c.map(
|
|
@@ -81,9 +81,9 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
|
|
|
81
81
|
separator()
|
|
82
82
|
] : []),
|
|
83
83
|
( this._inlineEditsShowCollapsed.map(showCollapsed => showCollapsed ?
|
|
84
|
-
option(createOptionArgs({ id: 'showExpanded', title: ( localize(
|
|
85
|
-
option(createOptionArgs({ id: 'showCollapsed', title: ( localize(
|
|
86
|
-
option(createOptionArgs({ id: 'settings', title: ( localize(
|
|
84
|
+
option(createOptionArgs({ id: 'showExpanded', title: ( localize(1246, "Show Expanded")), icon: Codicon.expandAll, commandId: toggleShowCollapsedId })) :
|
|
85
|
+
option(createOptionArgs({ id: 'showCollapsed', title: ( localize(1247, "Show Collapsed")), icon: Codicon.collapseAll, commandId: toggleShowCollapsedId })))),
|
|
86
|
+
option(createOptionArgs({ id: 'settings', title: ( localize(1248, "Settings")), icon: Codicon.gear, commandId: 'workbench.action.openSettings', commandArgs: ['@tag:nextEditSuggestions'] })),
|
|
87
87
|
( this._host.action.map(action => action ? [
|
|
88
88
|
separator(),
|
|
89
89
|
actionBar([{
|
|
@@ -20,9 +20,9 @@ import { OffsetRange } from '../../../../../../common/core/offsetRange.js';
|
|
|
20
20
|
import { constObservable } from '../../../../../../../base/common/observableInternal/utils.js';
|
|
21
21
|
import { autorun } from '../../../../../../../base/common/observableInternal/autorun.js';
|
|
22
22
|
|
|
23
|
-
registerColor('inlineEdit.indicator.foreground', buttonForeground, ( localize(
|
|
24
|
-
registerColor('inlineEdit.indicator.background', buttonBackground, ( localize(
|
|
25
|
-
registerColor('inlineEdit.indicator.border', buttonSeparator, ( localize(
|
|
23
|
+
registerColor('inlineEdit.indicator.foreground', buttonForeground, ( localize(1249, 'Foreground color for the inline edit indicator.')));
|
|
24
|
+
registerColor('inlineEdit.indicator.background', buttonBackground, ( localize(1250, 'Background color for the inline edit indicator.')));
|
|
25
|
+
registerColor('inlineEdit.indicator.border', buttonSeparator, ( localize(1251, 'Border color for the inline edit indicator.')));
|
|
26
26
|
class InlineEditsIndicator extends Disposable {
|
|
27
27
|
constructor(_editorObs, _state, _model) {
|
|
28
28
|
super();
|
package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js
CHANGED
|
@@ -89,7 +89,7 @@ let InlineEditsView = class InlineEditsView extends Disposable {
|
|
|
89
89
|
const item = state?.read(reader);
|
|
90
90
|
const completionSource = item?.inlineCompletion?.source;
|
|
91
91
|
return completionSource?.inlineCompletions?.edits?.[0]?.provider?.displayName ?? previousDisplayName
|
|
92
|
-
?? completionSource?.provider.displayName ?? ( localize(
|
|
92
|
+
?? completionSource?.provider.displayName ?? ( localize(1252, "Inline Edit"));
|
|
93
93
|
}),
|
|
94
94
|
tabAction: derived(this, reader => {
|
|
95
95
|
const m = this._model.read(reader);
|
|
@@ -14,14 +14,14 @@ import '../../../../../../platform/theme/common/colors/quickpickColors.js';
|
|
|
14
14
|
import '../../../../../../platform/theme/common/colors/searchColors.js';
|
|
15
15
|
import { InlineEditTabAction } from './utils/utils.js';
|
|
16
16
|
|
|
17
|
-
const originalBackgroundColor = registerColor('inlineEdit.originalBackground', Color.transparent, ( localize(
|
|
18
|
-
const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', Color.transparent, ( localize(
|
|
17
|
+
const originalBackgroundColor = registerColor('inlineEdit.originalBackground', Color.transparent, ( localize(1253, 'Background color for the original text in inline edits.')), true);
|
|
18
|
+
const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', Color.transparent, ( localize(1254, 'Background color for the modified text in inline edits.')), true);
|
|
19
19
|
registerColor('inlineEdit.originalChangedLineBackground', Color.transparent, ( localize(
|
|
20
|
-
|
|
20
|
+
1255,
|
|
21
21
|
'Background color for the changed lines in the original text of inline edits.'
|
|
22
22
|
)), true);
|
|
23
23
|
const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', diffRemoved, ( localize(
|
|
24
|
-
|
|
24
|
+
1256,
|
|
25
25
|
'Overlay color for the changed text in the original text of inline edits.'
|
|
26
26
|
)), true);
|
|
27
27
|
const modifiedChangedLineBackgroundColor = registerColor('inlineEdit.modifiedChangedLineBackground', {
|
|
@@ -30,11 +30,11 @@ const modifiedChangedLineBackgroundColor = registerColor('inlineEdit.modifiedCha
|
|
|
30
30
|
hcDark: diffInsertedLine,
|
|
31
31
|
hcLight: diffInsertedLine
|
|
32
32
|
}, ( localize(
|
|
33
|
-
|
|
33
|
+
1257,
|
|
34
34
|
'Background color for the changed lines in the modified text of inline edits.'
|
|
35
35
|
)), true);
|
|
36
36
|
const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', diffInserted, ( localize(
|
|
37
|
-
|
|
37
|
+
1258,
|
|
38
38
|
'Overlay color for the changed text in the modified text of inline edits.'
|
|
39
39
|
)), true);
|
|
40
40
|
const replacementViewBackground = registerColor('inlineEdit.wordReplacementView.background', {
|
|
@@ -42,44 +42,44 @@ const replacementViewBackground = registerColor('inlineEdit.wordReplacementView.
|
|
|
42
42
|
dark: ( transparent(editorHoverStatusBarBackground, 0.1)),
|
|
43
43
|
hcLight: ( transparent(editorHoverStatusBarBackground, 0.1)),
|
|
44
44
|
hcDark: ( transparent(editorHoverStatusBarBackground, 0.1)),
|
|
45
|
-
}, ( localize(
|
|
46
|
-
const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, ( localize(
|
|
47
|
-
const inlineEditIndicatorPrimaryBackground = registerColor('inlineEdit.gutterIndicator.primaryBackground', buttonBackground, ( localize(
|
|
48
|
-
const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, ( localize(
|
|
49
|
-
const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', buttonSecondaryBackground, ( localize(
|
|
50
|
-
const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, ( localize(
|
|
51
|
-
const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', { light: '#2e825c', dark: '#2e825c', hcLight: '#2e825c', hcDark: '#2e825c' }, ( localize(
|
|
45
|
+
}, ( localize(1259, 'Background color for the inline edit word replacement view.')));
|
|
46
|
+
const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, ( localize(1260, 'Foreground color for the primary inline edit gutter indicator.')));
|
|
47
|
+
const inlineEditIndicatorPrimaryBackground = registerColor('inlineEdit.gutterIndicator.primaryBackground', buttonBackground, ( localize(1261, 'Background color for the primary inline edit gutter indicator.')));
|
|
48
|
+
const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, ( localize(1262, 'Foreground color for the secondary inline edit gutter indicator.')));
|
|
49
|
+
const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', buttonSecondaryBackground, ( localize(1263, 'Background color for the secondary inline edit gutter indicator.')));
|
|
50
|
+
const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, ( localize(1264, 'Foreground color for the successful inline edit gutter indicator.')));
|
|
51
|
+
const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', { light: '#2e825c', dark: '#2e825c', hcLight: '#2e825c', hcDark: '#2e825c' }, ( localize(1265, 'Background color for the successful inline edit gutter indicator.')));
|
|
52
52
|
const inlineEditIndicatorBackground = registerColor('inlineEdit.gutterIndicator.background', {
|
|
53
53
|
hcDark: ( transparent('tab.inactiveBackground', 0.5)),
|
|
54
54
|
hcLight: ( transparent('tab.inactiveBackground', 0.5)),
|
|
55
55
|
dark: ( transparent('tab.inactiveBackground', 0.5)),
|
|
56
56
|
light: '#5f5f5f18',
|
|
57
|
-
}, ( localize(
|
|
57
|
+
}, ( localize(1266, 'Background color for the inline edit gutter indicator.')));
|
|
58
58
|
const originalBorder = registerColor('inlineEdit.originalBorder', {
|
|
59
59
|
light: editorHoverBorder,
|
|
60
60
|
dark: editorHoverBorder,
|
|
61
61
|
hcDark: editorHoverBorder,
|
|
62
62
|
hcLight: editorHoverBorder
|
|
63
|
-
}, ( localize(
|
|
63
|
+
}, ( localize(1267, 'Border color for the original text in inline edits.')));
|
|
64
64
|
const modifiedBorder = registerColor('inlineEdit.modifiedBorder', {
|
|
65
65
|
light: editorHoverBorder,
|
|
66
66
|
dark: editorHoverBorder,
|
|
67
67
|
hcDark: editorHoverBorder,
|
|
68
68
|
hcLight: editorHoverBorder
|
|
69
|
-
}, ( localize(
|
|
69
|
+
}, ( localize(1268, 'Border color for the modified text in inline edits.')));
|
|
70
70
|
const tabWillAcceptModifiedBorder = registerColor('inlineEdit.tabWillAcceptBorder', {
|
|
71
71
|
light: ( darken(modifiedBorder, 0.25)),
|
|
72
72
|
dark: ( lighten(modifiedBorder, 0.25)),
|
|
73
73
|
hcDark: ( lighten(modifiedBorder, 0.5)),
|
|
74
74
|
hcLight: ( darken(modifiedBorder, 0.5))
|
|
75
|
-
}, ( localize(
|
|
75
|
+
}, ( localize(1269, 'Border color for the inline edits widget when tab will accept it.')));
|
|
76
76
|
const tabWillAcceptOriginalBorder = registerColor('inlineEdit.tabWillAcceptBorder', {
|
|
77
77
|
light: ( darken(originalBorder, 0.25)),
|
|
78
78
|
dark: ( lighten(originalBorder, 0.25)),
|
|
79
79
|
hcDark: ( lighten(originalBorder, 0.5)),
|
|
80
80
|
hcLight: ( darken(originalBorder, 0.5))
|
|
81
81
|
}, ( localize(
|
|
82
|
-
|
|
82
|
+
1270,
|
|
83
83
|
'Border color for the inline edits widget over the original text when tab will accept it.'
|
|
84
84
|
)));
|
|
85
85
|
function getModifiedBorderColor(tabAction) {
|
|
@@ -9,7 +9,7 @@ class InsertFinalNewLineAction extends EditorAction {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
super({
|
|
11
11
|
id: InsertFinalNewLineAction.ID,
|
|
12
|
-
label: ( localize2(
|
|
12
|
+
label: ( localize2(1271, "Insert Final New Line")),
|
|
13
13
|
precondition: EditorContextKeys.writable
|
|
14
14
|
});
|
|
15
15
|
}
|
|
@@ -11,7 +11,7 @@ class ExpandLineSelectionAction extends EditorAction {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: 'expandLineSelection',
|
|
14
|
-
label: ( localize2(
|
|
14
|
+
label: ( localize2(1272, "Expand Line Selection")),
|
|
15
15
|
precondition: undefined,
|
|
16
16
|
kbOpts: {
|
|
17
17
|
weight: KeybindingWeight.EditorCore,
|
|
@@ -58,7 +58,7 @@ class CopyLinesUpAction extends AbstractCopyLinesAction {
|
|
|
58
58
|
constructor() {
|
|
59
59
|
super(false, {
|
|
60
60
|
id: 'editor.action.copyLinesUpAction',
|
|
61
|
-
label: ( localize2(
|
|
61
|
+
label: ( localize2(1273, "Copy Line Up")),
|
|
62
62
|
precondition: EditorContextKeys.writable,
|
|
63
63
|
kbOpts: {
|
|
64
64
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -69,7 +69,7 @@ class CopyLinesUpAction extends AbstractCopyLinesAction {
|
|
|
69
69
|
menuOpts: {
|
|
70
70
|
menuId: MenuId.MenubarSelectionMenu,
|
|
71
71
|
group: '2_line',
|
|
72
|
-
title: ( localize(
|
|
72
|
+
title: ( localize(1274, "&&Copy Line Up")),
|
|
73
73
|
order: 1
|
|
74
74
|
}
|
|
75
75
|
});
|
|
@@ -79,7 +79,7 @@ class CopyLinesDownAction extends AbstractCopyLinesAction {
|
|
|
79
79
|
constructor() {
|
|
80
80
|
super(true, {
|
|
81
81
|
id: 'editor.action.copyLinesDownAction',
|
|
82
|
-
label: ( localize2(
|
|
82
|
+
label: ( localize2(1275, "Copy Line Down")),
|
|
83
83
|
precondition: EditorContextKeys.writable,
|
|
84
84
|
kbOpts: {
|
|
85
85
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -90,7 +90,7 @@ class CopyLinesDownAction extends AbstractCopyLinesAction {
|
|
|
90
90
|
menuOpts: {
|
|
91
91
|
menuId: MenuId.MenubarSelectionMenu,
|
|
92
92
|
group: '2_line',
|
|
93
|
-
title: ( localize(
|
|
93
|
+
title: ( localize(1276, "Co&&py Line Down")),
|
|
94
94
|
order: 2
|
|
95
95
|
}
|
|
96
96
|
});
|
|
@@ -100,12 +100,12 @@ class DuplicateSelectionAction extends EditorAction {
|
|
|
100
100
|
constructor() {
|
|
101
101
|
super({
|
|
102
102
|
id: 'editor.action.duplicateSelection',
|
|
103
|
-
label: ( localize2(
|
|
103
|
+
label: ( localize2(1277, "Duplicate Selection")),
|
|
104
104
|
precondition: EditorContextKeys.writable,
|
|
105
105
|
menuOpts: {
|
|
106
106
|
menuId: MenuId.MenubarSelectionMenu,
|
|
107
107
|
group: '2_line',
|
|
108
|
-
title: ( localize(
|
|
108
|
+
title: ( localize(1278, "&&Duplicate Selection")),
|
|
109
109
|
order: 5
|
|
110
110
|
}
|
|
111
111
|
});
|
|
@@ -158,7 +158,7 @@ class MoveLinesUpAction extends AbstractMoveLinesAction {
|
|
|
158
158
|
constructor() {
|
|
159
159
|
super(false, {
|
|
160
160
|
id: 'editor.action.moveLinesUpAction',
|
|
161
|
-
label: ( localize2(
|
|
161
|
+
label: ( localize2(1279, "Move Line Up")),
|
|
162
162
|
precondition: EditorContextKeys.writable,
|
|
163
163
|
kbOpts: {
|
|
164
164
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -169,7 +169,7 @@ class MoveLinesUpAction extends AbstractMoveLinesAction {
|
|
|
169
169
|
menuOpts: {
|
|
170
170
|
menuId: MenuId.MenubarSelectionMenu,
|
|
171
171
|
group: '2_line',
|
|
172
|
-
title: ( localize(
|
|
172
|
+
title: ( localize(1280, "Mo&&ve Line Up")),
|
|
173
173
|
order: 3
|
|
174
174
|
}
|
|
175
175
|
});
|
|
@@ -179,7 +179,7 @@ class MoveLinesDownAction extends AbstractMoveLinesAction {
|
|
|
179
179
|
constructor() {
|
|
180
180
|
super(true, {
|
|
181
181
|
id: 'editor.action.moveLinesDownAction',
|
|
182
|
-
label: ( localize2(
|
|
182
|
+
label: ( localize2(1281, "Move Line Down")),
|
|
183
183
|
precondition: EditorContextKeys.writable,
|
|
184
184
|
kbOpts: {
|
|
185
185
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -190,7 +190,7 @@ class MoveLinesDownAction extends AbstractMoveLinesAction {
|
|
|
190
190
|
menuOpts: {
|
|
191
191
|
menuId: MenuId.MenubarSelectionMenu,
|
|
192
192
|
group: '2_line',
|
|
193
|
-
title: ( localize(
|
|
193
|
+
title: ( localize(1282, "Move &&Line Down")),
|
|
194
194
|
order: 4
|
|
195
195
|
}
|
|
196
196
|
});
|
|
@@ -228,7 +228,7 @@ class SortLinesAscendingAction extends AbstractSortLinesAction {
|
|
|
228
228
|
constructor() {
|
|
229
229
|
super(false, {
|
|
230
230
|
id: 'editor.action.sortLinesAscending',
|
|
231
|
-
label: ( localize2(
|
|
231
|
+
label: ( localize2(1283, "Sort Lines Ascending")),
|
|
232
232
|
precondition: EditorContextKeys.writable
|
|
233
233
|
});
|
|
234
234
|
}
|
|
@@ -237,7 +237,7 @@ class SortLinesDescendingAction extends AbstractSortLinesAction {
|
|
|
237
237
|
constructor() {
|
|
238
238
|
super(true, {
|
|
239
239
|
id: 'editor.action.sortLinesDescending',
|
|
240
|
-
label: ( localize2(
|
|
240
|
+
label: ( localize2(1284, "Sort Lines Descending")),
|
|
241
241
|
precondition: EditorContextKeys.writable
|
|
242
242
|
});
|
|
243
243
|
}
|
|
@@ -246,7 +246,7 @@ class DeleteDuplicateLinesAction extends EditorAction {
|
|
|
246
246
|
constructor() {
|
|
247
247
|
super({
|
|
248
248
|
id: 'editor.action.removeDuplicateLines',
|
|
249
|
-
label: ( localize2(
|
|
249
|
+
label: ( localize2(1285, "Delete Duplicate Lines")),
|
|
250
250
|
precondition: EditorContextKeys.writable
|
|
251
251
|
});
|
|
252
252
|
}
|
|
@@ -305,7 +305,7 @@ class TrimTrailingWhitespaceAction extends EditorAction {
|
|
|
305
305
|
constructor() {
|
|
306
306
|
super({
|
|
307
307
|
id: TrimTrailingWhitespaceAction.ID,
|
|
308
|
-
label: ( localize2(
|
|
308
|
+
label: ( localize2(1286, "Trim Trailing Whitespace")),
|
|
309
309
|
precondition: EditorContextKeys.writable,
|
|
310
310
|
kbOpts: {
|
|
311
311
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -336,7 +336,7 @@ class DeleteLinesAction extends EditorAction {
|
|
|
336
336
|
constructor() {
|
|
337
337
|
super({
|
|
338
338
|
id: 'editor.action.deleteLines',
|
|
339
|
-
label: ( localize2(
|
|
339
|
+
label: ( localize2(1287, "Delete Line")),
|
|
340
340
|
precondition: EditorContextKeys.writable,
|
|
341
341
|
kbOpts: {
|
|
342
342
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -422,7 +422,7 @@ class IndentLinesAction extends EditorAction {
|
|
|
422
422
|
constructor() {
|
|
423
423
|
super({
|
|
424
424
|
id: 'editor.action.indentLines',
|
|
425
|
-
label: ( localize2(
|
|
425
|
+
label: ( localize2(1288, "Indent Line")),
|
|
426
426
|
precondition: EditorContextKeys.writable,
|
|
427
427
|
kbOpts: {
|
|
428
428
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -445,7 +445,7 @@ class OutdentLinesAction extends EditorAction {
|
|
|
445
445
|
constructor() {
|
|
446
446
|
super({
|
|
447
447
|
id: 'editor.action.outdentLines',
|
|
448
|
-
label: ( localize2(
|
|
448
|
+
label: ( localize2(1289, "Outdent Line")),
|
|
449
449
|
precondition: EditorContextKeys.writable,
|
|
450
450
|
kbOpts: {
|
|
451
451
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -462,7 +462,7 @@ class InsertLineBeforeAction extends EditorAction {
|
|
|
462
462
|
constructor() {
|
|
463
463
|
super({
|
|
464
464
|
id: 'editor.action.insertLineBefore',
|
|
465
|
-
label: ( localize2(
|
|
465
|
+
label: ( localize2(1290, "Insert Line Above")),
|
|
466
466
|
precondition: EditorContextKeys.writable,
|
|
467
467
|
kbOpts: {
|
|
468
468
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -484,7 +484,7 @@ class InsertLineAfterAction extends EditorAction {
|
|
|
484
484
|
constructor() {
|
|
485
485
|
super({
|
|
486
486
|
id: 'editor.action.insertLineAfter',
|
|
487
|
-
label: ( localize2(
|
|
487
|
+
label: ( localize2(1291, "Insert Line Below")),
|
|
488
488
|
precondition: EditorContextKeys.writable,
|
|
489
489
|
kbOpts: {
|
|
490
490
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -534,7 +534,7 @@ class DeleteAllLeftAction extends AbstractDeleteAllToBoundaryAction {
|
|
|
534
534
|
constructor() {
|
|
535
535
|
super({
|
|
536
536
|
id: 'deleteAllLeft',
|
|
537
|
-
label: ( localize2(
|
|
537
|
+
label: ( localize2(1292, "Delete All Left")),
|
|
538
538
|
precondition: EditorContextKeys.writable,
|
|
539
539
|
kbOpts: {
|
|
540
540
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -613,7 +613,7 @@ class DeleteAllRightAction extends AbstractDeleteAllToBoundaryAction {
|
|
|
613
613
|
constructor() {
|
|
614
614
|
super({
|
|
615
615
|
id: 'deleteAllRight',
|
|
616
|
-
label: ( localize2(
|
|
616
|
+
label: ( localize2(1293, "Delete All Right")),
|
|
617
617
|
precondition: EditorContextKeys.writable,
|
|
618
618
|
kbOpts: {
|
|
619
619
|
kbExpr: EditorContextKeys.textInputFocus,
|
|
@@ -675,7 +675,7 @@ class JoinLinesAction extends EditorAction {
|
|
|
675
675
|
constructor() {
|
|
676
676
|
super({
|
|
677
677
|
id: 'editor.action.joinLines',
|
|
678
|
-
label: ( localize2(
|
|
678
|
+
label: ( localize2(1294, "Join Lines")),
|
|
679
679
|
precondition: EditorContextKeys.writable,
|
|
680
680
|
kbOpts: {
|
|
681
681
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -841,7 +841,7 @@ class TransposeAction extends EditorAction {
|
|
|
841
841
|
constructor() {
|
|
842
842
|
super({
|
|
843
843
|
id: 'editor.action.transpose',
|
|
844
|
-
label: ( localize2(
|
|
844
|
+
label: ( localize2(1295, "Transpose Characters around the Cursor")),
|
|
845
845
|
precondition: EditorContextKeys.writable
|
|
846
846
|
});
|
|
847
847
|
}
|
|
@@ -933,7 +933,7 @@ class UpperCaseAction extends AbstractCaseAction {
|
|
|
933
933
|
constructor() {
|
|
934
934
|
super({
|
|
935
935
|
id: 'editor.action.transformToUppercase',
|
|
936
|
-
label: ( localize2(
|
|
936
|
+
label: ( localize2(1296, "Transform to Uppercase")),
|
|
937
937
|
precondition: EditorContextKeys.writable
|
|
938
938
|
});
|
|
939
939
|
}
|
|
@@ -945,7 +945,7 @@ class LowerCaseAction extends AbstractCaseAction {
|
|
|
945
945
|
constructor() {
|
|
946
946
|
super({
|
|
947
947
|
id: 'editor.action.transformToLowercase',
|
|
948
|
-
label: ( localize2(
|
|
948
|
+
label: ( localize2(1297, "Transform to Lowercase")),
|
|
949
949
|
precondition: EditorContextKeys.writable
|
|
950
950
|
});
|
|
951
951
|
}
|
|
@@ -980,7 +980,7 @@ class TitleCaseAction extends AbstractCaseAction {
|
|
|
980
980
|
constructor() {
|
|
981
981
|
super({
|
|
982
982
|
id: 'editor.action.transformToTitlecase',
|
|
983
|
-
label: ( localize2(
|
|
983
|
+
label: ( localize2(1298, "Transform to Title Case")),
|
|
984
984
|
precondition: EditorContextKeys.writable
|
|
985
985
|
});
|
|
986
986
|
}
|
|
@@ -1000,7 +1000,7 @@ class SnakeCaseAction extends AbstractCaseAction {
|
|
|
1000
1000
|
constructor() {
|
|
1001
1001
|
super({
|
|
1002
1002
|
id: 'editor.action.transformToSnakecase',
|
|
1003
|
-
label: ( localize2(
|
|
1003
|
+
label: ( localize2(1299, "Transform to Snake Case")),
|
|
1004
1004
|
precondition: EditorContextKeys.writable
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
@@ -1021,7 +1021,7 @@ class CamelCaseAction extends AbstractCaseAction {
|
|
|
1021
1021
|
constructor() {
|
|
1022
1022
|
super({
|
|
1023
1023
|
id: 'editor.action.transformToCamelcase',
|
|
1024
|
-
label: ( localize2(
|
|
1024
|
+
label: ( localize2(1300, "Transform to Camel Case")),
|
|
1025
1025
|
precondition: EditorContextKeys.writable
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
@@ -1042,7 +1042,7 @@ class PascalCaseAction extends AbstractCaseAction {
|
|
|
1042
1042
|
constructor() {
|
|
1043
1043
|
super({
|
|
1044
1044
|
id: 'editor.action.transformToPascalcase',
|
|
1045
|
-
label: ( localize2(
|
|
1045
|
+
label: ( localize2(1301, "Transform to Pascal Case")),
|
|
1046
1046
|
precondition: EditorContextKeys.writable
|
|
1047
1047
|
});
|
|
1048
1048
|
}
|
|
@@ -1073,7 +1073,7 @@ class KebabCaseAction extends AbstractCaseAction {
|
|
|
1073
1073
|
constructor() {
|
|
1074
1074
|
super({
|
|
1075
1075
|
id: 'editor.action.transformToKebabcase',
|
|
1076
|
-
label: ( localize2(
|
|
1076
|
+
label: ( localize2(1302, 'Transform to Kebab Case')),
|
|
1077
1077
|
precondition: EditorContextKeys.writable
|
|
1078
1078
|
});
|
|
1079
1079
|
}
|
|
@@ -306,7 +306,7 @@ class LinkedEditingAction extends EditorAction {
|
|
|
306
306
|
constructor() {
|
|
307
307
|
super({
|
|
308
308
|
id: 'editor.action.linkedEditing',
|
|
309
|
-
label: ( localize2(
|
|
309
|
+
label: ( localize2(1303, "Start Linked Editing")),
|
|
310
310
|
precondition: ( ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasRenameProvider)),
|
|
311
311
|
kbOpts: {
|
|
312
312
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -364,7 +364,7 @@ function getLinkedEditingRanges(providers, model, position, token) {
|
|
|
364
364
|
}
|
|
365
365
|
})), result => !!result && isNonEmptyArray(result?.ranges));
|
|
366
366
|
}
|
|
367
|
-
registerColor('editor.linkedEditingBackground', { dark: ( ( Color.fromHex('#f00')).transparent(0.3)), light: ( ( Color.fromHex('#f00')).transparent(0.3)), hcDark: ( ( Color.fromHex('#f00')).transparent(0.3)), hcLight: Color.white }, ( localize(
|
|
367
|
+
registerColor('editor.linkedEditingBackground', { dark: ( ( Color.fromHex('#f00')).transparent(0.3)), light: ( ( Color.fromHex('#f00')).transparent(0.3)), hcDark: ( ( Color.fromHex('#f00')).transparent(0.3)), hcLight: Color.white }, ( localize(1304, 'Background color when the editor auto renames on type.')));
|
|
368
368
|
registerModelAndPositionCommand('_executeLinkedEditingProvider', (_accessor, model, position) => {
|
|
369
369
|
const { linkedEditingRangeProvider } = _accessor.get(ILanguageFeaturesService);
|
|
370
370
|
return getLinkedEditingRanges(linkedEditingRangeProvider, model, position, CancellationToken.None);
|
|
@@ -208,13 +208,13 @@ let LinkDetector = class LinkDetector extends Disposable {
|
|
|
208
208
|
const messageOrError = err instanceof Error ? err.message : err;
|
|
209
209
|
if (messageOrError === 'invalid') {
|
|
210
210
|
this.notificationService.warn(( localize(
|
|
211
|
-
|
|
211
|
+
1305,
|
|
212
212
|
'Failed to open this link because it is not well-formed: {0}',
|
|
213
213
|
(link.url.toString())
|
|
214
214
|
)));
|
|
215
215
|
}
|
|
216
216
|
else if (messageOrError === 'missing') {
|
|
217
|
-
this.notificationService.warn(( localize(
|
|
217
|
+
this.notificationService.warn(( localize(1306, 'Failed to open this link because its target is missing.')));
|
|
218
218
|
}
|
|
219
219
|
else {
|
|
220
220
|
onUnexpectedError(err);
|
|
@@ -310,22 +310,22 @@ function getHoverMessage(link, useMetaKey) {
|
|
|
310
310
|
const label = link.tooltip
|
|
311
311
|
? link.tooltip
|
|
312
312
|
: executeCmd
|
|
313
|
-
? ( localize(
|
|
314
|
-
: ( localize(
|
|
313
|
+
? ( localize(1307, 'Execute command'))
|
|
314
|
+
: ( localize(1308, 'Follow link'));
|
|
315
315
|
const kb = useMetaKey
|
|
316
316
|
? isMacintosh
|
|
317
|
-
? ( localize(
|
|
318
|
-
: ( localize(
|
|
317
|
+
? ( localize(1309, "cmd + click"))
|
|
318
|
+
: ( localize(1310, "ctrl + click"))
|
|
319
319
|
: isMacintosh
|
|
320
|
-
? ( localize(
|
|
321
|
-
: ( localize(
|
|
320
|
+
? ( localize(1311, "option + click"))
|
|
321
|
+
: ( localize(1312, "alt + click"));
|
|
322
322
|
if (link.url) {
|
|
323
323
|
let nativeLabel = '';
|
|
324
324
|
if (/^command:/i.test(( link.url.toString()))) {
|
|
325
325
|
const match = ( link.url.toString()).match(/^command:([^?#]+)/);
|
|
326
326
|
if (match) {
|
|
327
327
|
const commandId = match[1];
|
|
328
|
-
nativeLabel = ( localize(
|
|
328
|
+
nativeLabel = ( localize(1313, "Execute command {0}", commandId));
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
const hoverMessage = ( new MarkdownString('', true))
|
|
@@ -341,7 +341,7 @@ class OpenLinkAction extends EditorAction {
|
|
|
341
341
|
constructor() {
|
|
342
342
|
super({
|
|
343
343
|
id: 'editor.action.openLink',
|
|
344
|
-
label: ( localize2(
|
|
344
|
+
label: ( localize2(1314, "Open Link")),
|
|
345
345
|
precondition: undefined
|
|
346
346
|
});
|
|
347
347
|
}
|
|
@@ -24,7 +24,7 @@ var MessageController_1;
|
|
|
24
24
|
let MessageController = class MessageController {
|
|
25
25
|
static { MessageController_1 = this; }
|
|
26
26
|
static { this.ID = 'editor.contrib.messageController'; }
|
|
27
|
-
static { this.MESSAGE_VISIBLE = ( new RawContextKey('messageVisible', false, ( localize(
|
|
27
|
+
static { this.MESSAGE_VISIBLE = ( new RawContextKey('messageVisible', false, ( localize(1315, 'Whether the editor is currently showing an inline message')))); }
|
|
28
28
|
static get(editor) {
|
|
29
29
|
return editor.getContribution(MessageController_1.ID);
|
|
30
30
|
}
|