monaco-editor-core 0.55.0-dev-20251029 → 0.55.0-dev-20251030

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.
Files changed (165) hide show
  1. package/esm/nls.keys.json +1 -1
  2. package/esm/nls.messages.cs.js +2 -2
  3. package/esm/nls.messages.de.js +2 -2
  4. package/esm/nls.messages.es.js +2 -2
  5. package/esm/nls.messages.fr.js +2 -2
  6. package/esm/nls.messages.it.js +2 -2
  7. package/esm/nls.messages.ja.js +2 -2
  8. package/esm/nls.messages.js +1 -1
  9. package/esm/nls.messages.json +1 -1
  10. package/esm/nls.messages.ko.js +2 -2
  11. package/esm/nls.messages.pl.js +2 -2
  12. package/esm/nls.messages.pt-br.js +2 -2
  13. package/esm/nls.messages.ru.js +2 -2
  14. package/esm/nls.messages.tr.js +2 -2
  15. package/esm/nls.messages.zh-cn.js +2 -2
  16. package/esm/nls.messages.zh-tw.js +2 -2
  17. package/esm/nls.metadata.json +14 -0
  18. package/esm/vs/base/browser/markdownRenderer.js +52 -1
  19. package/esm/vs/base/browser/markdownRenderer.js.map +1 -1
  20. package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  21. package/esm/vs/base/common/glob.js +41 -31
  22. package/esm/vs/base/common/glob.js.map +1 -1
  23. package/esm/vs/base/common/htmlContent.js +5 -1
  24. package/esm/vs/base/common/htmlContent.js.map +1 -1
  25. package/esm/vs/base/common/network.js +2 -6
  26. package/esm/vs/base/common/network.js.map +1 -1
  27. package/esm/vs/base/common/strings.js +7 -5
  28. package/esm/vs/base/common/strings.js.map +1 -1
  29. package/esm/vs/editor/common/textModelEditSource.js +1 -0
  30. package/esm/vs/editor/common/textModelEditSource.js.map +1 -1
  31. package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +4 -0
  32. package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js.map +1 -1
  33. package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  34. package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
  35. package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  36. package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  37. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  38. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
  39. package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  40. package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  41. package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  42. package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  43. package/esm/vs/editor/contrib/find/browser/findController.js +16 -16
  44. package/esm/vs/editor/contrib/find/browser/findWidget.js +26 -26
  45. package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
  46. package/esm/vs/editor/contrib/folding/browser/folding.js.map +1 -1
  47. package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  48. package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  49. package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
  50. package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  51. package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  52. package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  53. package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  54. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  55. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  56. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  57. package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  58. package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  59. package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  60. package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js +17 -6
  61. package/esm/vs/editor/contrib/hover/browser/contentHoverRendered.js.map +1 -1
  62. package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +6 -3
  63. package/esm/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js.map +1 -1
  64. package/esm/vs/editor/contrib/hover/browser/hover.css +36 -0
  65. package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  66. package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  67. package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +51 -0
  68. package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js.map +1 -0
  69. package/esm/vs/editor/contrib/hover/browser/hoverTypes.js.map +1 -1
  70. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +25 -9
  71. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
  72. package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +8 -5
  73. package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js.map +1 -1
  74. package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  75. package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  76. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  77. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +20 -20
  78. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
  79. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
  80. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +4 -1
  81. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js.map +1 -1
  82. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  83. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
  84. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
  85. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
  86. package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  87. package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  88. package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
  89. package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  90. package/esm/vs/editor/contrib/links/browser/links.js +10 -10
  91. package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
  92. package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  93. package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  94. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  95. package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  96. package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  97. package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +8 -8
  98. package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  99. package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  100. package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
  101. package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
  102. package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  103. package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  104. package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  105. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  106. package/esm/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  107. package/esm/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  108. package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
  109. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  110. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  111. package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  112. package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  113. package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  114. package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  115. package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  116. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +27 -24
  117. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js.map +1 -1
  118. package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  119. package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  120. package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  121. package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  122. package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  123. package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
  124. package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
  125. package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  126. package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  127. package/esm/vs/platform/actions/browser/toolbar.js +2 -2
  128. package/esm/vs/platform/actions/common/actions.js +2 -0
  129. package/esm/vs/platform/actions/common/actions.js.map +1 -1
  130. package/esm/vs/platform/actions/common/menuService.js +2 -2
  131. package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
  132. package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  133. package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
  134. package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
  135. package/esm/vs/platform/contextkey/common/scanner.js +5 -5
  136. package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  137. package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
  138. package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
  139. package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  140. package/esm/vs/platform/list/browser/listService.js +27 -27
  141. package/esm/vs/platform/markers/common/markerService.js +2 -2
  142. package/esm/vs/platform/markers/common/markers.js +6 -6
  143. package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +7 -7
  144. package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
  145. package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
  146. package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  147. package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
  148. package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
  149. package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  150. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  151. package/esm/vs/platform/theme/common/colorUtils.js +2 -2
  152. package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
  153. package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
  154. package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
  155. package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
  156. package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
  157. package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
  158. package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
  159. package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
  160. package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  161. package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
  162. package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
  163. package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  164. package/esm/vs/platform/workspace/common/workspace.js +1 -1
  165. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;AAEhG,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAe,MAAM,yCAAyC,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGtG,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAgC,yBAAyB,EAA2G,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC5O,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AACxG,OAAO,KAAK,GAAG,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,MAAM,OAAO,sBAAsB;IAClC,YACiB,KAAsD,EACtD,KAAY,EACZ,UAAuC;QAFvC,UAAK,GAAL,KAAK,CAAiD;QACtD,UAAK,GAAL,KAAK,CAAO;QACZ,eAAU,GAAV,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AAA,qBAAqB,CAAA;IACrB,WAAA,iBAAiB,CAAA;IACjB,WAAA,wBAAwB,CAAA;GATd,iCAAiC,CAwI7C","file":"hoverParticipant.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as dom from '../../../../../base/browser/dom.js';\nimport { MarkdownString } from '../../../../../base/common/htmlContent.js';\nimport { DisposableStore, IDisposable } from '../../../../../base/common/lifecycle.js';\nimport { autorun, autorunWithStore, constObservable } from '../../../../../base/common/observable.js';\nimport { ICodeEditor, IEditorMouseEvent, MouseTargetType } from '../../../../browser/editorBrowser.js';\nimport { EditorOption } from '../../../../common/config/editorOptions.js';\nimport { Range } from '../../../../common/core/range.js';\nimport { IModelDecoration } from '../../../../common/model.js';\nimport { HoverAnchor, HoverAnchorType, HoverForeignElementAnchor, IEditorHoverParticipant, IEditorHoverRenderContext, IHoverPart, IRenderedHoverPart, IRenderedHoverParts, RenderedHoverParts } from '../../../hover/browser/hoverTypes.js';\nimport { InlineCompletionsController } from '../controller/inlineCompletionsController.js';\nimport { InlineSuggestionHintsContentWidget } from './inlineCompletionsHintsWidget.js';\nimport { IMarkdownRendererService } from '../../../../../platform/markdown/browser/markdownRenderer.js';\nimport * as nls from '../../../../../nls.js';\nimport { IAccessibilityService } from '../../../../../platform/accessibility/common/accessibility.js';\nimport { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';\nimport { ITelemetryService } from '../../../../../platform/telemetry/common/telemetry.js';\nimport { GhostTextView } from '../view/ghostText/ghostTextView.js';\n\nexport class InlineCompletionsHover implements IHoverPart {\n\tconstructor(\n\t\tpublic readonly owner: IEditorHoverParticipant<InlineCompletionsHover>,\n\t\tpublic readonly range: Range,\n\t\tpublic readonly controller: InlineCompletionsController\n\t) { }\n\n\tpublic isValidForHoverAnchor(anchor: HoverAnchor): boolean {\n\t\treturn (\n\t\t\tanchor.type === HoverAnchorType.Range\n\t\t\t&& this.range.startColumn <= anchor.range.startColumn\n\t\t\t&& this.range.endColumn >= anchor.range.endColumn\n\t\t);\n\t}\n}\n\nexport class InlineCompletionsHoverParticipant implements IEditorHoverParticipant<InlineCompletionsHover> {\n\n\tpublic readonly hoverOrdinal: number = 4;\n\n\tconstructor(\n\t\tprivate readonly _editor: ICodeEditor,\n\t\t@IAccessibilityService private readonly accessibilityService: IAccessibilityService,\n\t\t@IInstantiationService private readonly _instantiationService: IInstantiationService,\n\t\t@ITelemetryService private readonly _telemetryService: ITelemetryService,\n\t\t@IMarkdownRendererService private readonly _markdownRendererService: IMarkdownRendererService,\n\t) {\n\t}\n\n\tsuggestHoverAnchor(mouseEvent: IEditorMouseEvent): HoverAnchor | null {\n\t\tconst controller = InlineCompletionsController.get(this._editor);\n\t\tif (!controller) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst target = mouseEvent.target;\n\t\tif (target.type === MouseTargetType.CONTENT_VIEW_ZONE) {\n\t\t\t// handle the case where the mouse is over the view zone\n\t\t\tconst viewZoneData = target.detail;\n\t\t\tif (controller.shouldShowHoverAtViewZone(viewZoneData.viewZoneId)) {\n\t\t\t\treturn new HoverForeignElementAnchor(1000, this, Range.fromPositions(this._editor.getModel()!.validatePosition(viewZoneData.positionBefore || viewZoneData.position)), mouseEvent.event.posx, mouseEvent.event.posy, false);\n\t\t\t}\n\t\t}\n\t\tif (target.type === MouseTargetType.CONTENT_EMPTY) {\n\t\t\t// handle the case where the mouse is over the empty portion of a line following ghost text\n\t\t\tif (controller.shouldShowHoverAt(target.range)) {\n\t\t\t\treturn new HoverForeignElementAnchor(1000, this, target.range, mouseEvent.event.posx, mouseEvent.event.posy, false);\n\t\t\t}\n\t\t}\n\t\tif (target.type === MouseTargetType.CONTENT_TEXT) {\n\t\t\t// handle the case where the mouse is directly over ghost text\n\t\t\tconst mightBeForeignElement = target.detail.mightBeForeignElement;\n\t\t\tif (mightBeForeignElement && controller.shouldShowHoverAt(target.range)) {\n\t\t\t\treturn new HoverForeignElementAnchor(1000, this, target.range, mouseEvent.event.posx, mouseEvent.event.posy, false);\n\t\t\t}\n\t\t}\n\t\tif (target.type === MouseTargetType.CONTENT_WIDGET && target.element) {\n\t\t\tconst ctx = GhostTextView.getWarningWidgetContext(target.element);\n\t\t\tif (ctx && controller.shouldShowHoverAt(ctx.range)) {\n\t\t\t\treturn new HoverForeignElementAnchor(1000, this, ctx.range, mouseEvent.event.posx, mouseEvent.event.posy, false);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tcomputeSync(anchor: HoverAnchor, lineDecorations: IModelDecoration[]): InlineCompletionsHover[] {\n\t\tif (this._editor.getOption(EditorOption.inlineSuggest).showToolbar !== 'onHover') {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst controller = InlineCompletionsController.get(this._editor);\n\t\tif (controller && controller.shouldShowHoverAt(anchor.range)) {\n\t\t\treturn [new InlineCompletionsHover(this, anchor.range, controller)];\n\t\t}\n\t\treturn [];\n\t}\n\n\trenderHoverParts(context: IEditorHoverRenderContext, hoverParts: InlineCompletionsHover[]): IRenderedHoverParts<InlineCompletionsHover> {\n\t\tconst disposables = new DisposableStore();\n\t\tconst part = hoverParts[0];\n\n\t\tthis._telemetryService.publicLog2<{}, {\n\t\t\towner: 'hediet';\n\t\t\tcomment: 'This event tracks whenever an inline completion hover is shown.';\n\t\t}>('inlineCompletionHover.shown');\n\n\t\tif (this.accessibilityService.isScreenReaderOptimized() && !this._editor.getOption(EditorOption.screenReaderAnnounceInlineSuggestion)) {\n\t\t\tdisposables.add(this.renderScreenReaderText(context, part));\n\t\t}\n\n\t\tconst model = part.controller.model.get()!;\n\t\tconst widgetNode: HTMLElement = document.createElement('div');\n\t\tcontext.fragment.appendChild(widgetNode);\n\n\t\tdisposables.add(autorunWithStore((reader, store) => {\n\t\t\tconst w = store.add(this._instantiationService.createInstance(\n\t\t\t\tInlineSuggestionHintsContentWidget.hot.read(reader),\n\t\t\t\tthis._editor,\n\t\t\t\tfalse,\n\t\t\t\tconstObservable(null),\n\t\t\t\tmodel.selectedInlineCompletionIndex,\n\t\t\t\tmodel.inlineCompletionsCount,\n\t\t\t\tmodel.activeCommands,\n\t\t\t\tmodel.warning,\n\t\t\t\t() => {\n\t\t\t\t\tcontext.onContentsChanged();\n\t\t\t\t},\n\t\t\t));\n\t\t\twidgetNode.replaceChildren(w.getDomNode());\n\t\t}));\n\n\t\tmodel.triggerExplicitly();\n\n\t\tconst renderedHoverPart: IRenderedHoverPart<InlineCompletionsHover> = {\n\t\t\thoverPart: part,\n\t\t\thoverElement: widgetNode,\n\t\t\tdispose() { disposables.dispose(); }\n\t\t};\n\t\treturn new RenderedHoverParts([renderedHoverPart]);\n\t}\n\n\tprivate renderScreenReaderText(context: IEditorHoverRenderContext, part: InlineCompletionsHover): IDisposable {\n\t\tconst disposables = new DisposableStore();\n\t\tconst $ = dom.$;\n\t\tconst markdownHoverElement = $('div.hover-row.markdown-hover');\n\t\tconst hoverContentsElement = dom.append(markdownHoverElement, $('div.hover-contents', { ['aria-live']: 'assertive' }));\n\t\tconst render = (code: string) => {\n\t\t\tconst inlineSuggestionAvailable = nls.localize('inlineSuggestionFollows', \"Suggestion:\");\n\t\t\tconst renderedContents = disposables.add(this._markdownRendererService.render(new MarkdownString().appendText(inlineSuggestionAvailable).appendCodeblock('text', code), {\n\t\t\t\tcontext: this._editor,\n\t\t\t\tasyncRenderCallback: () => {\n\t\t\t\t\thoverContentsElement.className = 'hover-contents code-hover-contents';\n\t\t\t\t\tcontext.onContentsChanged();\n\t\t\t\t}\n\t\t\t}));\n\t\t\thoverContentsElement.replaceChildren(renderedContents.element);\n\t\t};\n\n\t\tdisposables.add(autorun(reader => {\n\t\t\t/** @description update hover */\n\t\t\tconst ghostText = part.controller.model.read(reader)?.primaryGhostText.read(reader);\n\t\t\tif (ghostText) {\n\t\t\t\tconst lineText = this._editor.getModel()!.getLineContent(ghostText.lineNumber);\n\t\t\t\trender(ghostText.renderForScreenReader(lineText));\n\t\t\t} else {\n\t\t\t\tdom.reset(hoverContentsElement);\n\t\t\t}\n\t\t}));\n\n\t\tcontext.fragment.appendChild(markdownHoverElement);\n\t\treturn disposables;\n\t}\n}\n"]}
1
+ {"version":3,"sources":["vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;;;;;;AAEhG,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAe,MAAM,yCAAyC,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGtG,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEzD,OAAO,EAAgC,yBAAyB,EAA2G,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC5O,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8DAA8D,CAAC;AACxG,OAAO,KAAK,GAAG,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,+DAA+D,CAAC;AACtG,OAAO,EAAE,iBAAiB,EAAE,MAAM,uDAAuD,CAAC;AAC1F,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,MAAM,OAAO,sBAAsB;IAClC,YACiB,KAAsD,EACtD,KAAY,EACZ,UAAuC;QAFvC,UAAK,GAAL,KAAK,CAAiD;QACtD,UAAK,GAAL,KAAK,CAAO;QACZ,eAAU,GAAV,UAA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C,CAAC;QACnD,OAAO,WAAW,CAAC;IACpB,CAAC;CACD,CAAA;AA5IY,iCAAiC;IAM3C,WAAA,qBAAqB,CAAA;IACrB,WAAA,qBAAqB,CAAA;IACrB,WAAA,iBAAiB,CAAA;IACjB,WAAA,wBAAwB,CAAA;GATd,iCAAiC,CA4I7C","file":"hoverParticipant.js","sourceRoot":"file:///mnt/vss/_work/1/s/dependencies/vscode/out-editor-src","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\nimport * as dom from '../../../../../base/browser/dom.js';\nimport { MarkdownString } from '../../../../../base/common/htmlContent.js';\nimport { DisposableStore, IDisposable } from '../../../../../base/common/lifecycle.js';\nimport { autorun, autorunWithStore, constObservable } from '../../../../../base/common/observable.js';\nimport { ICodeEditor, IEditorMouseEvent, MouseTargetType } from '../../../../browser/editorBrowser.js';\nimport { EditorOption } from '../../../../common/config/editorOptions.js';\nimport { Range } from '../../../../common/core/range.js';\nimport { IModelDecoration } from '../../../../common/model.js';\nimport { HoverAnchor, HoverAnchorType, HoverForeignElementAnchor, IEditorHoverParticipant, IEditorHoverRenderContext, IHoverPart, IRenderedHoverPart, IRenderedHoverParts, RenderedHoverParts } from '../../../hover/browser/hoverTypes.js';\nimport { InlineCompletionsController } from '../controller/inlineCompletionsController.js';\nimport { InlineSuggestionHintsContentWidget } from './inlineCompletionsHintsWidget.js';\nimport { IMarkdownRendererService } from '../../../../../platform/markdown/browser/markdownRenderer.js';\nimport * as nls from '../../../../../nls.js';\nimport { IAccessibilityService } from '../../../../../platform/accessibility/common/accessibility.js';\nimport { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';\nimport { ITelemetryService } from '../../../../../platform/telemetry/common/telemetry.js';\nimport { GhostTextView } from '../view/ghostText/ghostTextView.js';\n\nexport class InlineCompletionsHover implements IHoverPart {\n\tconstructor(\n\t\tpublic readonly owner: IEditorHoverParticipant<InlineCompletionsHover>,\n\t\tpublic readonly range: Range,\n\t\tpublic readonly controller: InlineCompletionsController\n\t) { }\n\n\tpublic isValidForHoverAnchor(anchor: HoverAnchor): boolean {\n\t\treturn (\n\t\t\tanchor.type === HoverAnchorType.Range\n\t\t\t&& this.range.startColumn <= anchor.range.startColumn\n\t\t\t&& this.range.endColumn >= anchor.range.endColumn\n\t\t);\n\t}\n}\n\nexport class InlineCompletionsHoverParticipant implements IEditorHoverParticipant<InlineCompletionsHover> {\n\n\tpublic readonly hoverOrdinal: number = 4;\n\n\tconstructor(\n\t\tprivate readonly _editor: ICodeEditor,\n\t\t@IAccessibilityService private readonly accessibilityService: IAccessibilityService,\n\t\t@IInstantiationService private readonly _instantiationService: IInstantiationService,\n\t\t@ITelemetryService private readonly _telemetryService: ITelemetryService,\n\t\t@IMarkdownRendererService private readonly _markdownRendererService: IMarkdownRendererService,\n\t) {\n\t}\n\n\tsuggestHoverAnchor(mouseEvent: IEditorMouseEvent): HoverAnchor | null {\n\t\tconst controller = InlineCompletionsController.get(this._editor);\n\t\tif (!controller) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst target = mouseEvent.target;\n\t\tif (target.type === MouseTargetType.CONTENT_VIEW_ZONE) {\n\t\t\t// handle the case where the mouse is over the view zone\n\t\t\tconst viewZoneData = target.detail;\n\t\t\tif (controller.shouldShowHoverAtViewZone(viewZoneData.viewZoneId)) {\n\t\t\t\treturn new HoverForeignElementAnchor(1000, this, Range.fromPositions(this._editor.getModel()!.validatePosition(viewZoneData.positionBefore || viewZoneData.position)), mouseEvent.event.posx, mouseEvent.event.posy, false);\n\t\t\t}\n\t\t}\n\t\tif (target.type === MouseTargetType.CONTENT_EMPTY) {\n\t\t\t// handle the case where the mouse is over the empty portion of a line following ghost text\n\t\t\tif (controller.shouldShowHoverAt(target.range)) {\n\t\t\t\treturn new HoverForeignElementAnchor(1000, this, target.range, mouseEvent.event.posx, mouseEvent.event.posy, false);\n\t\t\t}\n\t\t}\n\t\tif (target.type === MouseTargetType.CONTENT_TEXT) {\n\t\t\t// handle the case where the mouse is directly over ghost text\n\t\t\tconst mightBeForeignElement = target.detail.mightBeForeignElement;\n\t\t\tif (mightBeForeignElement && controller.shouldShowHoverAt(target.range)) {\n\t\t\t\treturn new HoverForeignElementAnchor(1000, this, target.range, mouseEvent.event.posx, mouseEvent.event.posy, false);\n\t\t\t}\n\t\t}\n\t\tif (target.type === MouseTargetType.CONTENT_WIDGET && target.element) {\n\t\t\tconst ctx = GhostTextView.getWarningWidgetContext(target.element);\n\t\t\tif (ctx && controller.shouldShowHoverAt(ctx.range)) {\n\t\t\t\treturn new HoverForeignElementAnchor(1000, this, ctx.range, mouseEvent.event.posx, mouseEvent.event.posy, false);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tcomputeSync(anchor: HoverAnchor, lineDecorations: IModelDecoration[]): InlineCompletionsHover[] {\n\t\tif (this._editor.getOption(EditorOption.inlineSuggest).showToolbar !== 'onHover') {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst controller = InlineCompletionsController.get(this._editor);\n\t\tif (controller && controller.shouldShowHoverAt(anchor.range)) {\n\t\t\treturn [new InlineCompletionsHover(this, anchor.range, controller)];\n\t\t}\n\t\treturn [];\n\t}\n\n\trenderHoverParts(context: IEditorHoverRenderContext, hoverParts: InlineCompletionsHover[]): IRenderedHoverParts<InlineCompletionsHover> {\n\t\tconst disposables = new DisposableStore();\n\t\tconst part = hoverParts[0];\n\n\t\tthis._telemetryService.publicLog2<{}, {\n\t\t\towner: 'hediet';\n\t\t\tcomment: 'This event tracks whenever an inline completion hover is shown.';\n\t\t}>('inlineCompletionHover.shown');\n\n\t\tif (this.accessibilityService.isScreenReaderOptimized() && !this._editor.getOption(EditorOption.screenReaderAnnounceInlineSuggestion)) {\n\t\t\tdisposables.add(this.renderScreenReaderText(context, part));\n\t\t}\n\n\t\tconst model = part.controller.model.get()!;\n\t\tconst widgetNode: HTMLElement = document.createElement('div');\n\t\tcontext.fragment.appendChild(widgetNode);\n\n\t\tdisposables.add(autorunWithStore((reader, store) => {\n\t\t\tconst w = store.add(this._instantiationService.createInstance(\n\t\t\t\tInlineSuggestionHintsContentWidget.hot.read(reader),\n\t\t\t\tthis._editor,\n\t\t\t\tfalse,\n\t\t\t\tconstObservable(null),\n\t\t\t\tmodel.selectedInlineCompletionIndex,\n\t\t\t\tmodel.inlineCompletionsCount,\n\t\t\t\tmodel.activeCommands,\n\t\t\t\tmodel.warning,\n\t\t\t\t() => {\n\t\t\t\t\tcontext.onContentsChanged();\n\t\t\t\t},\n\t\t\t));\n\t\t\twidgetNode.replaceChildren(w.getDomNode());\n\t\t}));\n\n\t\tmodel.triggerExplicitly();\n\n\t\tconst renderedHoverPart: IRenderedHoverPart<InlineCompletionsHover> = {\n\t\t\thoverPart: part,\n\t\t\thoverElement: widgetNode,\n\t\t\tdispose() { disposables.dispose(); }\n\t\t};\n\t\treturn new RenderedHoverParts([renderedHoverPart]);\n\t}\n\n\tgetAccessibleContent(hoverPart: InlineCompletionsHover): string {\n\t\treturn nls.localize('hoverAccessibilityStatusBar', 'There are inline completions here');\n\t}\n\n\tprivate renderScreenReaderText(context: IEditorHoverRenderContext, part: InlineCompletionsHover): IDisposable {\n\t\tconst disposables = new DisposableStore();\n\t\tconst $ = dom.$;\n\t\tconst markdownHoverElement = $('div.hover-row.markdown-hover');\n\t\tconst hoverContentsElement = dom.append(markdownHoverElement, $('div.hover-contents', { ['aria-live']: 'assertive' }));\n\t\tconst render = (code: string) => {\n\t\t\tconst inlineSuggestionAvailable = nls.localize('inlineSuggestionFollows', \"Suggestion:\");\n\t\t\tconst renderedContents = disposables.add(this._markdownRendererService.render(new MarkdownString().appendText(inlineSuggestionAvailable).appendCodeblock('text', code), {\n\t\t\t\tcontext: this._editor,\n\t\t\t\tasyncRenderCallback: () => {\n\t\t\t\t\thoverContentsElement.className = 'hover-contents code-hover-contents';\n\t\t\t\t\tcontext.onContentsChanged();\n\t\t\t\t}\n\t\t\t}));\n\t\t\thoverContentsElement.replaceChildren(renderedContents.element);\n\t\t};\n\n\t\tdisposables.add(autorun(reader => {\n\t\t\t/** @description update hover */\n\t\t\tconst ghostText = part.controller.model.read(reader)?.primaryGhostText.read(reader);\n\t\t\tif (ghostText) {\n\t\t\t\tconst lineText = this._editor.getModel()!.getLineContent(ghostText.lineNumber);\n\t\t\t\trender(ghostText.renderForScreenReader(lineText));\n\t\t\t} else {\n\t\t\t\tdom.reset(hoverContentsElement);\n\t\t\t}\n\t\t}));\n\n\t\tcontext.fragment.appendChild(markdownHoverElement);\n\t\treturn disposables;\n\t}\n}\n"]}
@@ -97,8 +97,8 @@ InlineCompletionsHintsWidget = __decorate([
97
97
  __param(2, IInstantiationService)
98
98
  ], InlineCompletionsHintsWidget);
99
99
  export { InlineCompletionsHintsWidget };
100
- const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, localize(1203, 'Icon for show next parameter hint.'));
101
- const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, localize(1204, 'Icon for show previous parameter hint.'));
100
+ const inlineSuggestionHintsNextIcon = registerIcon('inline-suggestion-hints-next', Codicon.chevronRight, localize(1206, 'Icon for show next parameter hint.'));
101
+ const inlineSuggestionHintsPreviousIcon = registerIcon('inline-suggestion-hints-previous', Codicon.chevronLeft, localize(1207, 'Icon for show previous parameter hint.'));
102
102
  let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidget extends Disposable {
103
103
  static { InlineSuggestionHintsContentWidget_1 = this; }
104
104
  static { this.hot = createHotClass(this); }
@@ -110,7 +110,7 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
110
110
  const kb = this.keybindingService.lookupKeybinding(commandId, this._contextKeyService);
111
111
  let tooltip = label;
112
112
  if (kb) {
113
- tooltip = localize(1205, '{0} ({1})', label, kb.getLabel());
113
+ tooltip = localize(1208, '{0} ({1})', label, kb.getLabel());
114
114
  }
115
115
  action.tooltip = tooltip;
116
116
  return action;
@@ -158,9 +158,9 @@ let InlineSuggestionHintsContentWidget = class InlineSuggestionHintsContentWidge
158
158
  this._warningMessageNode.element,
159
159
  h('div@toolBar'),
160
160
  ]);
161
- this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, localize(1206, 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon)));
161
+ this.previousAction = this._register(this.createCommandAction(showPreviousInlineSuggestionActionId, localize(1209, 'Previous'), ThemeIcon.asClassName(inlineSuggestionHintsPreviousIcon)));
162
162
  this.availableSuggestionCountAction = this._register(new Action('inlineSuggestionHints.availableSuggestionCount', '', undefined, false));
163
- this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, localize(1207, 'Next'), ThemeIcon.asClassName(inlineSuggestionHintsNextIcon)));
163
+ this.nextAction = this._register(this.createCommandAction(showNextInlineSuggestionActionId, localize(1210, 'Next'), ThemeIcon.asClassName(inlineSuggestionHintsNextIcon)));
164
164
  this.inlineCompletionsActionsMenus = this._register(this._menuService.createMenu(MenuId.InlineCompletionsActions, this._contextKeyService));
165
165
  this.clearAvailableSuggestionCountLabelDebounced = this._register(new RunOnceScheduler(() => {
166
166
  this.availableSuggestionCountAction.label = '';
@@ -62,13 +62,13 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
62
62
  const title = header(this._model.displayName);
63
63
  const gotoAndAccept = option(createOptionArgs({
64
64
  id: 'gotoAndAccept',
65
- title: `${localize(1208, "Go To")} / ${localize(1209, "Accept")}`,
65
+ title: `${localize(1211, "Go To")} / ${localize(1212, "Accept")}`,
66
66
  icon: Codicon.check,
67
67
  commandId: inlineSuggestCommitId
68
68
  }));
69
69
  const reject = option(createOptionArgs({
70
70
  id: 'reject',
71
- title: localize(1210, "Reject"),
71
+ title: localize(1213, "Reject"),
72
72
  icon: Codicon.close,
73
73
  commandId: hideInlineCompletionId
74
74
  }));
@@ -82,25 +82,25 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
82
82
  const toggleCollapsedMode = this._inlineEditsShowCollapsed.map(showCollapsed => showCollapsed ?
83
83
  option(createOptionArgs({
84
84
  id: 'showExpanded',
85
- title: localize(1211, "Show Expanded"),
85
+ title: localize(1214, "Show Expanded"),
86
86
  icon: Codicon.expandAll,
87
87
  commandId: toggleShowCollapsedId
88
88
  }))
89
89
  : option(createOptionArgs({
90
90
  id: 'showCollapsed',
91
- title: localize(1212, "Show Collapsed"),
91
+ title: localize(1215, "Show Collapsed"),
92
92
  icon: Codicon.collapseAll,
93
93
  commandId: toggleShowCollapsedId
94
94
  })));
95
95
  const snooze = option(createOptionArgs({
96
96
  id: 'snooze',
97
- title: localize(1213, "Snooze"),
97
+ title: localize(1216, "Snooze"),
98
98
  icon: Codicon.bellSlash,
99
99
  commandId: 'editor.action.inlineSuggest.snooze'
100
100
  }));
101
101
  const settings = option(createOptionArgs({
102
102
  id: 'settings',
103
- title: localize(1214, "Settings"),
103
+ title: localize(1217, "Settings"),
104
104
  icon: Codicon.gear,
105
105
  commandId: 'workbench.action.openSettings',
106
106
  commandArgs: ['@tag:nextEditSuggestions']
@@ -15,7 +15,7 @@ export class InlineEditModel {
15
15
  this.inlineEdit = inlineEdit;
16
16
  this.tabAction = tabAction;
17
17
  this.action = this.inlineEdit.inlineCompletion.action;
18
- this.displayName = this.inlineEdit.inlineCompletion.source.provider.displayName ?? localize(1215, "Inline Edit");
18
+ this.displayName = this.inlineEdit.inlineCompletion.source.provider.displayName ?? localize(1218, "Inline Edit");
19
19
  this.extensionCommands = this.inlineEdit.inlineCompletion.source.inlineSuggestions.commands ?? [];
20
20
  this.isInDiffEditor = this._model.isInDiffEditor;
21
21
  this.displayLocation = this.inlineEdit.inlineCompletion.hint;
@@ -8,63 +8,63 @@ import { localize } from '../../../../../../nls.js';
8
8
  import { buttonBackground, buttonForeground, buttonSecondaryBackground, buttonSecondaryForeground, diffInserted, diffInsertedLine, diffRemoved, editorBackground } from '../../../../../../platform/theme/common/colorRegistry.js';
9
9
  import { darken, registerColor, transparent } from '../../../../../../platform/theme/common/colorUtils.js';
10
10
  import { InlineEditTabAction } from './inlineEditsViewInterface.js';
11
- export const originalBackgroundColor = registerColor('inlineEdit.originalBackground', transparent(diffRemoved, 0.2), localize(1216, 'Background color for the original text in inline edits.'), true);
12
- export const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(1217, 'Background color for the modified text in inline edits.'), true);
13
- export const originalChangedLineBackgroundColor = registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(1218, 'Background color for the changed lines in the original text of inline edits.'), true);
14
- export const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', transparent(diffRemoved, 0.8), localize(1219, 'Overlay color for the changed text in the original text of inline edits.'), true);
11
+ export const originalBackgroundColor = registerColor('inlineEdit.originalBackground', transparent(diffRemoved, 0.2), localize(1219, 'Background color for the original text in inline edits.'), true);
12
+ export const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(1220, 'Background color for the modified text in inline edits.'), true);
13
+ export const originalChangedLineBackgroundColor = registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(1221, 'Background color for the changed lines in the original text of inline edits.'), true);
14
+ export const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', transparent(diffRemoved, 0.8), localize(1222, 'Overlay color for the changed text in the original text of inline edits.'), true);
15
15
  export const modifiedChangedLineBackgroundColor = registerColor('inlineEdit.modifiedChangedLineBackground', {
16
16
  light: transparent(diffInsertedLine, 0.7),
17
17
  dark: transparent(diffInsertedLine, 0.7),
18
18
  hcDark: diffInsertedLine,
19
19
  hcLight: diffInsertedLine
20
- }, localize(1220, 'Background color for the changed lines in the modified text of inline edits.'), true);
21
- export const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', transparent(diffInserted, 0.7), localize(1221, 'Overlay color for the changed text in the modified text of inline edits.'), true);
20
+ }, localize(1223, 'Background color for the changed lines in the modified text of inline edits.'), true);
21
+ export const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', transparent(diffInserted, 0.7), localize(1224, 'Overlay color for the changed text in the modified text of inline edits.'), true);
22
22
  // ------- GUTTER INDICATOR -------
23
- export const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(1222, 'Foreground color for the primary inline edit gutter indicator.'));
24
- export const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(1223, 'Border color for the primary inline edit gutter indicator.'));
23
+ export const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(1225, 'Foreground color for the primary inline edit gutter indicator.'));
24
+ export const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(1226, 'Border color for the primary inline edit gutter indicator.'));
25
25
  export const inlineEditIndicatorPrimaryBackground = registerColor('inlineEdit.gutterIndicator.primaryBackground', {
26
26
  light: transparent(inlineEditIndicatorPrimaryBorder, 0.5),
27
27
  dark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),
28
28
  hcDark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),
29
29
  hcLight: transparent(inlineEditIndicatorPrimaryBorder, 0.5),
30
- }, localize(1224, 'Background color for the primary inline edit gutter indicator.'));
31
- export const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(1225, 'Foreground color for the secondary inline edit gutter indicator.'));
32
- export const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(1226, 'Border color for the secondary inline edit gutter indicator.'));
33
- export const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(1227, 'Background color for the secondary inline edit gutter indicator.'));
34
- export const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(1228, 'Foreground color for the successful inline edit gutter indicator.'));
35
- export const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(1229, 'Border color for the successful inline edit gutter indicator.'));
36
- export const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, localize(1230, 'Background color for the successful inline edit gutter indicator.'));
30
+ }, localize(1227, 'Background color for the primary inline edit gutter indicator.'));
31
+ export const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(1228, 'Foreground color for the secondary inline edit gutter indicator.'));
32
+ export const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(1229, 'Border color for the secondary inline edit gutter indicator.'));
33
+ export const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(1230, 'Background color for the secondary inline edit gutter indicator.'));
34
+ export const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(1231, 'Foreground color for the successful inline edit gutter indicator.'));
35
+ export const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(1232, 'Border color for the successful inline edit gutter indicator.'));
36
+ export const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, localize(1233, 'Background color for the successful inline edit gutter indicator.'));
37
37
  export const inlineEditIndicatorBackground = registerColor('inlineEdit.gutterIndicator.background', {
38
38
  hcDark: transparent('tab.inactiveBackground', 0.5),
39
39
  hcLight: transparent('tab.inactiveBackground', 0.5),
40
40
  dark: transparent('tab.inactiveBackground', 0.5),
41
41
  light: '#5f5f5f18',
42
- }, localize(1231, 'Background color for the inline edit gutter indicator.'));
42
+ }, localize(1234, 'Background color for the inline edit gutter indicator.'));
43
43
  // ------- BORDER COLORS -------
44
44
  const originalBorder = registerColor('inlineEdit.originalBorder', {
45
45
  light: diffRemoved,
46
46
  dark: diffRemoved,
47
47
  hcDark: diffRemoved,
48
48
  hcLight: diffRemoved
49
- }, localize(1232, 'Border color for the original text in inline edits.'));
49
+ }, localize(1235, 'Border color for the original text in inline edits.'));
50
50
  const modifiedBorder = registerColor('inlineEdit.modifiedBorder', {
51
51
  light: darken(diffInserted, 0.6),
52
52
  dark: diffInserted,
53
53
  hcDark: diffInserted,
54
54
  hcLight: diffInserted
55
- }, localize(1233, 'Border color for the modified text in inline edits.'));
55
+ }, localize(1236, 'Border color for the modified text in inline edits.'));
56
56
  const tabWillAcceptModifiedBorder = registerColor('inlineEdit.tabWillAcceptModifiedBorder', {
57
57
  light: darken(modifiedBorder, 0),
58
58
  dark: darken(modifiedBorder, 0),
59
59
  hcDark: darken(modifiedBorder, 0),
60
60
  hcLight: darken(modifiedBorder, 0)
61
- }, localize(1234, 'Modified border color for the inline edits widget when tab will accept it.'));
61
+ }, localize(1237, 'Modified border color for the inline edits widget when tab will accept it.'));
62
62
  const tabWillAcceptOriginalBorder = registerColor('inlineEdit.tabWillAcceptOriginalBorder', {
63
63
  light: darken(originalBorder, 0),
64
64
  dark: darken(originalBorder, 0),
65
65
  hcDark: darken(originalBorder, 0),
66
66
  hcLight: darken(originalBorder, 0)
67
- }, localize(1235, 'Original border color for the inline edits widget over the original text when tab will accept it.'));
67
+ }, localize(1238, 'Original border color for the inline edits widget over the original text when tab will accept it.'));
68
68
  export function getModifiedBorderColor(tabAction) {
69
69
  return tabAction.map(a => a === InlineEditTabAction.Accept ? tabWillAcceptModifiedBorder : modifiedBorder);
70
70
  }
@@ -11,7 +11,7 @@ export class InsertFinalNewLineAction extends EditorAction {
11
11
  constructor() {
12
12
  super({
13
13
  id: InsertFinalNewLineAction.ID,
14
- label: nls.localize2(1238, "Insert Final New Line"),
14
+ label: nls.localize2(1241, "Insert Final New Line"),
15
15
  precondition: EditorContextKeys.writable
16
16
  });
17
17
  }
@@ -10,7 +10,7 @@ export class ExpandLineSelectionAction extends EditorAction {
10
10
  constructor() {
11
11
  super({
12
12
  id: 'expandLineSelection',
13
- label: nls.localize2(1239, "Expand Line Selection"),
13
+ label: nls.localize2(1242, "Expand Line Selection"),
14
14
  precondition: undefined,
15
15
  kbOpts: {
16
16
  weight: 0 /* KeybindingWeight.EditorCore */,
@@ -63,7 +63,7 @@ class CopyLinesUpAction extends AbstractCopyLinesAction {
63
63
  constructor() {
64
64
  super(false, {
65
65
  id: 'editor.action.copyLinesUpAction',
66
- label: nls.localize2(1245, "Copy Line Up"),
66
+ label: nls.localize2(1248, "Copy Line Up"),
67
67
  precondition: EditorContextKeys.writable,
68
68
  kbOpts: {
69
69
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -74,7 +74,7 @@ class CopyLinesUpAction extends AbstractCopyLinesAction {
74
74
  menuOpts: {
75
75
  menuId: MenuId.MenubarSelectionMenu,
76
76
  group: '2_line',
77
- title: nls.localize(1240, "&&Copy Line Up"),
77
+ title: nls.localize(1243, "&&Copy Line Up"),
78
78
  order: 1
79
79
  },
80
80
  canTriggerInlineEdits: true,
@@ -85,7 +85,7 @@ class CopyLinesDownAction extends AbstractCopyLinesAction {
85
85
  constructor() {
86
86
  super(true, {
87
87
  id: 'editor.action.copyLinesDownAction',
88
- label: nls.localize2(1246, "Copy Line Down"),
88
+ label: nls.localize2(1249, "Copy Line Down"),
89
89
  precondition: EditorContextKeys.writable,
90
90
  kbOpts: {
91
91
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -96,7 +96,7 @@ class CopyLinesDownAction extends AbstractCopyLinesAction {
96
96
  menuOpts: {
97
97
  menuId: MenuId.MenubarSelectionMenu,
98
98
  group: '2_line',
99
- title: nls.localize(1241, "Co&&py Line Down"),
99
+ title: nls.localize(1244, "Co&&py Line Down"),
100
100
  order: 2
101
101
  },
102
102
  canTriggerInlineEdits: true,
@@ -107,12 +107,12 @@ export class DuplicateSelectionAction extends EditorAction {
107
107
  constructor() {
108
108
  super({
109
109
  id: 'editor.action.duplicateSelection',
110
- label: nls.localize2(1247, "Duplicate Selection"),
110
+ label: nls.localize2(1250, "Duplicate Selection"),
111
111
  precondition: EditorContextKeys.writable,
112
112
  menuOpts: {
113
113
  menuId: MenuId.MenubarSelectionMenu,
114
114
  group: '2_line',
115
- title: nls.localize(1242, "&&Duplicate Selection"),
115
+ title: nls.localize(1245, "&&Duplicate Selection"),
116
116
  order: 5
117
117
  },
118
118
  canTriggerInlineEdits: true,
@@ -162,7 +162,7 @@ class MoveLinesUpAction extends AbstractMoveLinesAction {
162
162
  constructor() {
163
163
  super(false, {
164
164
  id: 'editor.action.moveLinesUpAction',
165
- label: nls.localize2(1248, "Move Line Up"),
165
+ label: nls.localize2(1251, "Move Line Up"),
166
166
  precondition: EditorContextKeys.writable,
167
167
  kbOpts: {
168
168
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -173,7 +173,7 @@ class MoveLinesUpAction extends AbstractMoveLinesAction {
173
173
  menuOpts: {
174
174
  menuId: MenuId.MenubarSelectionMenu,
175
175
  group: '2_line',
176
- title: nls.localize(1243, "Mo&&ve Line Up"),
176
+ title: nls.localize(1246, "Mo&&ve Line Up"),
177
177
  order: 3
178
178
  },
179
179
  canTriggerInlineEdits: true,
@@ -184,7 +184,7 @@ class MoveLinesDownAction extends AbstractMoveLinesAction {
184
184
  constructor() {
185
185
  super(true, {
186
186
  id: 'editor.action.moveLinesDownAction',
187
- label: nls.localize2(1249, "Move Line Down"),
187
+ label: nls.localize2(1252, "Move Line Down"),
188
188
  precondition: EditorContextKeys.writable,
189
189
  kbOpts: {
190
190
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -195,7 +195,7 @@ class MoveLinesDownAction extends AbstractMoveLinesAction {
195
195
  menuOpts: {
196
196
  menuId: MenuId.MenubarSelectionMenu,
197
197
  group: '2_line',
198
- title: nls.localize(1244, "Move &&Line Down"),
198
+ title: nls.localize(1247, "Move &&Line Down"),
199
199
  order: 4
200
200
  },
201
201
  canTriggerInlineEdits: true,
@@ -235,7 +235,7 @@ export class SortLinesAscendingAction extends AbstractSortLinesAction {
235
235
  constructor() {
236
236
  super(false, {
237
237
  id: 'editor.action.sortLinesAscending',
238
- label: nls.localize2(1250, "Sort Lines Ascending"),
238
+ label: nls.localize2(1253, "Sort Lines Ascending"),
239
239
  precondition: EditorContextKeys.writable,
240
240
  canTriggerInlineEdits: true,
241
241
  });
@@ -245,7 +245,7 @@ export class SortLinesDescendingAction extends AbstractSortLinesAction {
245
245
  constructor() {
246
246
  super(true, {
247
247
  id: 'editor.action.sortLinesDescending',
248
- label: nls.localize2(1251, "Sort Lines Descending"),
248
+ label: nls.localize2(1254, "Sort Lines Descending"),
249
249
  precondition: EditorContextKeys.writable,
250
250
  canTriggerInlineEdits: true,
251
251
  });
@@ -255,7 +255,7 @@ export class DeleteDuplicateLinesAction extends EditorAction {
255
255
  constructor() {
256
256
  super({
257
257
  id: 'editor.action.removeDuplicateLines',
258
- label: nls.localize2(1252, "Delete Duplicate Lines"),
258
+ label: nls.localize2(1255, "Delete Duplicate Lines"),
259
259
  precondition: EditorContextKeys.writable,
260
260
  canTriggerInlineEdits: true,
261
261
  });
@@ -305,7 +305,7 @@ export class ReverseLinesAction extends EditorAction {
305
305
  constructor() {
306
306
  super({
307
307
  id: 'editor.action.reverseLines',
308
- label: nls.localize2(1253, "Reverse lines"),
308
+ label: nls.localize2(1256, "Reverse lines"),
309
309
  precondition: EditorContextKeys.writable,
310
310
  canTriggerInlineEdits: true
311
311
  });
@@ -372,7 +372,7 @@ export class TrimTrailingWhitespaceAction extends EditorAction {
372
372
  constructor() {
373
373
  super({
374
374
  id: TrimTrailingWhitespaceAction.ID,
375
- label: nls.localize2(1254, "Trim Trailing Whitespace"),
375
+ label: nls.localize2(1257, "Trim Trailing Whitespace"),
376
376
  precondition: EditorContextKeys.writable,
377
377
  kbOpts: {
378
378
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -406,7 +406,7 @@ export class DeleteLinesAction extends EditorAction {
406
406
  constructor() {
407
407
  super({
408
408
  id: 'editor.action.deleteLines',
409
- label: nls.localize2(1255, "Delete Line"),
409
+ label: nls.localize2(1258, "Delete Line"),
410
410
  precondition: EditorContextKeys.writable,
411
411
  kbOpts: {
412
412
  kbExpr: EditorContextKeys.textInputFocus,
@@ -495,7 +495,7 @@ export class IndentLinesAction extends EditorAction {
495
495
  constructor() {
496
496
  super({
497
497
  id: 'editor.action.indentLines',
498
- label: nls.localize2(1256, "Indent Line"),
498
+ label: nls.localize2(1259, "Indent Line"),
499
499
  precondition: EditorContextKeys.writable,
500
500
  kbOpts: {
501
501
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -519,7 +519,7 @@ class OutdentLinesAction extends EditorAction {
519
519
  constructor() {
520
520
  super({
521
521
  id: 'editor.action.outdentLines',
522
- label: nls.localize2(1257, "Outdent Line"),
522
+ label: nls.localize2(1260, "Outdent Line"),
523
523
  precondition: EditorContextKeys.writable,
524
524
  kbOpts: {
525
525
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -538,7 +538,7 @@ export class InsertLineBeforeAction extends EditorAction {
538
538
  constructor() {
539
539
  super({
540
540
  id: InsertLineBeforeAction.ID,
541
- label: nls.localize2(1258, "Insert Line Above"),
541
+ label: nls.localize2(1261, "Insert Line Above"),
542
542
  precondition: EditorContextKeys.writable,
543
543
  kbOpts: {
544
544
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -562,7 +562,7 @@ export class InsertLineAfterAction extends EditorAction {
562
562
  constructor() {
563
563
  super({
564
564
  id: InsertLineAfterAction.ID,
565
- label: nls.localize2(1259, "Insert Line Below"),
565
+ label: nls.localize2(1262, "Insert Line Below"),
566
566
  precondition: EditorContextKeys.writable,
567
567
  kbOpts: {
568
568
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -614,7 +614,7 @@ export class DeleteAllLeftAction extends AbstractDeleteAllToBoundaryAction {
614
614
  constructor() {
615
615
  super({
616
616
  id: 'deleteAllLeft',
617
- label: nls.localize2(1260, "Delete All Left"),
617
+ label: nls.localize2(1263, "Delete All Left"),
618
618
  precondition: EditorContextKeys.writable,
619
619
  kbOpts: {
620
620
  kbExpr: EditorContextKeys.textInputFocus,
@@ -684,7 +684,7 @@ export class DeleteAllRightAction extends AbstractDeleteAllToBoundaryAction {
684
684
  constructor() {
685
685
  super({
686
686
  id: 'deleteAllRight',
687
- label: nls.localize2(1261, "Delete All Right"),
687
+ label: nls.localize2(1264, "Delete All Right"),
688
688
  precondition: EditorContextKeys.writable,
689
689
  kbOpts: {
690
690
  kbExpr: EditorContextKeys.textInputFocus,
@@ -742,7 +742,7 @@ export class JoinLinesAction extends EditorAction {
742
742
  constructor() {
743
743
  super({
744
744
  id: 'editor.action.joinLines',
745
- label: nls.localize2(1262, "Join Lines"),
745
+ label: nls.localize2(1265, "Join Lines"),
746
746
  precondition: EditorContextKeys.writable,
747
747
  kbOpts: {
748
748
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -884,7 +884,7 @@ export class TransposeAction extends EditorAction {
884
884
  constructor() {
885
885
  super({
886
886
  id: 'editor.action.transpose',
887
- label: nls.localize2(1263, "Transpose Characters around the Cursor"),
887
+ label: nls.localize2(1266, "Transpose Characters around the Cursor"),
888
888
  precondition: EditorContextKeys.writable,
889
889
  canTriggerInlineEdits: true,
890
890
  });
@@ -964,7 +964,7 @@ export class UpperCaseAction extends AbstractCaseAction {
964
964
  constructor() {
965
965
  super({
966
966
  id: 'editor.action.transformToUppercase',
967
- label: nls.localize2(1264, "Transform to Uppercase"),
967
+ label: nls.localize2(1267, "Transform to Uppercase"),
968
968
  precondition: EditorContextKeys.writable,
969
969
  canTriggerInlineEdits: true,
970
970
  });
@@ -977,7 +977,7 @@ export class LowerCaseAction extends AbstractCaseAction {
977
977
  constructor() {
978
978
  super({
979
979
  id: 'editor.action.transformToLowercase',
980
- label: nls.localize2(1265, "Transform to Lowercase"),
980
+ label: nls.localize2(1268, "Transform to Lowercase"),
981
981
  precondition: EditorContextKeys.writable,
982
982
  canTriggerInlineEdits: true
983
983
  });
@@ -1014,7 +1014,7 @@ export class TitleCaseAction extends AbstractCaseAction {
1014
1014
  constructor() {
1015
1015
  super({
1016
1016
  id: 'editor.action.transformToTitlecase',
1017
- label: nls.localize2(1266, "Transform to Title Case"),
1017
+ label: nls.localize2(1269, "Transform to Title Case"),
1018
1018
  precondition: EditorContextKeys.writable,
1019
1019
  canTriggerInlineEdits: true
1020
1020
  });
@@ -1036,7 +1036,7 @@ export class SnakeCaseAction extends AbstractCaseAction {
1036
1036
  constructor() {
1037
1037
  super({
1038
1038
  id: 'editor.action.transformToSnakecase',
1039
- label: nls.localize2(1267, "Transform to Snake Case"),
1039
+ label: nls.localize2(1270, "Transform to Snake Case"),
1040
1040
  precondition: EditorContextKeys.writable,
1041
1041
  canTriggerInlineEdits: true,
1042
1042
  });
@@ -1061,7 +1061,7 @@ export class CamelCaseAction extends AbstractCaseAction {
1061
1061
  constructor() {
1062
1062
  super({
1063
1063
  id: 'editor.action.transformToCamelcase',
1064
- label: nls.localize2(1268, "Transform to Camel Case"),
1064
+ label: nls.localize2(1271, "Transform to Camel Case"),
1065
1065
  precondition: EditorContextKeys.writable,
1066
1066
  canTriggerInlineEdits: true
1067
1067
  });
@@ -1086,7 +1086,7 @@ export class PascalCaseAction extends AbstractCaseAction {
1086
1086
  constructor() {
1087
1087
  super({
1088
1088
  id: 'editor.action.transformToPascalcase',
1089
- label: nls.localize2(1269, "Transform to Pascal Case"),
1089
+ label: nls.localize2(1272, "Transform to Pascal Case"),
1090
1090
  precondition: EditorContextKeys.writable,
1091
1091
  canTriggerInlineEdits: true,
1092
1092
  });
@@ -1126,7 +1126,7 @@ export class KebabCaseAction extends AbstractCaseAction {
1126
1126
  constructor() {
1127
1127
  super({
1128
1128
  id: 'editor.action.transformToKebabcase',
1129
- label: nls.localize2(1270, 'Transform to Kebab Case'),
1129
+ label: nls.localize2(1273, 'Transform to Kebab Case'),
1130
1130
  precondition: EditorContextKeys.writable,
1131
1131
  canTriggerInlineEdits: true,
1132
1132
  });
@@ -299,7 +299,7 @@ export class LinkedEditingAction extends EditorAction {
299
299
  constructor() {
300
300
  super({
301
301
  id: 'editor.action.linkedEditing',
302
- label: nls.localize2(1272, "Start Linked Editing"),
302
+ label: nls.localize2(1275, "Start Linked Editing"),
303
303
  precondition: ContextKeyExpr.and(EditorContextKeys.writable, EditorContextKeys.hasRenameProvider),
304
304
  kbOpts: {
305
305
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -360,7 +360,7 @@ function getLinkedEditingRanges(providers, model, position, token) {
360
360
  }
361
361
  }), result => !!result && arrays.isNonEmptyArray(result?.ranges));
362
362
  }
363
- export const editorLinkedEditingBackground = 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 }, nls.localize(1271, 'Background color when the editor auto renames on type.'));
363
+ export const editorLinkedEditingBackground = 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 }, nls.localize(1274, 'Background color when the editor auto renames on type.'));
364
364
  registerModelAndPositionCommand('_executeLinkedEditingProvider', (_accessor, model, position) => {
365
365
  const { linkedEditingRangeProvider } = _accessor.get(ILanguageFeaturesService);
366
366
  return getLinkedEditingRanges(linkedEditingRangeProvider, model, position, CancellationToken.None);
@@ -220,10 +220,10 @@ let LinkDetector = class LinkDetector extends Disposable {
220
220
  const messageOrError = err instanceof Error ? err.message : err;
221
221
  // different error cases
222
222
  if (messageOrError === 'invalid') {
223
- this.notificationService.warn(nls.localize(1273, 'Failed to open this link because it is not well-formed: {0}', link.url.toString()));
223
+ this.notificationService.warn(nls.localize(1276, 'Failed to open this link because it is not well-formed: {0}', link.url.toString()));
224
224
  }
225
225
  else if (messageOrError === 'missing') {
226
- this.notificationService.warn(nls.localize(1274, 'Failed to open this link because its target is missing.'));
226
+ this.notificationService.warn(nls.localize(1277, 'Failed to open this link because its target is missing.'));
227
227
  }
228
228
  else {
229
229
  onUnexpectedError(err);
@@ -317,15 +317,15 @@ function getHoverMessage(link, useMetaKey) {
317
317
  const label = link.tooltip
318
318
  ? link.tooltip
319
319
  : executeCmd
320
- ? nls.localize(1275, 'Execute command')
321
- : nls.localize(1276, 'Follow link');
320
+ ? nls.localize(1278, 'Execute command')
321
+ : nls.localize(1279, 'Follow link');
322
322
  const kb = useMetaKey
323
323
  ? platform.isMacintosh
324
- ? nls.localize(1277, "cmd + click")
325
- : nls.localize(1278, "ctrl + click")
324
+ ? nls.localize(1280, "cmd + click")
325
+ : nls.localize(1281, "ctrl + click")
326
326
  : platform.isMacintosh
327
- ? nls.localize(1279, "option + click")
328
- : nls.localize(1280, "alt + click");
327
+ ? nls.localize(1282, "option + click")
328
+ : nls.localize(1283, "alt + click");
329
329
  if (link.url) {
330
330
  let nativeLabel = '';
331
331
  if (/^command:/i.test(link.url.toString())) {
@@ -333,7 +333,7 @@ function getHoverMessage(link, useMetaKey) {
333
333
  const match = link.url.toString().match(/^command:([^?#]+)/);
334
334
  if (match) {
335
335
  const commandId = match[1];
336
- nativeLabel = nls.localize(1281, "Execute command {0}", commandId);
336
+ nativeLabel = nls.localize(1284, "Execute command {0}", commandId);
337
337
  }
338
338
  }
339
339
  const hoverMessage = new MarkdownString('', true)
@@ -349,7 +349,7 @@ class OpenLinkAction extends EditorAction {
349
349
  constructor() {
350
350
  super({
351
351
  id: 'editor.action.openLink',
352
- label: nls.localize2(1282, "Open Link"),
352
+ label: nls.localize2(1285, "Open Link"),
353
353
  precondition: undefined
354
354
  });
355
355
  }
@@ -28,7 +28,7 @@ import * as dom from '../../../../base/browser/dom.js';
28
28
  let MessageController = class MessageController {
29
29
  static { MessageController_1 = this; }
30
30
  static { this.ID = 'editor.contrib.messageController'; }
31
- static { this.MESSAGE_VISIBLE = new RawContextKey('messageVisible', false, nls.localize(1283, 'Whether the editor is currently showing an inline message')); }
31
+ static { this.MESSAGE_VISIBLE = new RawContextKey('messageVisible', false, nls.localize(1286, 'Whether the editor is currently showing an inline message')); }
32
32
  static get(editor) {
33
33
  return editor.getContribution(MessageController_1.ID);
34
34
  }