monaco-editor-core 0.55.0-dev-20251008 → 0.55.0-dev-20251009

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 (124) hide show
  1. package/esm/nls.keys.json +1 -1
  2. package/esm/nls.messages.de.js +2 -2
  3. package/esm/nls.messages.es.js +2 -2
  4. package/esm/nls.messages.fr.js +2 -2
  5. package/esm/nls.messages.it.js +2 -2
  6. package/esm/nls.messages.ja.js +2 -2
  7. package/esm/nls.messages.js +1 -1
  8. package/esm/nls.messages.json +1 -1
  9. package/esm/nls.messages.ko.js +2 -2
  10. package/esm/nls.messages.ru.js +2 -2
  11. package/esm/nls.messages.zh-cn.js +2 -2
  12. package/esm/nls.messages.zh-tw.js +2 -2
  13. package/esm/nls.metadata.json +3 -1
  14. package/esm/vs/base/browser/markdownRenderer.js.map +1 -1
  15. package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  16. package/esm/vs/base/browser/ui/toolbar/toolbar.js +4 -1
  17. package/esm/vs/base/browser/ui/toolbar/toolbar.js.map +1 -1
  18. package/esm/vs/base/common/codiconsLibrary.js +9 -1
  19. package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
  20. package/esm/vs/editor/browser/services/hoverService/hoverWidget.js +5 -8
  21. package/esm/vs/editor/browser/services/hoverService/hoverWidget.js.map +1 -1
  22. package/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +36 -31
  23. package/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js.map +1 -1
  24. package/esm/vs/editor/common/core/text/abstractText.js +5 -1
  25. package/esm/vs/editor/common/core/text/abstractText.js.map +1 -1
  26. package/esm/vs/editor/common/model/tokens/treeSitter/tokenStore.js +2 -1
  27. package/esm/vs/editor/common/model/tokens/treeSitter/tokenStore.js.map +1 -1
  28. package/esm/vs/editor/contrib/find/browser/findController.js +54 -61
  29. package/esm/vs/editor/contrib/find/browser/findController.js.map +1 -1
  30. package/esm/vs/editor/contrib/hover/browser/glyphHoverWidget.js +5 -8
  31. package/esm/vs/editor/contrib/hover/browser/glyphHoverWidget.js.map +1 -1
  32. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +18 -23
  33. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js.map +1 -1
  34. package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  35. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +10 -12
  36. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js.map +1 -1
  37. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +9 -13
  38. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js.map +1 -1
  39. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +8 -1
  40. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js.map +1 -1
  41. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
  42. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
  43. package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  44. package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  45. package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
  46. package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  47. package/esm/vs/editor/contrib/links/browser/links.js +10 -10
  48. package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
  49. package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  50. package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  51. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +10 -12
  52. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js.map +1 -1
  53. package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  54. package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  55. package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
  56. package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  57. package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  58. package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
  59. package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
  60. package/esm/vs/editor/contrib/rename/browser/renameWidget.js.map +1 -1
  61. package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  62. package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  63. package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  64. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  65. package/esm/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  66. package/esm/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  67. package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -24
  68. package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js.map +1 -1
  69. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +15 -18
  70. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js.map +1 -1
  71. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  72. package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  73. package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  74. package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  75. package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  76. package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +7 -6
  77. package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js.map +1 -1
  78. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +29 -32
  79. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js.map +1 -1
  80. package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  81. package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  82. package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  83. package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  84. package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  85. package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
  86. package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
  87. package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  88. package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  89. package/esm/vs/platform/actions/browser/toolbar.js +2 -2
  90. package/esm/vs/platform/actions/common/menuService.js +2 -2
  91. package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
  92. package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  93. package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
  94. package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
  95. package/esm/vs/platform/contextkey/common/scanner.js +5 -5
  96. package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  97. package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  98. package/esm/vs/platform/list/browser/listService.js +27 -27
  99. package/esm/vs/platform/markers/common/markerService.js +2 -2
  100. package/esm/vs/platform/markers/common/markers.js +6 -6
  101. package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +7 -7
  102. package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
  103. package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
  104. package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  105. package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
  106. package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
  107. package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  108. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  109. package/esm/vs/platform/theme/common/colorUtils.js +2 -2
  110. package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
  111. package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
  112. package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
  113. package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
  114. package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
  115. package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
  116. package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
  117. package/esm/vs/platform/theme/common/colors/miscColors.js +15 -15
  118. package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  119. package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
  120. package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
  121. package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  122. package/esm/vs/platform/workspace/common/workspace.js +1 -1
  123. package/package.json +2 -2
  124. package/version.txt +1 -1
@@ -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;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CA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BAAiB,EAAE,CAAC;gBAC7B,CAAC;aACD,CAAC,CAAC,CAAC;YACJ,oBAAoB,CAAC,eAAe,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAChE,CAAC,CAAC;QAEF,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YAChC,gCAAgC;YAChC,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACpF,IAAI,SAAS,EAAE,CAAC;gBACf,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAG,CAAC,cAAc,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;gBAC/E,MAAM,CAAC,SAAS,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC,CAAC;YACnD,CAAC;iBAAM,CAAC;gBACP,GAAG,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;YACjC,CAAC;QACF,CAAC,CAAC,CAAC,CAAC;QAEJ,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QACnD,OAAO,WAAW,CAAC;IACpB,CAAC;CACD,CAAA;AAzIY,iCAAiC;IAM3C,WAAA,gBAAgB,CAAA;IAChB,WAAA,cAAc,CAAA;IACd,WAAA,qBAAqB,CAAA;IACrB,WAAA,qBAAqB,CAAA;IACrB,WAAA,iBAAiB,CAAA;GAVP,iCAAiC,CAyI7C","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 { ILanguageService } from '../../../../common/languages/language.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 { MarkdownRenderer } from '../../../../browser/widget/markdownRenderer/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 { IOpenerService } from '../../../../../platform/opener/common/opener.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@ILanguageService private readonly _languageService: ILanguageService,\n\t\t@IOpenerService private readonly _openerService: IOpenerService,\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) {\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 renderer = new MarkdownRenderer({ editor: this._editor }, this._languageService, this._openerService);\n\t\tconst render = (code: string) => {\n\t\t\tconst inlineSuggestionAvailable = nls.localize('inlineSuggestionFollows', \"Suggestion:\");\n\t\t\tconst renderedContents = disposables.add(renderer.render(new MarkdownString().appendText(inlineSuggestionAvailable).appendCodeblock('text', code), {\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/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E;gBACvK,MAAM,EAAE,IAAI,CAAC,OAAO;gBACpB,mBAAmB,EAAE,GAAG,EAAE;oBACzB,oBAAoB,CAAC,SAAS,GAAG,oCAAoC,CAAC;oBACtE,OAAO,CAAC,iBAAiB,EAAE,CAAC;gBAC7B,CAAC;aACD,CAAC,CAAC,CAAC;YACJ,oBAAoB,CAAC,eAAe,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAChE,CAAC,CAAC;QAEF,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YAChC,gCAAgC;YAChC,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACpF,IAAI,SAAS,EAAE,CAAC;gBACf,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAG,CAAC,cAAc,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;gBAC/E,MAAM,CAAC,SAAS,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC,CAAC;YACnD,CAAC;iBAAM,CAAC;gBACP,GAAG,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;YACjC,CAAC;QACF,CAAC,CAAC,CAAC,CAAC;QAEJ,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QACnD,OAAO,WAAW,CAAC;IACpB,CAAC;CACD,CAAA;AAxIY,iCAAiC;IAM3C,WAAA,qBAAqB,CAAA;IACrB,WAAA,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 '../../../../browser/widget/markdownRenderer/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\teditor: 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"]}
@@ -92,9 +92,15 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
92
92
  icon: Codicon.collapseAll,
93
93
  commandId: toggleShowCollapsedId
94
94
  })));
95
+ const snooze = option(createOptionArgs({
96
+ id: 'snooze',
97
+ title: localize(1208, "Snooze"),
98
+ icon: Codicon.bellSlash,
99
+ commandId: 'editor.action.inlineSuggest.snooze'
100
+ }));
95
101
  const settings = option(createOptionArgs({
96
102
  id: 'settings',
97
- title: localize(1208, "Settings"),
103
+ title: localize(1209, "Settings"),
98
104
  icon: Codicon.gear,
99
105
  commandId: 'workbench.action.openSettings',
100
106
  commandArgs: ['@tag:nextEditSuggestions']
@@ -114,6 +120,7 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
114
120
  reject,
115
121
  toggleCollapsedMode,
116
122
  extensionCommands.length ? separator() : undefined,
123
+ snooze,
117
124
  settings,
118
125
  ...extensionCommands,
119
126
  actionBarFooter ? separator() : undefined,
@@ -1 +1 @@
1
- {"version":3,"sources":["vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;;gGAGgG;;;;;;;;;;AAEhG,OAAO,EAA0B,CAAC,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,SAAS,EAAqB,MAAM,6DAA6D,CAAC;AAC3G,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,yEAAyE,CAAC;AAE1G,OAAO,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAC;AAEvE,OAAO,EAAe,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACtJ,OAAO,EAAE,EAAE,EAAE,MAAM,8CAA8C,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EA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AAED,SAAS,SAAS;IACjB,OAAO,CAAC,CAAC,GAAG,CAAC;QACZ,EAAE,EAAE,6CAA6C;QACjD,KAAK,EAAE,gBAAgB;QACvB,KAAK,EAAE;YACN,KAAK,EAAE,aAAa,CAAC,0BAA0B,CAAC;YAChD,OAAO,EAAE,OAAO;SAChB;KACD,EAAE,CAAC,CAAC,GAAG,CAAC;QACR,KAAK,EAAE;YACN,YAAY,EAAE,aAAa,aAAa,CAAC,iBAAiB,CAAC,EAAE;SAC7D;KACD,CAAC,CAAC,CAAC;AACL,CAAC","file":"gutterIndicatorMenu.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/*---------------------------------------------------------------------------------------------\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 { ChildNode, LiveElement, n } from '../../../../../../../base/browser/dom.js';\nimport { ActionBar, IActionBarOptions } from '../../../../../../../base/browser/ui/actionbar/actionbar.js';\nimport { renderIcon } from '../../../../../../../base/browser/ui/iconLabel/iconLabels.js';\nimport { KeybindingLabel } from '../../../../../../../base/browser/ui/keybindingLabel/keybindingLabel.js';\nimport { IAction } from '../../../../../../../base/common/actions.js';\nimport { Codicon } from '../../../../../../../base/common/codicons.js';\nimport { ResolvedKeybinding } from '../../../../../../../base/common/keybindings.js';\nimport { IObservable, autorun, constObservable, derived, observableFromEvent, observableValue } from '../../../../../../../base/common/observable.js';\nimport { OS } from '../../../../../../../base/common/platform.js';\nimport { ThemeIcon } from '../../../../../../../base/common/themables.js';\nimport { localize } from '../../../../../../../nls.js';\nimport { ICommandService } from '../../../../../../../platform/commands/common/commands.js';\nimport { IContextKeyService } from '../../../../../../../platform/contextkey/common/contextkey.js';\nimport { nativeHoverDelegate } from '../../../../../../../platform/hover/browser/hover.js';\nimport { IKeybindingService } from '../../../../../../../platform/keybinding/common/keybinding.js';\nimport { defaultKeybindingLabelStyles } from '../../../../../../../platform/theme/browser/defaultStyles.js';\nimport { asCssVariable, descriptionForeground, editorActionListForeground, editorHoverBorder } from '../../../../../../../platform/theme/common/colorRegistry.js';\nimport { ObservableCodeEditor } from '../../../../../../browser/observableCodeEditor.js';\nimport { EditorOption } from '../../../../../../common/config/editorOptions.js';\nimport { hideInlineCompletionId, inlineSuggestCommitId, toggleShowCollapsedId } from '../../../controller/commandIds.js';\nimport { IInlineEditModel } from '../inlineEditsViewInterface.js';\nimport { FirstFnArg } from '../utils/utils.js';\n\nexport class GutterIndicatorMenuContent {\n\n\tprivate readonly _inlineEditsShowCollapsed: IObservable<boolean>;\n\n\tconstructor(\n\t\tprivate readonly _model: IInlineEditModel,\n\t\tprivate readonly _close: (focusEditor: boolean) => void,\n\t\tprivate readonly _editorObs: ObservableCodeEditor,\n\t\t@IContextKeyService private readonly _contextKeyService: IContextKeyService,\n\t\t@IKeybindingService private readonly _keybindingService: IKeybindingService,\n\t\t@ICommandService private readonly _commandService: ICommandService,\n\t) {\n\t\tthis._inlineEditsShowCollapsed = this._editorObs.getOption(EditorOption.inlineSuggest).map(s => s.edits.showCollapsed);\n\t}\n\n\tpublic toDisposableLiveElement(): LiveElement {\n\t\treturn this._createHoverContent().toDisposableLiveElement();\n\t}\n\n\tprivate _createHoverContent() {\n\t\tconst activeElement = observableValue<string | undefined>('active', undefined);\n\n\t\tconst createOptionArgs = (options: { id: string; title: string; icon: IObservable<ThemeIcon> | ThemeIcon; commandId: string | IObservable<string>; commandArgs?: unknown[] }): FirstFnArg<typeof option> => {\n\t\t\treturn {\n\t\t\t\ttitle: options.title,\n\t\t\t\ticon: options.icon,\n\t\t\t\tkeybinding: typeof options.commandId === 'string' ? this._getKeybinding(options.commandArgs ? undefined : options.commandId) : derived(this, reader => typeof options.commandId === 'string' ? undefined : this._getKeybinding(options.commandArgs ? undefined : options.commandId.read(reader)).read(reader)),\n\t\t\t\tisActive: activeElement.map(v => v === options.id),\n\t\t\t\tonHoverChange: v => activeElement.set(v ? options.id : undefined, undefined),\n\t\t\t\tonAction: () => {\n\t\t\t\t\tthis._close(true);\n\t\t\t\t\treturn this._commandService.executeCommand(typeof options.commandId === 'string' ? options.commandId : options.commandId.get(), ...(options.commandArgs ?? []));\n\t\t\t\t},\n\t\t\t};\n\t\t};\n\n\t\tconst title = header(this._model.displayName);\n\n\t\tconst gotoAndAccept = option(createOptionArgs({\n\t\t\tid: 'gotoAndAccept',\n\t\t\ttitle: `${localize('goto', \"Go To\")} / ${localize('accept', \"Accept\")}`,\n\t\t\ticon: Codicon.check,\n\t\t\tcommandId: inlineSuggestCommitId\n\t\t}));\n\n\t\tconst reject = option(createOptionArgs({\n\t\t\tid: 'reject',\n\t\t\ttitle: localize('reject', \"Reject\"),\n\t\t\ticon: Codicon.close,\n\t\t\tcommandId: hideInlineCompletionId\n\t\t}));\n\n\t\tconst extensionCommands = this._model.extensionCommands.map((c, idx) => option(createOptionArgs({\n\t\t\tid: c.command.id + '_' + idx,\n\t\t\ttitle: c.command.title,\n\t\t\ticon: c.icon ?? Codicon.symbolEvent,\n\t\t\tcommandId: c.command.id,\n\t\t\tcommandArgs: c.command.arguments\n\t\t})));\n\n\t\tconst toggleCollapsedMode = this._inlineEditsShowCollapsed.map(showCollapsed => showCollapsed ?\n\t\t\toption(createOptionArgs({\n\t\t\t\tid: 'showExpanded',\n\t\t\t\ttitle: localize('showExpanded', \"Show Expanded\"),\n\t\t\t\ticon: Codicon.expandAll,\n\t\t\t\tcommandId: toggleShowCollapsedId\n\t\t\t}))\n\t\t\t: option(createOptionArgs({\n\t\t\t\tid: 'showCollapsed',\n\t\t\t\ttitle: localize('showCollapsed', \"Show Collapsed\"),\n\t\t\t\ticon: Codicon.collapseAll,\n\t\t\t\tcommandId: toggleShowCollapsedId\n\t\t\t}))\n\t\t);\n\n\t\tconst settings = option(createOptionArgs({\n\t\t\tid: 'settings',\n\t\t\ttitle: localize('settings', \"Settings\"),\n\t\t\ticon: Codicon.gear,\n\t\t\tcommandId: 'workbench.action.openSettings',\n\t\t\tcommandArgs: ['@tag:nextEditSuggestions']\n\t\t}));\n\n\t\tconst actions = this._model.action ? [this._model.action] : [];\n\t\tconst actionBarFooter = actions.length > 0 ? actionBar(\n\t\t\tactions.map(action => ({\n\t\t\t\tid: action.id,\n\t\t\t\tlabel: action.title + '...',\n\t\t\t\tenabled: true,\n\t\t\t\trun: () => this._commandService.executeCommand(action.id, ...(action.arguments ?? [])),\n\t\t\t\tclass: undefined,\n\t\t\t\ttooltip: action.tooltip ?? action.title\n\t\t\t})),\n\t\t\t{ hoverDelegate: nativeHoverDelegate /* unable to show hover inside another hover */ }\n\t\t) : undefined;\n\n\t\treturn hoverContent([\n\t\t\ttitle,\n\t\t\tgotoAndAccept,\n\t\t\treject,\n\t\t\ttoggleCollapsedMode,\n\t\t\textensionCommands.length ? separator() : undefined,\n\t\t\tsettings,\n\n\t\t\t...extensionCommands,\n\n\t\t\tactionBarFooter ? separator() : undefined,\n\t\t\tactionBarFooter\n\t\t]);\n\t}\n\n\tprivate _getKeybinding(commandId: string | undefined) {\n\t\tif (!commandId) {\n\t\t\treturn constObservable(undefined);\n\t\t}\n\t\treturn observableFromEvent(this._contextKeyService.onDidChangeContext, () => this._keybindingService.lookupKeybinding(commandId)); // TODO: use contextkeyservice to use different renderings\n\t}\n}\n\nfunction hoverContent(content: ChildNode) {\n\treturn n.div({\n\t\tclass: 'content',\n\t\tstyle: {\n\t\t\tmargin: 4,\n\t\t\tminWidth: 180,\n\t\t}\n\t}, content);\n}\n\nfunction header(title: string | IObservable<string>) {\n\treturn n.div({\n\t\tclass: 'header',\n\t\tstyle: {\n\t\t\tcolor: asCssVariable(descriptionForeground),\n\t\t\tfontSize: '13px',\n\t\t\tfontWeight: '600',\n\t\t\tpadding: '0 4px',\n\t\t\tlineHeight: 28,\n\t\t}\n\t}, [title]);\n}\n\nfunction option(props: {\n\ttitle: string;\n\ticon: IObservable<ThemeIcon> | ThemeIcon;\n\tkeybinding: IObservable<ResolvedKeybinding | undefined>;\n\tisActive?: IObservable<boolean>;\n\tonHoverChange?: (isHovered: boolean) => void;\n\tonAction?: () => void;\n}) {\n\treturn derived({ name: 'inlineEdits.option' }, (_reader) => n.div({\n\t\tclass: ['monaco-menu-option', props.isActive?.map(v => v && 'active')],\n\t\tonmouseenter: () => props.onHoverChange?.(true),\n\t\tonmouseleave: () => props.onHoverChange?.(false),\n\t\tonclick: props.onAction,\n\t\tonkeydown: e => {\n\t\t\tif (e.key === 'Enter') {\n\t\t\t\tprops.onAction?.();\n\t\t\t}\n\t\t},\n\t\ttabIndex: 0,\n\t\tstyle: {\n\t\t\tborderRadius: 3, // same as hover widget border radius\n\t\t}\n\t}, [\n\t\tn.elem('span', {\n\t\t\tstyle: {\n\t\t\t\tfontSize: 16,\n\t\t\t\tdisplay: 'flex',\n\t\t\t}\n\t\t}, [ThemeIcon.isThemeIcon(props.icon) ? renderIcon(props.icon) : props.icon.map(icon => renderIcon(icon))]),\n\t\tn.elem('span', {}, [props.title]),\n\t\tn.div({\n\t\t\tstyle: { marginLeft: 'auto' },\n\t\t\tref: elem => {\n\t\t\t\tconst keybindingLabel = _reader.store.add(new KeybindingLabel(elem, OS, {\n\t\t\t\t\tdisableTitle: true,\n\t\t\t\t\t...defaultKeybindingLabelStyles,\n\t\t\t\t\tkeybindingLabelShadow: undefined,\n\t\t\t\t\tkeybindingLabelForeground: asCssVariable(descriptionForeground),\n\t\t\t\t\tkeybindingLabelBackground: 'transparent',\n\t\t\t\t\tkeybindingLabelBorder: 'transparent',\n\t\t\t\t\tkeybindingLabelBottomBorder: undefined,\n\t\t\t\t}));\n\t\t\t\t_reader.store.add(autorun(reader => {\n\t\t\t\t\tkeybindingLabel.set(props.keybinding.read(reader));\n\t\t\t\t}));\n\t\t\t}\n\t\t})\n\t]));\n}\n\n// TODO: make this observable\nfunction actionBar(actions: IAction[], options: IActionBarOptions) {\n\treturn derived({ name: 'inlineEdits.actionBar' }, (_reader) => n.div({\n\t\tclass: ['action-widget-action-bar'],\n\t\tstyle: {\n\t\t\tpadding: '3px 24px',\n\t\t}\n\t}, [\n\t\tn.div({\n\t\t\tref: elem => {\n\t\t\t\tconst actionBar = _reader.store.add(new ActionBar(elem, options));\n\t\t\t\tactionBar.push(actions, { icon: false, label: true });\n\t\t\t}\n\t\t})\n\t]));\n}\n\nfunction separator() {\n\treturn n.div({\n\t\tid: 'inline-edit-gutter-indicator-menu-separator',\n\t\tclass: 'menu-separator',\n\t\tstyle: {\n\t\t\tcolor: asCssVariable(editorActionListForeground),\n\t\t\tpadding: '2px 0',\n\t\t}\n\t}, n.div({\n\t\tstyle: {\n\t\t\tborderBottom: `1px solid ${asCssVariable(editorHoverBorder)}`,\n\t\t}\n\t}));\n}\n"]}
1
+ {"version":3,"sources":["vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;;gGAGgG;;;;;;;;;;AAEhG,OAAO,EAA0B,CAAC,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,SAAS,EAAqB,MAAM,6DAA6D,CAAC;AAC3G,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,MAAM,yEAAyE,CAAC;AAE1G,OAAO,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAC;AAEvE,OAAO,EAAe,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gDAAgD,CAAC;AACtJ,OAAO,EAAE,EAAE,EAAE,MAAM,8CAA8C,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EA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C,GAAG,CAAC,IAAI,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;gBAClE,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;YACvD,CAAC;SACD,CAAC;KACF,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,SAAS;IACjB,OAAO,CAAC,CAAC,GAAG,CAAC;QACZ,EAAE,EAAE,6CAA6C;QACjD,KAAK,EAAE,gBAAgB;QACvB,KAAK,EAAE;YACN,KAAK,EAAE,aAAa,CAAC,0BAA0B,CAAC;YAChD,OAAO,EAAE,OAAO;SAChB;KACD,EAAE,CAAC,CAAC,GAAG,CAAC;QACR,KAAK,EAAE;YACN,YAAY,EAAE,aAAa,aAAa,CAAC,iBAAiB,CAAC,EAAE;SAC7D;KACD,CAAC,CAAC,CAAC;AACL,CAAC","file":"gutterIndicatorMenu.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/*---------------------------------------------------------------------------------------------\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 { ChildNode, LiveElement, n } from '../../../../../../../base/browser/dom.js';\nimport { ActionBar, IActionBarOptions } from '../../../../../../../base/browser/ui/actionbar/actionbar.js';\nimport { renderIcon } from '../../../../../../../base/browser/ui/iconLabel/iconLabels.js';\nimport { KeybindingLabel } from '../../../../../../../base/browser/ui/keybindingLabel/keybindingLabel.js';\nimport { IAction } from '../../../../../../../base/common/actions.js';\nimport { Codicon } from '../../../../../../../base/common/codicons.js';\nimport { ResolvedKeybinding } from '../../../../../../../base/common/keybindings.js';\nimport { IObservable, autorun, constObservable, derived, observableFromEvent, observableValue } from '../../../../../../../base/common/observable.js';\nimport { OS } from '../../../../../../../base/common/platform.js';\nimport { ThemeIcon } from '../../../../../../../base/common/themables.js';\nimport { localize } from '../../../../../../../nls.js';\nimport { ICommandService } from '../../../../../../../platform/commands/common/commands.js';\nimport { IContextKeyService } from '../../../../../../../platform/contextkey/common/contextkey.js';\nimport { nativeHoverDelegate } from '../../../../../../../platform/hover/browser/hover.js';\nimport { IKeybindingService } from '../../../../../../../platform/keybinding/common/keybinding.js';\nimport { defaultKeybindingLabelStyles } from '../../../../../../../platform/theme/browser/defaultStyles.js';\nimport { asCssVariable, descriptionForeground, editorActionListForeground, editorHoverBorder } from '../../../../../../../platform/theme/common/colorRegistry.js';\nimport { ObservableCodeEditor } from '../../../../../../browser/observableCodeEditor.js';\nimport { EditorOption } from '../../../../../../common/config/editorOptions.js';\nimport { hideInlineCompletionId, inlineSuggestCommitId, toggleShowCollapsedId } from '../../../controller/commandIds.js';\nimport { IInlineEditModel } from '../inlineEditsViewInterface.js';\nimport { FirstFnArg } from '../utils/utils.js';\n\nexport class GutterIndicatorMenuContent {\n\n\tprivate readonly _inlineEditsShowCollapsed: IObservable<boolean>;\n\n\tconstructor(\n\t\tprivate readonly _model: IInlineEditModel,\n\t\tprivate readonly _close: (focusEditor: boolean) => void,\n\t\tprivate readonly _editorObs: ObservableCodeEditor,\n\t\t@IContextKeyService private readonly _contextKeyService: IContextKeyService,\n\t\t@IKeybindingService private readonly _keybindingService: IKeybindingService,\n\t\t@ICommandService private readonly _commandService: ICommandService,\n\t) {\n\t\tthis._inlineEditsShowCollapsed = this._editorObs.getOption(EditorOption.inlineSuggest).map(s => s.edits.showCollapsed);\n\t}\n\n\tpublic toDisposableLiveElement(): LiveElement {\n\t\treturn this._createHoverContent().toDisposableLiveElement();\n\t}\n\n\tprivate _createHoverContent() {\n\t\tconst activeElement = observableValue<string | undefined>('active', undefined);\n\n\t\tconst createOptionArgs = (options: { id: string; title: string; icon: IObservable<ThemeIcon> | ThemeIcon; commandId: string | IObservable<string>; commandArgs?: unknown[] }): FirstFnArg<typeof option> => {\n\t\t\treturn {\n\t\t\t\ttitle: options.title,\n\t\t\t\ticon: options.icon,\n\t\t\t\tkeybinding: typeof options.commandId === 'string' ? this._getKeybinding(options.commandArgs ? undefined : options.commandId) : derived(this, reader => typeof options.commandId === 'string' ? undefined : this._getKeybinding(options.commandArgs ? undefined : options.commandId.read(reader)).read(reader)),\n\t\t\t\tisActive: activeElement.map(v => v === options.id),\n\t\t\t\tonHoverChange: v => activeElement.set(v ? options.id : undefined, undefined),\n\t\t\t\tonAction: () => {\n\t\t\t\t\tthis._close(true);\n\t\t\t\t\treturn this._commandService.executeCommand(typeof options.commandId === 'string' ? options.commandId : options.commandId.get(), ...(options.commandArgs ?? []));\n\t\t\t\t},\n\t\t\t};\n\t\t};\n\n\t\tconst title = header(this._model.displayName);\n\n\t\tconst gotoAndAccept = option(createOptionArgs({\n\t\t\tid: 'gotoAndAccept',\n\t\t\ttitle: `${localize('goto', \"Go To\")} / ${localize('accept', \"Accept\")}`,\n\t\t\ticon: Codicon.check,\n\t\t\tcommandId: inlineSuggestCommitId\n\t\t}));\n\n\t\tconst reject = option(createOptionArgs({\n\t\t\tid: 'reject',\n\t\t\ttitle: localize('reject', \"Reject\"),\n\t\t\ticon: Codicon.close,\n\t\t\tcommandId: hideInlineCompletionId\n\t\t}));\n\n\t\tconst extensionCommands = this._model.extensionCommands.map((c, idx) => option(createOptionArgs({\n\t\t\tid: c.command.id + '_' + idx,\n\t\t\ttitle: c.command.title,\n\t\t\ticon: c.icon ?? Codicon.symbolEvent,\n\t\t\tcommandId: c.command.id,\n\t\t\tcommandArgs: c.command.arguments\n\t\t})));\n\n\t\tconst toggleCollapsedMode = this._inlineEditsShowCollapsed.map(showCollapsed => showCollapsed ?\n\t\t\toption(createOptionArgs({\n\t\t\t\tid: 'showExpanded',\n\t\t\t\ttitle: localize('showExpanded', \"Show Expanded\"),\n\t\t\t\ticon: Codicon.expandAll,\n\t\t\t\tcommandId: toggleShowCollapsedId\n\t\t\t}))\n\t\t\t: option(createOptionArgs({\n\t\t\t\tid: 'showCollapsed',\n\t\t\t\ttitle: localize('showCollapsed', \"Show Collapsed\"),\n\t\t\t\ticon: Codicon.collapseAll,\n\t\t\t\tcommandId: toggleShowCollapsedId\n\t\t\t}))\n\t\t);\n\n\t\tconst snooze = option(createOptionArgs({\n\t\t\tid: 'snooze',\n\t\t\ttitle: localize('snooze', \"Snooze\"),\n\t\t\ticon: Codicon.bellSlash,\n\t\t\tcommandId: 'editor.action.inlineSuggest.snooze'\n\t\t}));\n\n\t\tconst settings = option(createOptionArgs({\n\t\t\tid: 'settings',\n\t\t\ttitle: localize('settings', \"Settings\"),\n\t\t\ticon: Codicon.gear,\n\t\t\tcommandId: 'workbench.action.openSettings',\n\t\t\tcommandArgs: ['@tag:nextEditSuggestions']\n\t\t}));\n\n\t\tconst actions = this._model.action ? [this._model.action] : [];\n\t\tconst actionBarFooter = actions.length > 0 ? actionBar(\n\t\t\tactions.map(action => ({\n\t\t\t\tid: action.id,\n\t\t\t\tlabel: action.title + '...',\n\t\t\t\tenabled: true,\n\t\t\t\trun: () => this._commandService.executeCommand(action.id, ...(action.arguments ?? [])),\n\t\t\t\tclass: undefined,\n\t\t\t\ttooltip: action.tooltip ?? action.title\n\t\t\t})),\n\t\t\t{ hoverDelegate: nativeHoverDelegate /* unable to show hover inside another hover */ }\n\t\t) : undefined;\n\n\t\treturn hoverContent([\n\t\t\ttitle,\n\t\t\tgotoAndAccept,\n\t\t\treject,\n\t\t\ttoggleCollapsedMode,\n\t\t\textensionCommands.length ? separator() : undefined,\n\t\t\tsnooze,\n\t\t\tsettings,\n\n\t\t\t...extensionCommands,\n\n\t\t\tactionBarFooter ? separator() : undefined,\n\t\t\tactionBarFooter\n\t\t]);\n\t}\n\n\tprivate _getKeybinding(commandId: string | undefined) {\n\t\tif (!commandId) {\n\t\t\treturn constObservable(undefined);\n\t\t}\n\t\treturn observableFromEvent(this._contextKeyService.onDidChangeContext, () => this._keybindingService.lookupKeybinding(commandId)); // TODO: use contextkeyservice to use different renderings\n\t}\n}\n\nfunction hoverContent(content: ChildNode) {\n\treturn n.div({\n\t\tclass: 'content',\n\t\tstyle: {\n\t\t\tmargin: 4,\n\t\t\tminWidth: 180,\n\t\t}\n\t}, content);\n}\n\nfunction header(title: string | IObservable<string>) {\n\treturn n.div({\n\t\tclass: 'header',\n\t\tstyle: {\n\t\t\tcolor: asCssVariable(descriptionForeground),\n\t\t\tfontSize: '13px',\n\t\t\tfontWeight: '600',\n\t\t\tpadding: '0 4px',\n\t\t\tlineHeight: 28,\n\t\t}\n\t}, [title]);\n}\n\nfunction option(props: {\n\ttitle: string;\n\ticon: IObservable<ThemeIcon> | ThemeIcon;\n\tkeybinding: IObservable<ResolvedKeybinding | undefined>;\n\tisActive?: IObservable<boolean>;\n\tonHoverChange?: (isHovered: boolean) => void;\n\tonAction?: () => void;\n}) {\n\treturn derived({ name: 'inlineEdits.option' }, (_reader) => n.div({\n\t\tclass: ['monaco-menu-option', props.isActive?.map(v => v && 'active')],\n\t\tonmouseenter: () => props.onHoverChange?.(true),\n\t\tonmouseleave: () => props.onHoverChange?.(false),\n\t\tonclick: props.onAction,\n\t\tonkeydown: e => {\n\t\t\tif (e.key === 'Enter') {\n\t\t\t\tprops.onAction?.();\n\t\t\t}\n\t\t},\n\t\ttabIndex: 0,\n\t\tstyle: {\n\t\t\tborderRadius: 3, // same as hover widget border radius\n\t\t}\n\t}, [\n\t\tn.elem('span', {\n\t\t\tstyle: {\n\t\t\t\tfontSize: 16,\n\t\t\t\tdisplay: 'flex',\n\t\t\t}\n\t\t}, [ThemeIcon.isThemeIcon(props.icon) ? renderIcon(props.icon) : props.icon.map(icon => renderIcon(icon))]),\n\t\tn.elem('span', {}, [props.title]),\n\t\tn.div({\n\t\t\tstyle: { marginLeft: 'auto' },\n\t\t\tref: elem => {\n\t\t\t\tconst keybindingLabel = _reader.store.add(new KeybindingLabel(elem, OS, {\n\t\t\t\t\tdisableTitle: true,\n\t\t\t\t\t...defaultKeybindingLabelStyles,\n\t\t\t\t\tkeybindingLabelShadow: undefined,\n\t\t\t\t\tkeybindingLabelForeground: asCssVariable(descriptionForeground),\n\t\t\t\t\tkeybindingLabelBackground: 'transparent',\n\t\t\t\t\tkeybindingLabelBorder: 'transparent',\n\t\t\t\t\tkeybindingLabelBottomBorder: undefined,\n\t\t\t\t}));\n\t\t\t\t_reader.store.add(autorun(reader => {\n\t\t\t\t\tkeybindingLabel.set(props.keybinding.read(reader));\n\t\t\t\t}));\n\t\t\t}\n\t\t})\n\t]));\n}\n\n// TODO: make this observable\nfunction actionBar(actions: IAction[], options: IActionBarOptions) {\n\treturn derived({ name: 'inlineEdits.actionBar' }, (_reader) => n.div({\n\t\tclass: ['action-widget-action-bar'],\n\t\tstyle: {\n\t\t\tpadding: '3px 24px',\n\t\t}\n\t}, [\n\t\tn.div({\n\t\t\tref: elem => {\n\t\t\t\tconst actionBar = _reader.store.add(new ActionBar(elem, options));\n\t\t\t\tactionBar.push(actions, { icon: false, label: true });\n\t\t\t}\n\t\t})\n\t]));\n}\n\nfunction separator() {\n\treturn n.div({\n\t\tid: 'inline-edit-gutter-indicator-menu-separator',\n\t\tclass: 'menu-separator',\n\t\tstyle: {\n\t\t\tcolor: asCssVariable(editorActionListForeground),\n\t\t\tpadding: '2px 0',\n\t\t}\n\t}, n.div({\n\t\tstyle: {\n\t\t\tborderBottom: `1px solid ${asCssVariable(editorHoverBorder)}`,\n\t\t}\n\t}));\n}\n"]}
@@ -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(1209, "Inline Edit");
18
+ this.displayName = this.inlineEdit.inlineCompletion.source.provider.displayName ?? localize(1210, "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.displayLocation;
@@ -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(1210, 'Background color for the original text in inline edits.'), true);
12
- export const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(1211, 'Background color for the modified text in inline edits.'), true);
13
- export const originalChangedLineBackgroundColor = registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(1212, '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(1213, '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(1211, 'Background color for the original text in inline edits.'), true);
12
+ export const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(1212, 'Background color for the modified text in inline edits.'), true);
13
+ export const originalChangedLineBackgroundColor = registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(1213, '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(1214, '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(1214, '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(1215, 'Overlay color for the changed text in the modified text of inline edits.'), true);
20
+ }, localize(1215, '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(1216, '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(1216, 'Foreground color for the primary inline edit gutter indicator.'));
24
- export const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(1217, 'Border color for the primary inline edit gutter indicator.'));
23
+ export const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(1217, 'Foreground color for the primary inline edit gutter indicator.'));
24
+ export const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(1218, '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(1218, 'Background color for the primary inline edit gutter indicator.'));
31
- export const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(1219, 'Foreground color for the secondary inline edit gutter indicator.'));
32
- export const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(1220, 'Border color for the secondary inline edit gutter indicator.'));
33
- export const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(1221, 'Background color for the secondary inline edit gutter indicator.'));
34
- export const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(1222, 'Foreground color for the successful inline edit gutter indicator.'));
35
- export const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(1223, 'Border color for the successful inline edit gutter indicator.'));
36
- export const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, localize(1224, 'Background color for the successful inline edit gutter indicator.'));
30
+ }, localize(1219, 'Background color for the primary inline edit gutter indicator.'));
31
+ export const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(1220, 'Foreground color for the secondary inline edit gutter indicator.'));
32
+ export const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(1221, 'Border color for the secondary inline edit gutter indicator.'));
33
+ export const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(1222, 'Background color for the secondary inline edit gutter indicator.'));
34
+ export const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(1223, 'Foreground color for the successful inline edit gutter indicator.'));
35
+ export const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(1224, 'Border color for the successful inline edit gutter indicator.'));
36
+ export const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, localize(1225, '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(1225, 'Background color for the inline edit gutter indicator.'));
42
+ }, localize(1226, '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(1226, 'Border color for the original text in inline edits.'));
49
+ }, localize(1227, '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(1227, 'Border color for the modified text in inline edits.'));
55
+ }, localize(1228, '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(1228, 'Modified border color for the inline edits widget when tab will accept it.'));
61
+ }, localize(1229, '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(1229, 'Original border color for the inline edits widget over the original text when tab will accept it.'));
67
+ }, localize(1230, '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(1232, "Insert Final New Line"),
14
+ label: nls.localize2(1233, "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(1233, "Expand Line Selection"),
13
+ label: nls.localize2(1234, "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(1239, "Copy Line Up"),
66
+ label: nls.localize2(1240, "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(1234, "&&Copy Line Up"),
77
+ title: nls.localize(1235, "&&Copy Line Up"),
78
78
  order: 1
79
79
  }
80
80
  });
@@ -84,7 +84,7 @@ class CopyLinesDownAction extends AbstractCopyLinesAction {
84
84
  constructor() {
85
85
  super(true, {
86
86
  id: 'editor.action.copyLinesDownAction',
87
- label: nls.localize2(1240, "Copy Line Down"),
87
+ label: nls.localize2(1241, "Copy Line Down"),
88
88
  precondition: EditorContextKeys.writable,
89
89
  kbOpts: {
90
90
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -95,7 +95,7 @@ class CopyLinesDownAction extends AbstractCopyLinesAction {
95
95
  menuOpts: {
96
96
  menuId: MenuId.MenubarSelectionMenu,
97
97
  group: '2_line',
98
- title: nls.localize(1235, "Co&&py Line Down"),
98
+ title: nls.localize(1236, "Co&&py Line Down"),
99
99
  order: 2
100
100
  }
101
101
  });
@@ -105,12 +105,12 @@ export class DuplicateSelectionAction extends EditorAction {
105
105
  constructor() {
106
106
  super({
107
107
  id: 'editor.action.duplicateSelection',
108
- label: nls.localize2(1241, "Duplicate Selection"),
108
+ label: nls.localize2(1242, "Duplicate Selection"),
109
109
  precondition: EditorContextKeys.writable,
110
110
  menuOpts: {
111
111
  menuId: MenuId.MenubarSelectionMenu,
112
112
  group: '2_line',
113
- title: nls.localize(1236, "&&Duplicate Selection"),
113
+ title: nls.localize(1237, "&&Duplicate Selection"),
114
114
  order: 5
115
115
  }
116
116
  });
@@ -159,7 +159,7 @@ class MoveLinesUpAction extends AbstractMoveLinesAction {
159
159
  constructor() {
160
160
  super(false, {
161
161
  id: 'editor.action.moveLinesUpAction',
162
- label: nls.localize2(1242, "Move Line Up"),
162
+ label: nls.localize2(1243, "Move Line Up"),
163
163
  precondition: EditorContextKeys.writable,
164
164
  kbOpts: {
165
165
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -170,7 +170,7 @@ class MoveLinesUpAction extends AbstractMoveLinesAction {
170
170
  menuOpts: {
171
171
  menuId: MenuId.MenubarSelectionMenu,
172
172
  group: '2_line',
173
- title: nls.localize(1237, "Mo&&ve Line Up"),
173
+ title: nls.localize(1238, "Mo&&ve Line Up"),
174
174
  order: 3
175
175
  }
176
176
  });
@@ -180,7 +180,7 @@ class MoveLinesDownAction extends AbstractMoveLinesAction {
180
180
  constructor() {
181
181
  super(true, {
182
182
  id: 'editor.action.moveLinesDownAction',
183
- label: nls.localize2(1243, "Move Line Down"),
183
+ label: nls.localize2(1244, "Move Line Down"),
184
184
  precondition: EditorContextKeys.writable,
185
185
  kbOpts: {
186
186
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -191,7 +191,7 @@ class MoveLinesDownAction extends AbstractMoveLinesAction {
191
191
  menuOpts: {
192
192
  menuId: MenuId.MenubarSelectionMenu,
193
193
  group: '2_line',
194
- title: nls.localize(1238, "Move &&Line Down"),
194
+ title: nls.localize(1239, "Move &&Line Down"),
195
195
  order: 4
196
196
  }
197
197
  });
@@ -230,7 +230,7 @@ export class SortLinesAscendingAction extends AbstractSortLinesAction {
230
230
  constructor() {
231
231
  super(false, {
232
232
  id: 'editor.action.sortLinesAscending',
233
- label: nls.localize2(1244, "Sort Lines Ascending"),
233
+ label: nls.localize2(1245, "Sort Lines Ascending"),
234
234
  precondition: EditorContextKeys.writable
235
235
  });
236
236
  }
@@ -239,7 +239,7 @@ export class SortLinesDescendingAction extends AbstractSortLinesAction {
239
239
  constructor() {
240
240
  super(true, {
241
241
  id: 'editor.action.sortLinesDescending',
242
- label: nls.localize2(1245, "Sort Lines Descending"),
242
+ label: nls.localize2(1246, "Sort Lines Descending"),
243
243
  precondition: EditorContextKeys.writable
244
244
  });
245
245
  }
@@ -248,7 +248,7 @@ export class DeleteDuplicateLinesAction extends EditorAction {
248
248
  constructor() {
249
249
  super({
250
250
  id: 'editor.action.removeDuplicateLines',
251
- label: nls.localize2(1246, "Delete Duplicate Lines"),
251
+ label: nls.localize2(1247, "Delete Duplicate Lines"),
252
252
  precondition: EditorContextKeys.writable
253
253
  });
254
254
  }
@@ -297,7 +297,7 @@ export class ReverseLinesAction extends EditorAction {
297
297
  constructor() {
298
298
  super({
299
299
  id: 'editor.action.reverseLines',
300
- label: nls.localize2(1247, "Reverse lines"),
300
+ label: nls.localize2(1248, "Reverse lines"),
301
301
  precondition: EditorContextKeys.writable
302
302
  });
303
303
  }
@@ -363,7 +363,7 @@ export class TrimTrailingWhitespaceAction extends EditorAction {
363
363
  constructor() {
364
364
  super({
365
365
  id: TrimTrailingWhitespaceAction.ID,
366
- label: nls.localize2(1248, "Trim Trailing Whitespace"),
366
+ label: nls.localize2(1249, "Trim Trailing Whitespace"),
367
367
  precondition: EditorContextKeys.writable,
368
368
  kbOpts: {
369
369
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -397,7 +397,7 @@ export class DeleteLinesAction extends EditorAction {
397
397
  constructor() {
398
398
  super({
399
399
  id: 'editor.action.deleteLines',
400
- label: nls.localize2(1249, "Delete Line"),
400
+ label: nls.localize2(1250, "Delete Line"),
401
401
  precondition: EditorContextKeys.writable,
402
402
  kbOpts: {
403
403
  kbExpr: EditorContextKeys.textInputFocus,
@@ -485,7 +485,7 @@ export class IndentLinesAction extends EditorAction {
485
485
  constructor() {
486
486
  super({
487
487
  id: 'editor.action.indentLines',
488
- label: nls.localize2(1250, "Indent Line"),
488
+ label: nls.localize2(1251, "Indent Line"),
489
489
  precondition: EditorContextKeys.writable,
490
490
  kbOpts: {
491
491
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -508,7 +508,7 @@ class OutdentLinesAction extends EditorAction {
508
508
  constructor() {
509
509
  super({
510
510
  id: 'editor.action.outdentLines',
511
- label: nls.localize2(1251, "Outdent Line"),
511
+ label: nls.localize2(1252, "Outdent Line"),
512
512
  precondition: EditorContextKeys.writable,
513
513
  kbOpts: {
514
514
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -525,7 +525,7 @@ export class InsertLineBeforeAction extends EditorAction {
525
525
  constructor() {
526
526
  super({
527
527
  id: 'editor.action.insertLineBefore',
528
- label: nls.localize2(1252, "Insert Line Above"),
528
+ label: nls.localize2(1253, "Insert Line Above"),
529
529
  precondition: EditorContextKeys.writable,
530
530
  kbOpts: {
531
531
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -547,7 +547,7 @@ export class InsertLineAfterAction extends EditorAction {
547
547
  constructor() {
548
548
  super({
549
549
  id: 'editor.action.insertLineAfter',
550
- label: nls.localize2(1253, "Insert Line Below"),
550
+ label: nls.localize2(1254, "Insert Line Below"),
551
551
  precondition: EditorContextKeys.writable,
552
552
  kbOpts: {
553
553
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -598,7 +598,7 @@ export class DeleteAllLeftAction extends AbstractDeleteAllToBoundaryAction {
598
598
  constructor() {
599
599
  super({
600
600
  id: 'deleteAllLeft',
601
- label: nls.localize2(1254, "Delete All Left"),
601
+ label: nls.localize2(1255, "Delete All Left"),
602
602
  precondition: EditorContextKeys.writable,
603
603
  kbOpts: {
604
604
  kbExpr: EditorContextKeys.textInputFocus,
@@ -667,7 +667,7 @@ export class DeleteAllRightAction extends AbstractDeleteAllToBoundaryAction {
667
667
  constructor() {
668
668
  super({
669
669
  id: 'deleteAllRight',
670
- label: nls.localize2(1255, "Delete All Right"),
670
+ label: nls.localize2(1256, "Delete All Right"),
671
671
  precondition: EditorContextKeys.writable,
672
672
  kbOpts: {
673
673
  kbExpr: EditorContextKeys.textInputFocus,
@@ -724,7 +724,7 @@ export class JoinLinesAction extends EditorAction {
724
724
  constructor() {
725
725
  super({
726
726
  id: 'editor.action.joinLines',
727
- label: nls.localize2(1256, "Join Lines"),
727
+ label: nls.localize2(1257, "Join Lines"),
728
728
  precondition: EditorContextKeys.writable,
729
729
  kbOpts: {
730
730
  kbExpr: EditorContextKeys.editorTextFocus,
@@ -865,7 +865,7 @@ export class TransposeAction extends EditorAction {
865
865
  constructor() {
866
866
  super({
867
867
  id: 'editor.action.transpose',
868
- label: nls.localize2(1257, "Transpose Characters around the Cursor"),
868
+ label: nls.localize2(1258, "Transpose Characters around the Cursor"),
869
869
  precondition: EditorContextKeys.writable
870
870
  });
871
871
  }
@@ -944,7 +944,7 @@ export class UpperCaseAction extends AbstractCaseAction {
944
944
  constructor() {
945
945
  super({
946
946
  id: 'editor.action.transformToUppercase',
947
- label: nls.localize2(1258, "Transform to Uppercase"),
947
+ label: nls.localize2(1259, "Transform to Uppercase"),
948
948
  precondition: EditorContextKeys.writable
949
949
  });
950
950
  }
@@ -956,7 +956,7 @@ export class LowerCaseAction extends AbstractCaseAction {
956
956
  constructor() {
957
957
  super({
958
958
  id: 'editor.action.transformToLowercase',
959
- label: nls.localize2(1259, "Transform to Lowercase"),
959
+ label: nls.localize2(1260, "Transform to Lowercase"),
960
960
  precondition: EditorContextKeys.writable
961
961
  });
962
962
  }
@@ -992,7 +992,7 @@ export class TitleCaseAction extends AbstractCaseAction {
992
992
  constructor() {
993
993
  super({
994
994
  id: 'editor.action.transformToTitlecase',
995
- label: nls.localize2(1260, "Transform to Title Case"),
995
+ label: nls.localize2(1261, "Transform to Title Case"),
996
996
  precondition: EditorContextKeys.writable
997
997
  });
998
998
  }
@@ -1013,7 +1013,7 @@ export class SnakeCaseAction extends AbstractCaseAction {
1013
1013
  constructor() {
1014
1014
  super({
1015
1015
  id: 'editor.action.transformToSnakecase',
1016
- label: nls.localize2(1261, "Transform to Snake Case"),
1016
+ label: nls.localize2(1262, "Transform to Snake Case"),
1017
1017
  precondition: EditorContextKeys.writable
1018
1018
  });
1019
1019
  }
@@ -1037,7 +1037,7 @@ export class CamelCaseAction extends AbstractCaseAction {
1037
1037
  constructor() {
1038
1038
  super({
1039
1039
  id: 'editor.action.transformToCamelcase',
1040
- label: nls.localize2(1262, "Transform to Camel Case"),
1040
+ label: nls.localize2(1263, "Transform to Camel Case"),
1041
1041
  precondition: EditorContextKeys.writable
1042
1042
  });
1043
1043
  }
@@ -1060,7 +1060,7 @@ export class PascalCaseAction extends AbstractCaseAction {
1060
1060
  constructor() {
1061
1061
  super({
1062
1062
  id: 'editor.action.transformToPascalcase',
1063
- label: nls.localize2(1263, "Transform to Pascal Case"),
1063
+ label: nls.localize2(1264, "Transform to Pascal Case"),
1064
1064
  precondition: EditorContextKeys.writable
1065
1065
  });
1066
1066
  }
@@ -1092,7 +1092,7 @@ export class KebabCaseAction extends AbstractCaseAction {
1092
1092
  constructor() {
1093
1093
  super({
1094
1094
  id: 'editor.action.transformToKebabcase',
1095
- label: nls.localize2(1264, 'Transform to Kebab Case'),
1095
+ label: nls.localize2(1265, 'Transform to Kebab Case'),
1096
1096
  precondition: EditorContextKeys.writable
1097
1097
  });
1098
1098
  }
@@ -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(1266, "Start Linked Editing"),
302
+ label: nls.localize2(1267, "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(1265, '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(1266, '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);