monaco-editor-core 0.54.0-dev-20250910 → 0.54.0-dev-20250912

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 (278) 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 +8 -2
  14. package/esm/vs/base/browser/domSanitize.js +32 -21
  15. package/esm/vs/base/browser/domSanitize.js.map +1 -1
  16. package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  17. package/esm/vs/base/browser/ui/menu/menu.js +2 -0
  18. package/esm/vs/base/browser/ui/menu/menu.js.map +1 -1
  19. package/esm/vs/base/common/codiconsLibrary.js +2 -0
  20. package/esm/vs/base/common/codiconsLibrary.js.map +1 -1
  21. package/esm/vs/base/common/observableInternal/index.js +3 -0
  22. package/esm/vs/base/common/observableInternal/index.js.map +1 -1
  23. package/esm/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js +71 -0
  24. package/esm/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js.map +1 -0
  25. package/esm/vs/base/common/observableInternal/observables/baseObservable.js +4 -0
  26. package/esm/vs/base/common/observableInternal/observables/baseObservable.js.map +1 -1
  27. package/esm/vs/base/common/observableInternal/observables/derivedImpl.js +10 -0
  28. package/esm/vs/base/common/observableInternal/observables/derivedImpl.js.map +1 -1
  29. package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js +3 -0
  30. package/esm/vs/base/common/observableInternal/observables/observableFromEvent.js.map +1 -1
  31. package/esm/vs/base/common/observableInternal/reactions/autorunImpl.js +9 -0
  32. package/esm/vs/base/common/observableInternal/reactions/autorunImpl.js.map +1 -1
  33. package/esm/vs/editor/browser/config/editorConfiguration.js +1 -1
  34. package/esm/vs/editor/browser/controller/dragScrolling.js +4 -4
  35. package/esm/vs/editor/browser/controller/editContext/native/nativeEditContext.js +3 -3
  36. package/esm/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +3 -3
  37. package/esm/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +6 -6
  38. package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +9 -9
  39. package/esm/vs/editor/browser/controller/mouseHandler.js +6 -6
  40. package/esm/vs/editor/browser/controller/mouseTarget.js +3 -3
  41. package/esm/vs/editor/browser/coreCommands.js +2 -2
  42. package/esm/vs/editor/browser/gpu/rectangleRenderer.js +1 -1
  43. package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -1
  44. package/esm/vs/editor/browser/observableCodeEditor.js +1 -1
  45. package/esm/vs/editor/browser/view/viewController.js +2 -2
  46. package/esm/vs/editor/browser/view/viewLayer.js +1 -1
  47. package/esm/vs/editor/browser/view/viewOverlays.js +4 -4
  48. package/esm/vs/editor/browser/view.js +5 -5
  49. package/esm/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -1
  50. package/esm/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +3 -3
  51. package/esm/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +6 -6
  52. package/esm/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +8 -8
  53. package/esm/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +2 -2
  54. package/esm/vs/editor/browser/viewParts/indentGuides/indentGuides.js +2 -2
  55. package/esm/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +2 -2
  56. package/esm/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -2
  57. package/esm/vs/editor/browser/viewParts/margin/margin.js +2 -2
  58. package/esm/vs/editor/browser/viewParts/minimap/minimap.js +5 -5
  59. package/esm/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -2
  60. package/esm/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +4 -4
  61. package/esm/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +3 -3
  62. package/esm/vs/editor/browser/viewParts/rulers/rulers.js +2 -2
  63. package/esm/vs/editor/browser/viewParts/rulersGpu/rulersGpu.js +1 -1
  64. package/esm/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +3 -3
  65. package/esm/vs/editor/browser/viewParts/selections/selections.js +2 -2
  66. package/esm/vs/editor/browser/viewParts/viewCursors/viewCursor.js +2 -2
  67. package/esm/vs/editor/browser/viewParts/viewCursors/viewCursors.js +6 -6
  68. package/esm/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +4 -4
  69. package/esm/vs/editor/browser/viewParts/viewLines/viewLines.js +11 -11
  70. package/esm/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +1 -1
  71. package/esm/vs/editor/browser/viewParts/viewZones/viewZones.js +2 -2
  72. package/esm/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -4
  73. package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +12 -12
  74. package/esm/vs/editor/browser/widget/diffEditor/commands.js +12 -1
  75. package/esm/vs/editor/browser/widget/diffEditor/commands.js.map +1 -1
  76. package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +4 -4
  77. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +3 -3
  78. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +2 -2
  79. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +2 -2
  80. package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +25 -0
  81. package/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js.map +1 -1
  82. package/esm/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
  83. package/esm/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
  84. package/esm/vs/editor/common/config/editorOptions.js +155 -154
  85. package/esm/vs/editor/common/config/editorOptions.js.map +1 -1
  86. package/esm/vs/editor/common/core/editorColorRegistry.js +68 -68
  87. package/esm/vs/editor/common/core/ranges/lineRange.js +3 -0
  88. package/esm/vs/editor/common/core/ranges/lineRange.js.map +1 -1
  89. package/esm/vs/editor/common/cursorCommon.js +19 -19
  90. package/esm/vs/editor/common/editorContextKeys.js +46 -46
  91. package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
  92. package/esm/vs/editor/common/languages.js +56 -56
  93. package/esm/vs/editor/common/model/editStack.js +1 -1
  94. package/esm/vs/editor/common/standalone/standaloneEnums.js +86 -85
  95. package/esm/vs/editor/common/standalone/standaloneEnums.js.map +1 -1
  96. package/esm/vs/editor/common/standaloneStrings.js +10 -10
  97. package/esm/vs/editor/common/viewLayout/viewLayout.js +15 -15
  98. package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  99. package/esm/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +1 -1
  100. package/esm/vs/editor/common/viewModel/viewModelImpl.js +14 -14
  101. package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  102. package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  103. package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  104. package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  105. package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +20 -20
  106. package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  107. package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
  108. package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  109. package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  110. package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  111. package/esm/vs/editor/contrib/codeAction/browser/codeActionModel.js +1 -1
  112. package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  113. package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  114. package/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js +3 -3
  115. package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  116. package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  117. package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.js +1 -1
  118. package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +2 -2
  119. package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  120. package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +1 -1
  121. package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
  122. package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +12 -12
  123. package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  124. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  125. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +12 -12
  126. package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  127. package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  128. package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  129. package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  130. package/esm/vs/editor/contrib/find/browser/findController.js +17 -17
  131. package/esm/vs/editor/contrib/find/browser/findModel.js +6 -6
  132. package/esm/vs/editor/contrib/find/browser/findWidget.js +32 -32
  133. package/esm/vs/editor/contrib/folding/browser/folding.js +23 -23
  134. package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  135. package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js.map +1 -1
  136. package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  137. package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
  138. package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  139. package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  140. package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  141. package/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +21 -11
  142. package/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js.map +1 -1
  143. package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +2 -2
  144. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +4 -4
  145. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  146. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  147. package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  148. package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  149. package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  150. package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  151. package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  152. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +10 -10
  153. package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +6 -6
  154. package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  155. package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  156. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +5 -5
  157. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  158. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +2 -2
  159. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
  160. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
  161. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +2 -2
  162. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +1 -1
  163. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  164. package/esm/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +1 -1
  165. package/esm/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +5 -5
  166. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
  167. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +4 -1
  168. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js.map +1 -1
  169. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
  170. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +2 -0
  171. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js.map +1 -1
  172. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +1 -0
  173. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js.map +1 -1
  174. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +22 -21
  175. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js.map +1 -1
  176. package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  177. package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  178. package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +32 -32
  179. package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +4 -4
  180. package/esm/vs/editor/contrib/links/browser/links.js +11 -11
  181. package/esm/vs/editor/contrib/links/browser/links.js.map +1 -1
  182. package/esm/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js +1 -1
  183. package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
  184. package/esm/vs/editor/contrib/middleScroll/browser/middleScrollController.js +1 -1
  185. package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +36 -36
  186. package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  187. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +3 -3
  188. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  189. package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  190. package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  191. package/esm/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js +1 -1
  192. package/esm/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js.map +1 -1
  193. package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
  194. package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  195. package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +3 -3
  196. package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
  197. package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
  198. package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +5 -5
  199. package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  200. package/esm/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
  201. package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  202. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  203. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +17 -24
  204. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js.map +1 -1
  205. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +1 -1
  206. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +12 -3
  207. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js.map +1 -1
  208. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +5 -5
  209. package/esm/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  210. package/esm/vs/editor/contrib/suggest/browser/suggestController.js +14 -14
  211. package/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +2 -2
  212. package/esm/vs/editor/contrib/suggest/browser/suggestModel.js +11 -11
  213. package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +23 -23
  214. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +5 -5
  215. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +5 -5
  216. package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +3 -3
  217. package/esm/vs/editor/contrib/suggest/browser/wordDistance.js +1 -1
  218. package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  219. package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  220. package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  221. package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  222. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +27 -27
  223. package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +9 -9
  224. package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  225. package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +7 -7
  226. package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +4 -4
  227. package/esm/vs/editor/editor.api.d.ts +93 -85
  228. package/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +1 -1
  229. package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  230. package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
  231. package/esm/vs/platform/actionWidget/browser/actionList.js +4 -4
  232. package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  233. package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  234. package/esm/vs/platform/actions/browser/toolbar.js +2 -2
  235. package/esm/vs/platform/actions/common/menuService.js +2 -2
  236. package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
  237. package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  238. package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
  239. package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
  240. package/esm/vs/platform/contextkey/common/scanner.js +5 -5
  241. package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  242. package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  243. package/esm/vs/platform/list/browser/listService.js +27 -27
  244. package/esm/vs/platform/markers/common/markerService.js +2 -2
  245. package/esm/vs/platform/markers/common/markers.js +6 -6
  246. package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +7 -7
  247. package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
  248. package/esm/vs/platform/quickinput/browser/quickInput.js +21 -13
  249. package/esm/vs/platform/quickinput/browser/quickInput.js.map +1 -1
  250. package/esm/vs/platform/quickinput/browser/quickInputActions.js +42 -8
  251. package/esm/vs/platform/quickinput/browser/quickInputActions.js.map +1 -1
  252. package/esm/vs/platform/quickinput/browser/quickInputController.js +10 -64
  253. package/esm/vs/platform/quickinput/browser/quickInputController.js.map +1 -1
  254. package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
  255. package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  256. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  257. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeController.js +12 -0
  258. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeController.js.map +1 -1
  259. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +11 -5
  260. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js.map +1 -1
  261. package/esm/vs/platform/quickinput/common/quickInput.js.map +1 -1
  262. package/esm/vs/platform/theme/common/colorUtils.js +2 -2
  263. package/esm/vs/platform/theme/common/colors/baseColors.js +17 -17
  264. package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
  265. package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
  266. package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
  267. package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
  268. package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
  269. package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
  270. package/esm/vs/platform/theme/common/colors/miscColors.js +15 -15
  271. package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  272. package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
  273. package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
  274. package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  275. package/esm/vs/platform/workspace/common/workspace.js +1 -1
  276. package/monaco.d.ts +93 -85
  277. package/package.json +6 -2
  278. package/version.txt +1 -1
@@ -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(1207, 'Background color for the original text in inline edits.'), true);
12
- export const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(1208, 'Background color for the modified text in inline edits.'), true);
13
- export const originalChangedLineBackgroundColor = registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(1209, '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(1210, '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(1208, 'Background color for the original text in inline edits.'), true);
12
+ export const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(1209, 'Background color for the modified text in inline edits.'), true);
13
+ export const originalChangedLineBackgroundColor = registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(1210, '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(1211, '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(1211, '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(1212, 'Overlay color for the changed text in the modified text of inline edits.'), true);
20
+ }, localize(1212, '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(1213, '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(1213, 'Foreground color for the primary inline edit gutter indicator.'));
24
- export const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(1214, 'Border color for the primary inline edit gutter indicator.'));
23
+ export const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(1214, 'Foreground color for the primary inline edit gutter indicator.'));
24
+ export const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(1215, '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(1215, 'Background color for the primary inline edit gutter indicator.'));
31
- export const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(1216, 'Foreground color for the secondary inline edit gutter indicator.'));
32
- export const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(1217, 'Border color for the secondary inline edit gutter indicator.'));
33
- export const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(1218, 'Background color for the secondary inline edit gutter indicator.'));
34
- export const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(1219, 'Foreground color for the successful inline edit gutter indicator.'));
35
- export const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(1220, 'Border color for the successful inline edit gutter indicator.'));
36
- export const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, localize(1221, 'Background color for the successful inline edit gutter indicator.'));
30
+ }, localize(1216, 'Background color for the primary inline edit gutter indicator.'));
31
+ export const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(1217, 'Foreground color for the secondary inline edit gutter indicator.'));
32
+ export const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(1218, 'Border color for the secondary inline edit gutter indicator.'));
33
+ export const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(1219, 'Background color for the secondary inline edit gutter indicator.'));
34
+ export const inlineEditIndicatorsuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(1220, 'Foreground color for the successful inline edit gutter indicator.'));
35
+ export const inlineEditIndicatorsuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(1221, 'Border color for the successful inline edit gutter indicator.'));
36
+ export const inlineEditIndicatorsuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorsuccessfulBorder, localize(1222, '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(1222, 'Background color for the inline edit gutter indicator.'));
42
+ }, localize(1223, '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(1223, 'Border color for the original text in inline edits.'));
49
+ }, localize(1224, '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(1224, 'Border color for the modified text in inline edits.'));
55
+ }, localize(1225, '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(1225, 'Modified border color for the inline edits widget when tab will accept it.'));
61
+ }, localize(1226, '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(1226, 'Original border color for the inline edits widget over the original text when tab will accept it.'));
67
+ }, localize(1227, '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
  }
@@ -80,12 +80,13 @@ export function getEditorBlendedColor(colorIdentifier, themeService) {
80
80
  color = colorIdentifier.map((identifier, reader) => observeColor(identifier, themeService).read(reader));
81
81
  }
82
82
  const backgroundColor = observeColor(editorBackground, themeService);
83
- return color.map((c, reader) => c.makeOpaque(backgroundColor.read(reader)));
83
+ return color.map((c, reader) => /** @description makeOpaque */ c.makeOpaque(backgroundColor.read(reader)));
84
84
  }
85
85
  export function observeColor(colorIdentifier, themeService) {
86
86
  return observableFromEventOpts({
87
87
  owner: { observeColor: colorIdentifier },
88
88
  equalsFn: (a, b) => a.equals(b),
89
+ debugName: () => `observeColor(${colorIdentifier})`
89
90
  }, themeService.onDidColorThemeChange, () => {
90
91
  const color = themeService.getColorTheme().getColor(colorIdentifier);
91
92
  if (!color) {
@@ -1 +1 @@
1
- {"version":3,"sources":["vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAGhG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAe,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AACnO,OAAO,EAAmB,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uDAAuD,CAAC;AAE5H,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CACnD,+BAA+B,EAC/B,WAAW,CAAC,WAAW,EAAE,GAAG,CAAC,EAC7B,QAAQ,CAAC,IAA+B,EAAE,yDAAyD,CAAC,EACpG,IAAI,CACJ,CAAC;AACF,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CACnD,+BAA+B,EAC/B,WAAW,CAAC,YAAY,EAAE,GAAG,CAAC,EAC9B,QAAQ,CAAC,IAA+B,EAAE,yDAAyD,CAAC,EACpG,IAAI,CACJ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AAQ,EAAE,CAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;KAC7C,EACD,YAAY,CAAC,qBAAqB,EAClC,GAAG,EAAE;QACJ,MAAM,KAAK,GAAG,YAAY,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QACrE,IAAI,CAAC,KAAK,EAAE,CAAC;YACZ,MAAM,IAAI,kBAAkB,CAAC,kBAAkB,eAAe,EAAE,CAAC,CAAC;QACnE,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC,CACD,CAAC;AACH,CAAC","file":"theme.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 { Color } from '../../../../../../base/common/color.js';\nimport { BugIndicatingError } from '../../../../../../base/common/errors.js';\nimport { IObservable, observableFromEventOpts } from '../../../../../../base/common/observable.js';\nimport { localize } from '../../../../../../nls.js';\nimport { buttonBackground, buttonForeground, buttonSecondaryBackground, buttonSecondaryForeground, diffInserted, diffInsertedLine, diffRemoved, editorBackground } from '../../../../../../platform/theme/common/colorRegistry.js';\nimport { ColorIdentifier, darken, registerColor, transparent } from '../../../../../../platform/theme/common/colorUtils.js';\nimport { IThemeService } from '../../../../../../platform/theme/common/themeService.js';\nimport { InlineEditTabAction } from './inlineEditsViewInterface.js';\n\nexport const originalBackgroundColor = registerColor(\n\t'inlineEdit.originalBackground',\n\ttransparent(diffRemoved, 0.2),\n\tlocalize('inlineEdit.originalBackground', 'Background color for the original text in inline edits.'),\n\ttrue\n);\nexport const modifiedBackgroundColor = registerColor(\n\t'inlineEdit.modifiedBackground',\n\ttransparent(diffInserted, 0.3),\n\tlocalize('inlineEdit.modifiedBackground', 'Background color for the modified text in inline edits.'),\n\ttrue\n);\n\nexport const originalChangedLineBackgroundColor = registerColor(\n\t'inlineEdit.originalChangedLineBackground',\n\ttransparent(diffRemoved, 0.8),\n\tlocalize('inlineEdit.originalChangedLineBackground', 'Background color for the changed lines in the original text of inline edits.'),\n\ttrue\n);\n\nexport const originalChangedTextOverlayColor = registerColor(\n\t'inlineEdit.originalChangedTextBackground',\n\ttransparent(diffRemoved, 0.8),\n\tlocalize('inlineEdit.originalChangedTextBackground', 'Overlay color for the changed text in the original text of inline edits.'),\n\ttrue\n);\n\nexport const modifiedChangedLineBackgroundColor = registerColor(\n\t'inlineEdit.modifiedChangedLineBackground',\n\t{\n\t\tlight: transparent(diffInsertedLine, 0.7),\n\t\tdark: transparent(diffInsertedLine, 0.7),\n\t\thcDark: diffInsertedLine,\n\t\thcLight: diffInsertedLine\n\t},\n\tlocalize('inlineEdit.modifiedChangedLineBackground', 'Background color for the changed lines in the modified text of inline edits.'),\n\ttrue\n);\n\nexport const modifiedChangedTextOverlayColor = registerColor(\n\t'inlineEdit.modifiedChangedTextBackground',\n\ttransparent(diffInserted, 0.7),\n\tlocalize('inlineEdit.modifiedChangedTextBackground', 'Overlay color for the changed text in the modified text of inline edits.'),\n\ttrue\n);\n\n// ------- GUTTER INDICATOR -------\n\nexport const inlineEditIndicatorPrimaryForeground = registerColor(\n\t'inlineEdit.gutterIndicator.primaryForeground',\n\tbuttonForeground,\n\tlocalize('inlineEdit.gutterIndicator.primaryForeground', 'Foreground color for the primary inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorPrimaryBorder = registerColor(\n\t'inlineEdit.gutterIndicator.primaryBorder',\n\tbuttonBackground,\n\tlocalize('inlineEdit.gutterIndicator.primaryBorder', 'Border color for the primary inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorPrimaryBackground = registerColor(\n\t'inlineEdit.gutterIndicator.primaryBackground',\n\t{\n\t\tlight: transparent(inlineEditIndicatorPrimaryBorder, 0.5),\n\t\tdark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),\n\t\thcDark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),\n\t\thcLight: transparent(inlineEditIndicatorPrimaryBorder, 0.5),\n\t},\n\tlocalize('inlineEdit.gutterIndicator.primaryBackground', 'Background color for the primary inline edit gutter indicator.')\n);\n\nexport const inlineEditIndicatorSecondaryForeground = registerColor(\n\t'inlineEdit.gutterIndicator.secondaryForeground',\n\tbuttonSecondaryForeground,\n\tlocalize('inlineEdit.gutterIndicator.secondaryForeground', 'Foreground color for the secondary inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorSecondaryBorder = registerColor(\n\t'inlineEdit.gutterIndicator.secondaryBorder',\n\tbuttonSecondaryBackground,\n\tlocalize('inlineEdit.gutterIndicator.secondaryBorder', 'Border color for the secondary inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorSecondaryBackground = registerColor(\n\t'inlineEdit.gutterIndicator.secondaryBackground',\n\tinlineEditIndicatorSecondaryBorder,\n\tlocalize('inlineEdit.gutterIndicator.secondaryBackground', 'Background color for the secondary inline edit gutter indicator.')\n);\n\nexport const inlineEditIndicatorsuccessfulForeground = registerColor(\n\t'inlineEdit.gutterIndicator.successfulForeground',\n\tbuttonForeground,\n\tlocalize('inlineEdit.gutterIndicator.successfulForeground', 'Foreground color for the successful inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorsuccessfulBorder = registerColor(\n\t'inlineEdit.gutterIndicator.successfulBorder',\n\tbuttonBackground,\n\tlocalize('inlineEdit.gutterIndicator.successfulBorder', 'Border color for the successful inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorsuccessfulBackground = registerColor(\n\t'inlineEdit.gutterIndicator.successfulBackground',\n\tinlineEditIndicatorsuccessfulBorder,\n\tlocalize('inlineEdit.gutterIndicator.successfulBackground', 'Background color for the successful inline edit gutter indicator.')\n);\n\nexport const inlineEditIndicatorBackground = registerColor(\n\t'inlineEdit.gutterIndicator.background',\n\t{\n\t\thcDark: transparent('tab.inactiveBackground', 0.5),\n\t\thcLight: transparent('tab.inactiveBackground', 0.5),\n\t\tdark: transparent('tab.inactiveBackground', 0.5),\n\t\tlight: '#5f5f5f18',\n\t},\n\tlocalize('inlineEdit.gutterIndicator.background', 'Background color for the inline edit gutter indicator.')\n);\n\n// ------- BORDER COLORS -------\n\nconst originalBorder = registerColor(\n\t'inlineEdit.originalBorder',\n\t{\n\t\tlight: diffRemoved,\n\t\tdark: diffRemoved,\n\t\thcDark: diffRemoved,\n\t\thcLight: diffRemoved\n\t},\n\tlocalize('inlineEdit.originalBorder', 'Border color for the original text in inline edits.')\n);\n\nconst modifiedBorder = registerColor(\n\t'inlineEdit.modifiedBorder',\n\t{\n\t\tlight: darken(diffInserted, 0.6),\n\t\tdark: diffInserted,\n\t\thcDark: diffInserted,\n\t\thcLight: diffInserted\n\t},\n\tlocalize('inlineEdit.modifiedBorder', 'Border color for the modified text in inline edits.')\n);\n\nconst tabWillAcceptModifiedBorder = registerColor(\n\t'inlineEdit.tabWillAcceptModifiedBorder',\n\t{\n\t\tlight: darken(modifiedBorder, 0),\n\t\tdark: darken(modifiedBorder, 0),\n\t\thcDark: darken(modifiedBorder, 0),\n\t\thcLight: darken(modifiedBorder, 0)\n\t},\n\tlocalize('inlineEdit.tabWillAcceptModifiedBorder', 'Modified border color for the inline edits widget when tab will accept it.')\n);\n\nconst tabWillAcceptOriginalBorder = registerColor(\n\t'inlineEdit.tabWillAcceptOriginalBorder',\n\t{\n\t\tlight: darken(originalBorder, 0),\n\t\tdark: darken(originalBorder, 0),\n\t\thcDark: darken(originalBorder, 0),\n\t\thcLight: darken(originalBorder, 0)\n\t},\n\tlocalize('inlineEdit.tabWillAcceptOriginalBorder', 'Original border color for the inline edits widget over the original text when tab will accept it.')\n);\n\nexport function getModifiedBorderColor(tabAction: IObservable<InlineEditTabAction>): IObservable<string> {\n\treturn tabAction.map(a => a === InlineEditTabAction.Accept ? tabWillAcceptModifiedBorder : modifiedBorder);\n}\n\nexport function getOriginalBorderColor(tabAction: IObservable<InlineEditTabAction>): IObservable<string> {\n\treturn tabAction.map(a => a === InlineEditTabAction.Accept ? tabWillAcceptOriginalBorder : originalBorder);\n}\n\nexport function getEditorBlendedColor(colorIdentifier: ColorIdentifier | IObservable<ColorIdentifier>, themeService: IThemeService): IObservable<Color> {\n\tlet color: IObservable<Color>;\n\tif (typeof colorIdentifier === 'string') {\n\t\tcolor = observeColor(colorIdentifier, themeService);\n\t} else {\n\t\tcolor = colorIdentifier.map((identifier, reader) => observeColor(identifier, themeService).read(reader));\n\t}\n\n\tconst backgroundColor = observeColor(editorBackground, themeService);\n\n\treturn color.map((c, reader) => c.makeOpaque(backgroundColor.read(reader)));\n}\n\nexport function observeColor(colorIdentifier: ColorIdentifier, themeService: IThemeService): IObservable<Color> {\n\treturn observableFromEventOpts(\n\t\t{\n\t\t\towner: { observeColor: colorIdentifier },\n\t\t\tequalsFn: (a: Color, b: Color) => a.equals(b),\n\t\t},\n\t\tthemeService.onDidColorThemeChange,\n\t\t() => {\n\t\t\tconst color = themeService.getColorTheme().getColor(colorIdentifier);\n\t\t\tif (!color) {\n\t\t\t\tthrow new BugIndicatingError(`Missing color: ${colorIdentifier}`);\n\t\t\t}\n\t\t\treturn color;\n\t\t}\n\t);\n}\n"]}
1
+ {"version":3,"sources":["vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAGhG,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAe,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AACnO,OAAO,EAAmB,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uDAAuD,CAAC;AAE5H,OAAO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,MAAM,eAAe,GAAG,YAAY,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAErE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,8BAA8B,CAAC,CAAC,CAAC,UAAU,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAC5G,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,eAAgC,EAAE,YAA2B;IACzF,OAAO,uBAAuB,CAC7B;QACC,KAAK,EAAE,EAAE,YAAY,EAAE,eAAe,EAAE;QACxC,QAAQ,EAAE,CAAC,CAAQ,EAAE,CAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;QAC7C,SAAS,EAAE,GAAG,EAAE,CAAC,gBAAgB,eAAe,GAAG;KACnD,EACD,YAAY,CAAC,qBAAqB,EAClC,GAAG,EAAE;QACJ,MAAM,KAAK,GAAG,YAAY,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QACrE,IAAI,CAAC,KAAK,EAAE,CAAC;YACZ,MAAM,IAAI,kBAAkB,CAAC,kBAAkB,eAAe,EAAE,CAAC,CAAC;QACnE,CAAC;QACD,OAAO,KAAK,CAAC;IACd,CAAC,CACD,CAAC;AACH,CAAC","file":"theme.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 { Color } from '../../../../../../base/common/color.js';\nimport { BugIndicatingError } from '../../../../../../base/common/errors.js';\nimport { IObservable, observableFromEventOpts } from '../../../../../../base/common/observable.js';\nimport { localize } from '../../../../../../nls.js';\nimport { buttonBackground, buttonForeground, buttonSecondaryBackground, buttonSecondaryForeground, diffInserted, diffInsertedLine, diffRemoved, editorBackground } from '../../../../../../platform/theme/common/colorRegistry.js';\nimport { ColorIdentifier, darken, registerColor, transparent } from '../../../../../../platform/theme/common/colorUtils.js';\nimport { IThemeService } from '../../../../../../platform/theme/common/themeService.js';\nimport { InlineEditTabAction } from './inlineEditsViewInterface.js';\n\nexport const originalBackgroundColor = registerColor(\n\t'inlineEdit.originalBackground',\n\ttransparent(diffRemoved, 0.2),\n\tlocalize('inlineEdit.originalBackground', 'Background color for the original text in inline edits.'),\n\ttrue\n);\nexport const modifiedBackgroundColor = registerColor(\n\t'inlineEdit.modifiedBackground',\n\ttransparent(diffInserted, 0.3),\n\tlocalize('inlineEdit.modifiedBackground', 'Background color for the modified text in inline edits.'),\n\ttrue\n);\n\nexport const originalChangedLineBackgroundColor = registerColor(\n\t'inlineEdit.originalChangedLineBackground',\n\ttransparent(diffRemoved, 0.8),\n\tlocalize('inlineEdit.originalChangedLineBackground', 'Background color for the changed lines in the original text of inline edits.'),\n\ttrue\n);\n\nexport const originalChangedTextOverlayColor = registerColor(\n\t'inlineEdit.originalChangedTextBackground',\n\ttransparent(diffRemoved, 0.8),\n\tlocalize('inlineEdit.originalChangedTextBackground', 'Overlay color for the changed text in the original text of inline edits.'),\n\ttrue\n);\n\nexport const modifiedChangedLineBackgroundColor = registerColor(\n\t'inlineEdit.modifiedChangedLineBackground',\n\t{\n\t\tlight: transparent(diffInsertedLine, 0.7),\n\t\tdark: transparent(diffInsertedLine, 0.7),\n\t\thcDark: diffInsertedLine,\n\t\thcLight: diffInsertedLine\n\t},\n\tlocalize('inlineEdit.modifiedChangedLineBackground', 'Background color for the changed lines in the modified text of inline edits.'),\n\ttrue\n);\n\nexport const modifiedChangedTextOverlayColor = registerColor(\n\t'inlineEdit.modifiedChangedTextBackground',\n\ttransparent(diffInserted, 0.7),\n\tlocalize('inlineEdit.modifiedChangedTextBackground', 'Overlay color for the changed text in the modified text of inline edits.'),\n\ttrue\n);\n\n// ------- GUTTER INDICATOR -------\n\nexport const inlineEditIndicatorPrimaryForeground = registerColor(\n\t'inlineEdit.gutterIndicator.primaryForeground',\n\tbuttonForeground,\n\tlocalize('inlineEdit.gutterIndicator.primaryForeground', 'Foreground color for the primary inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorPrimaryBorder = registerColor(\n\t'inlineEdit.gutterIndicator.primaryBorder',\n\tbuttonBackground,\n\tlocalize('inlineEdit.gutterIndicator.primaryBorder', 'Border color for the primary inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorPrimaryBackground = registerColor(\n\t'inlineEdit.gutterIndicator.primaryBackground',\n\t{\n\t\tlight: transparent(inlineEditIndicatorPrimaryBorder, 0.5),\n\t\tdark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),\n\t\thcDark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),\n\t\thcLight: transparent(inlineEditIndicatorPrimaryBorder, 0.5),\n\t},\n\tlocalize('inlineEdit.gutterIndicator.primaryBackground', 'Background color for the primary inline edit gutter indicator.')\n);\n\nexport const inlineEditIndicatorSecondaryForeground = registerColor(\n\t'inlineEdit.gutterIndicator.secondaryForeground',\n\tbuttonSecondaryForeground,\n\tlocalize('inlineEdit.gutterIndicator.secondaryForeground', 'Foreground color for the secondary inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorSecondaryBorder = registerColor(\n\t'inlineEdit.gutterIndicator.secondaryBorder',\n\tbuttonSecondaryBackground,\n\tlocalize('inlineEdit.gutterIndicator.secondaryBorder', 'Border color for the secondary inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorSecondaryBackground = registerColor(\n\t'inlineEdit.gutterIndicator.secondaryBackground',\n\tinlineEditIndicatorSecondaryBorder,\n\tlocalize('inlineEdit.gutterIndicator.secondaryBackground', 'Background color for the secondary inline edit gutter indicator.')\n);\n\nexport const inlineEditIndicatorsuccessfulForeground = registerColor(\n\t'inlineEdit.gutterIndicator.successfulForeground',\n\tbuttonForeground,\n\tlocalize('inlineEdit.gutterIndicator.successfulForeground', 'Foreground color for the successful inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorsuccessfulBorder = registerColor(\n\t'inlineEdit.gutterIndicator.successfulBorder',\n\tbuttonBackground,\n\tlocalize('inlineEdit.gutterIndicator.successfulBorder', 'Border color for the successful inline edit gutter indicator.')\n);\nexport const inlineEditIndicatorsuccessfulBackground = registerColor(\n\t'inlineEdit.gutterIndicator.successfulBackground',\n\tinlineEditIndicatorsuccessfulBorder,\n\tlocalize('inlineEdit.gutterIndicator.successfulBackground', 'Background color for the successful inline edit gutter indicator.')\n);\n\nexport const inlineEditIndicatorBackground = registerColor(\n\t'inlineEdit.gutterIndicator.background',\n\t{\n\t\thcDark: transparent('tab.inactiveBackground', 0.5),\n\t\thcLight: transparent('tab.inactiveBackground', 0.5),\n\t\tdark: transparent('tab.inactiveBackground', 0.5),\n\t\tlight: '#5f5f5f18',\n\t},\n\tlocalize('inlineEdit.gutterIndicator.background', 'Background color for the inline edit gutter indicator.')\n);\n\n// ------- BORDER COLORS -------\n\nconst originalBorder = registerColor(\n\t'inlineEdit.originalBorder',\n\t{\n\t\tlight: diffRemoved,\n\t\tdark: diffRemoved,\n\t\thcDark: diffRemoved,\n\t\thcLight: diffRemoved\n\t},\n\tlocalize('inlineEdit.originalBorder', 'Border color for the original text in inline edits.')\n);\n\nconst modifiedBorder = registerColor(\n\t'inlineEdit.modifiedBorder',\n\t{\n\t\tlight: darken(diffInserted, 0.6),\n\t\tdark: diffInserted,\n\t\thcDark: diffInserted,\n\t\thcLight: diffInserted\n\t},\n\tlocalize('inlineEdit.modifiedBorder', 'Border color for the modified text in inline edits.')\n);\n\nconst tabWillAcceptModifiedBorder = registerColor(\n\t'inlineEdit.tabWillAcceptModifiedBorder',\n\t{\n\t\tlight: darken(modifiedBorder, 0),\n\t\tdark: darken(modifiedBorder, 0),\n\t\thcDark: darken(modifiedBorder, 0),\n\t\thcLight: darken(modifiedBorder, 0)\n\t},\n\tlocalize('inlineEdit.tabWillAcceptModifiedBorder', 'Modified border color for the inline edits widget when tab will accept it.')\n);\n\nconst tabWillAcceptOriginalBorder = registerColor(\n\t'inlineEdit.tabWillAcceptOriginalBorder',\n\t{\n\t\tlight: darken(originalBorder, 0),\n\t\tdark: darken(originalBorder, 0),\n\t\thcDark: darken(originalBorder, 0),\n\t\thcLight: darken(originalBorder, 0)\n\t},\n\tlocalize('inlineEdit.tabWillAcceptOriginalBorder', 'Original border color for the inline edits widget over the original text when tab will accept it.')\n);\n\nexport function getModifiedBorderColor(tabAction: IObservable<InlineEditTabAction>): IObservable<string> {\n\treturn tabAction.map(a => a === InlineEditTabAction.Accept ? tabWillAcceptModifiedBorder : modifiedBorder);\n}\n\nexport function getOriginalBorderColor(tabAction: IObservable<InlineEditTabAction>): IObservable<string> {\n\treturn tabAction.map(a => a === InlineEditTabAction.Accept ? tabWillAcceptOriginalBorder : originalBorder);\n}\n\nexport function getEditorBlendedColor(colorIdentifier: ColorIdentifier | IObservable<ColorIdentifier>, themeService: IThemeService): IObservable<Color> {\n\tlet color: IObservable<Color>;\n\tif (typeof colorIdentifier === 'string') {\n\t\tcolor = observeColor(colorIdentifier, themeService);\n\t} else {\n\t\tcolor = colorIdentifier.map((identifier, reader) => observeColor(identifier, themeService).read(reader));\n\t}\n\n\tconst backgroundColor = observeColor(editorBackground, themeService);\n\n\treturn color.map((c, reader) => /** @description makeOpaque */ c.makeOpaque(backgroundColor.read(reader)));\n}\n\nexport function observeColor(colorIdentifier: ColorIdentifier, themeService: IThemeService): IObservable<Color> {\n\treturn observableFromEventOpts(\n\t\t{\n\t\t\towner: { observeColor: colorIdentifier },\n\t\t\tequalsFn: (a: Color, b: Color) => a.equals(b),\n\t\t\tdebugName: () => `observeColor(${colorIdentifier})`\n\t\t},\n\t\tthemeService.onDidColorThemeChange,\n\t\t() => {\n\t\t\tconst color = themeService.getColorTheme().getColor(colorIdentifier);\n\t\t\tif (!color) {\n\t\t\t\tthrow new BugIndicatingError(`Missing color: ${colorIdentifier}`);\n\t\t\t}\n\t\t\treturn color;\n\t\t}\n\t);\n}\n"]}
@@ -11,7 +11,7 @@ export class InsertFinalNewLineAction extends EditorAction {
11
11
  constructor() {
12
12
  super({
13
13
  id: InsertFinalNewLineAction.ID,
14
- label: nls.localize2(1229, "Insert Final New Line"),
14
+ label: nls.localize2(1230, "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(1230, "Expand Line Selection"),
13
+ label: nls.localize2(1231, "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(1236, "Copy Line Up"),
66
+ label: nls.localize2(1237, "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(1231, "&&Copy Line Up"),
77
+ title: nls.localize(1232, "&&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(1237, "Copy Line Down"),
87
+ label: nls.localize2(1238, "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(1232, "Co&&py Line Down"),
98
+ title: nls.localize(1233, "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(1238, "Duplicate Selection"),
108
+ label: nls.localize2(1239, "Duplicate Selection"),
109
109
  precondition: EditorContextKeys.writable,
110
110
  menuOpts: {
111
111
  menuId: MenuId.MenubarSelectionMenu,
112
112
  group: '2_line',
113
- title: nls.localize(1233, "&&Duplicate Selection"),
113
+ title: nls.localize(1234, "&&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(1239, "Move Line Up"),
162
+ label: nls.localize2(1240, "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(1234, "Mo&&ve Line Up"),
173
+ title: nls.localize(1235, "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(1240, "Move Line Down"),
183
+ label: nls.localize2(1241, "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(1235, "Move &&Line Down"),
194
+ title: nls.localize(1236, "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(1241, "Sort Lines Ascending"),
233
+ label: nls.localize2(1242, "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(1242, "Sort Lines Descending"),
242
+ label: nls.localize2(1243, "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(1243, "Delete Duplicate Lines"),
251
+ label: nls.localize2(1244, "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(1244, "Reverse lines"),
300
+ label: nls.localize2(1245, "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(1245, "Trim Trailing Whitespace"),
366
+ label: nls.localize2(1246, "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(1246, "Delete Line"),
400
+ label: nls.localize2(1247, "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(1247, "Indent Line"),
488
+ label: nls.localize2(1248, "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(1248, "Outdent Line"),
511
+ label: nls.localize2(1249, "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(1249, "Insert Line Above"),
528
+ label: nls.localize2(1250, "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(1250, "Insert Line Below"),
550
+ label: nls.localize2(1251, "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(1251, "Delete All Left"),
601
+ label: nls.localize2(1252, "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(1252, "Delete All Right"),
670
+ label: nls.localize2(1253, "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(1253, "Join Lines"),
727
+ label: nls.localize2(1254, "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(1254, "Transpose Characters around the Cursor"),
868
+ label: nls.localize2(1255, "Transpose Characters around the Cursor"),
869
869
  precondition: EditorContextKeys.writable
870
870
  });
871
871
  }
@@ -917,7 +917,7 @@ export class AbstractCaseAction extends EditorAction {
917
917
  if (model === null) {
918
918
  return;
919
919
  }
920
- const wordSeparators = editor.getOption(147 /* EditorOption.wordSeparators */);
920
+ const wordSeparators = editor.getOption(148 /* EditorOption.wordSeparators */);
921
921
  const textEdits = [];
922
922
  for (const selection of selections) {
923
923
  if (selection.isEmpty()) {
@@ -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(1255, "Transform to Uppercase"),
947
+ label: nls.localize2(1256, "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(1256, "Transform to Lowercase"),
959
+ label: nls.localize2(1257, "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(1257, "Transform to Title Case"),
995
+ label: nls.localize2(1258, "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(1258, "Transform to Snake Case"),
1016
+ label: nls.localize2(1259, "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(1259, "Transform to Camel Case"),
1040
+ label: nls.localize2(1260, "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(1260, "Transform to Pascal Case"),
1063
+ label: nls.localize2(1261, "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(1261, 'Transform to Kebab Case'),
1095
+ label: nls.localize2(1262, 'Transform to Kebab Case'),
1096
1096
  precondition: EditorContextKeys.writable
1097
1097
  });
1098
1098
  }
@@ -70,7 +70,7 @@ let LinkedEditingContribution = class LinkedEditingContribution extends Disposab
70
70
  this._currentRequestModelVersion = null;
71
71
  this._register(this._editor.onDidChangeModel(() => this.reinitialize(true)));
72
72
  this._register(this._editor.onDidChangeConfiguration(e => {
73
- if (e.hasChanged(78 /* EditorOption.linkedEditing */) || e.hasChanged(105 /* EditorOption.renameOnType */)) {
73
+ if (e.hasChanged(78 /* EditorOption.linkedEditing */) || e.hasChanged(106 /* EditorOption.renameOnType */)) {
74
74
  this.reinitialize(false);
75
75
  }
76
76
  }));
@@ -80,7 +80,7 @@ let LinkedEditingContribution = class LinkedEditingContribution extends Disposab
80
80
  }
81
81
  reinitialize(forceRefresh) {
82
82
  const model = this._editor.getModel();
83
- const isEnabled = model !== null && (this._editor.getOption(78 /* EditorOption.linkedEditing */) || this._editor.getOption(105 /* EditorOption.renameOnType */)) && this._providers.has(model);
83
+ const isEnabled = model !== null && (this._editor.getOption(78 /* EditorOption.linkedEditing */) || this._editor.getOption(106 /* EditorOption.renameOnType */)) && this._providers.has(model);
84
84
  if (isEnabled === this._enabled && !forceRefresh) {
85
85
  return;
86
86
  }
@@ -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(1263, "Start Linked Editing"),
302
+ label: nls.localize2(1264, "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(1262, '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(1263, '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(1264, 'Failed to open this link because it is not well-formed: {0}', link.url.toString()));
223
+ this.notificationService.warn(nls.localize(1265, '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(1265, 'Failed to open this link because its target is missing.'));
226
+ this.notificationService.warn(nls.localize(1266, 'Failed to open this link because its target is missing.'));
227
227
  }
228
228
  else {
229
229
  onUnexpectedError(err);
@@ -250,7 +250,7 @@ let LinkDetector = class LinkDetector extends Disposable {
250
250
  }
251
251
  isEnabled(mouseEvent, withKey) {
252
252
  return Boolean((mouseEvent.target.type === 6 /* MouseTargetType.CONTENT_TEXT */)
253
- && (mouseEvent.hasTriggerModifier || (withKey && withKey.keyCodeIsTriggerKey)));
253
+ && ((mouseEvent.hasTriggerModifier || (withKey && withKey.keyCodeIsTriggerKey)) || mouseEvent.isMiddleClick && mouseEvent.mouseMiddleClickAction === 'openLink'));
254
254
  }
255
255
  stop() {
256
256
  this.computeLinks.cancel();
@@ -317,15 +317,15 @@ function getHoverMessage(link, useMetaKey) {
317
317
  const label = link.tooltip
318
318
  ? link.tooltip
319
319
  : executeCmd
320
- ? nls.localize(1266, 'Execute command')
321
- : nls.localize(1267, 'Follow link');
320
+ ? nls.localize(1267, 'Execute command')
321
+ : nls.localize(1268, 'Follow link');
322
322
  const kb = useMetaKey
323
323
  ? platform.isMacintosh
324
- ? nls.localize(1268, "cmd + click")
325
- : nls.localize(1269, "ctrl + click")
324
+ ? nls.localize(1269, "cmd + click")
325
+ : nls.localize(1270, "ctrl + click")
326
326
  : platform.isMacintosh
327
- ? nls.localize(1270, "option + click")
328
- : nls.localize(1271, "alt + click");
327
+ ? nls.localize(1271, "option + click")
328
+ : nls.localize(1272, "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(1272, "Execute command {0}", commandId);
336
+ nativeLabel = nls.localize(1273, "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(1273, "Open Link"),
352
+ label: nls.localize2(1274, "Open Link"),
353
353
  precondition: undefined
354
354
  });
355
355
  }