monaco-editor 0.56.0-dev-20260121 → 0.56.0-dev-20260123

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 (331) hide show
  1. package/dev/vs/assets/{css.worker-C1mHXZTT.js → css.worker-ffp49_cC.js} +58 -56
  2. package/dev/vs/assets/{editor.worker-DMuwmZqI.js → editor.worker-waqpqn9S.js} +58 -56
  3. package/dev/vs/assets/{editorWebWorkerMain-BF9MKtzx.js → editorWebWorkerMain-rsQTQBqS.js} +58 -56
  4. package/dev/vs/assets/{html.worker-CnU9mi9l.js → html.worker-B-Dhwg_P.js} +58 -56
  5. package/dev/vs/assets/{json.worker-CnKP0LWf.js → json.worker-Cz-hJJ-X.js} +58 -56
  6. package/dev/vs/assets/{ts.worker-Cw4JXdL0.js → ts.worker-BHSjxfUg.js} +58 -56
  7. package/dev/vs/basic-languages/monaco.contribution.js +18 -18
  8. package/dev/vs/{css.worker-B9TJsr2Z.js → css.worker-DbKG6W5b.js} +2 -2
  9. package/dev/vs/{cssMode-B0VkNrib.js → cssMode-C3CjCC4D.js} +1 -1
  10. package/dev/vs/editor/editor.main.css +20 -49
  11. package/dev/vs/editor/editor.main.js +2 -2
  12. package/dev/vs/editor/editor.worker.js +1 -1
  13. package/dev/vs/{editor-CR18QzPP.js → editor-ByVgNwiX.js} +1232 -1136
  14. package/dev/vs/editor.js +1 -1
  15. package/dev/vs/{editorWorkerHost--0eDLpc-.js → editorWorkerHost-CSCfA6JO.js} +60 -58
  16. package/dev/vs/{freemarker2-Byr9HmH9.js → freemarker2-Bnmb8_zY.js} +1 -1
  17. package/dev/vs/{handlebars-BEVXeROF.js → handlebars-Dc4pj4ST.js} +1 -1
  18. package/dev/vs/{html-CetHjWIf.js → html-Gx48L-1h.js} +1 -1
  19. package/dev/vs/{html.worker-B4TnFQEA.js → html.worker-Q3fLApWB.js} +2 -2
  20. package/dev/vs/{htmlMode-BNKYUVNo.js → htmlMode-C0cIjK2m.js} +1 -1
  21. package/dev/vs/{index-g_7JbDIY.js → index-BmuewTCy.js} +1 -1
  22. package/dev/vs/index.js +1 -1
  23. package/dev/vs/{initialize-Bfvoywyr.js → initialize-J9jkp405.js} +1 -1
  24. package/dev/vs/{javascript-BEgEU725.js → javascript-D0xbuIYt.js} +1 -1
  25. package/dev/vs/{json.worker-C2LEGBju.js → json.worker-Byvb_Y0q.js} +2 -2
  26. package/dev/vs/{jsonMode-CT2UkfFE.js → jsonMode-Dc1J228j.js} +1 -1
  27. package/dev/vs/language/css/css.worker.js +1 -1
  28. package/dev/vs/language/css/monaco.contribution.js +1 -1
  29. package/dev/vs/language/html/html.worker.js +1 -1
  30. package/dev/vs/language/html/monaco.contribution.js +1 -1
  31. package/dev/vs/language/json/json.worker.js +1 -1
  32. package/dev/vs/language/json/monaco.contribution.js +1 -1
  33. package/dev/vs/language/typescript/monaco.contribution.js +1 -1
  34. package/dev/vs/language/typescript/ts.worker.js +1 -1
  35. package/dev/vs/{liquid-D-aiCb1P.js → liquid-BS75ollB.js} +1 -1
  36. package/dev/vs/{lspLanguageFeatures-CE9Occyu.js → lspLanguageFeatures-9tffJ5tN.js} +1 -1
  37. package/dev/vs/{mdx-DchJ8pbq.js → mdx-BafRHPZZ.js} +1 -1
  38. package/dev/vs/{monaco.contribution-CVBrIlxn.js → monaco.contribution-BOrU-t9u.js} +2 -2
  39. package/dev/vs/{monaco.contribution-CZxuzvA9.js → monaco.contribution-BuTPNIwn.js} +2 -2
  40. package/dev/vs/{monaco.contribution-Cw4OdERZ.js → monaco.contribution-D_m9AMAg.js} +2 -2
  41. package/dev/vs/{monaco.contribution-CHqb1dWh.js → monaco.contribution-DhNNHvGu.js} +2 -2
  42. package/dev/vs/nls/lang/cs.js +2 -2
  43. package/dev/vs/nls/lang/de.js +2 -2
  44. package/dev/vs/nls/lang/es.js +2 -2
  45. package/dev/vs/nls/lang/fr.js +2 -2
  46. package/dev/vs/nls/lang/it.js +2 -2
  47. package/dev/vs/nls/lang/ja.js +2 -2
  48. package/dev/vs/nls/lang/ko.js +2 -2
  49. package/dev/vs/nls/lang/pl.js +2 -2
  50. package/dev/vs/nls/lang/pt-br.js +2 -2
  51. package/dev/vs/nls/lang/ru.js +2 -2
  52. package/dev/vs/nls/lang/tr.js +2 -2
  53. package/dev/vs/nls/lang/zh-cn.js +2 -2
  54. package/dev/vs/nls/lang/zh-tw.js +2 -2
  55. package/dev/vs/{python-BCOSaCC8.js → python-D-c3bdyL.js} +1 -1
  56. package/dev/vs/{razor-BM2tZCwj.js → razor-v7al5kd4.js} +1 -1
  57. package/dev/vs/{toggleHighContrast-CLgtrrIB.js → toggleHighContrast-DkOkzJmE.js} +952 -839
  58. package/dev/vs/{ts.worker-CArJhH03.js → ts.worker-D8b1uxsf.js} +2 -2
  59. package/dev/vs/{tsMode-jpkv3SbL.js → tsMode-KTRrMuzt.js} +1 -1
  60. package/dev/vs/{typescript-f8pt88eA.js → typescript-BSiaiq-E.js} +1 -1
  61. package/dev/vs/{workers-zrUx_2Gw.js → workers-CRiEObDp.js} +1 -1
  62. package/dev/vs/{xml-CmSjtiR0.js → xml-CNu5z8S7.js} +1 -1
  63. package/dev/vs/{yaml-PRriLGdw.js → yaml-3Fy2WUAc.js} +1 -1
  64. package/esm/vs/base/browser/markdownRenderer.js +0 -1
  65. package/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  66. package/esm/vs/base/browser/ui/tree/abstractTree.js +15 -2
  67. package/esm/vs/base/common/actions.js +1 -1
  68. package/esm/vs/base/common/codiconsLibrary.js +2 -0
  69. package/esm/vs/base/common/errorMessage.js +6 -6
  70. package/esm/vs/base/common/keybindingLabels.js +20 -20
  71. package/esm/vs/base/common/network.js +0 -2
  72. package/esm/vs/base/common/observableInternal/observables/derivedImpl.js +10 -4
  73. package/esm/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -1
  74. package/esm/vs/editor/browser/controller/editContext/screenReaderUtils.js +4 -4
  75. package/esm/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
  76. package/esm/vs/editor/browser/coreCommands.js +3 -3
  77. package/esm/vs/editor/browser/editorExtensions.js +9 -9
  78. package/esm/vs/editor/browser/gpu/viewGpuContext.js +1 -1
  79. package/esm/vs/editor/browser/observableCodeEditor.js +41 -0
  80. package/esm/vs/editor/browser/services/inlineCompletionsService.js +4 -4
  81. package/esm/vs/editor/browser/services/renameSymbolTrackerService.js +18 -0
  82. package/esm/vs/editor/browser/view.js +3 -0
  83. package/esm/vs/editor/browser/viewParts/viewLines/viewLine.js +14 -0
  84. package/esm/vs/editor/browser/viewParts/viewLines/viewLines.js +7 -0
  85. package/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +8 -2
  86. package/esm/vs/editor/browser/widget/diffEditor/commands.js +12 -12
  87. package/esm/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +14 -14
  88. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
  89. package/esm/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
  90. package/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
  91. package/esm/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
  92. package/esm/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -2
  93. package/esm/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
  94. package/esm/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
  95. package/esm/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
  96. package/esm/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
  97. package/esm/vs/editor/browser/widget/multiDiffEditor/style.css +2 -41
  98. package/esm/vs/editor/common/config/editorConfigurationSchema.js +55 -55
  99. package/esm/vs/editor/common/config/editorOptions.js +410 -410
  100. package/esm/vs/editor/common/core/editorColorRegistry.js +70 -70
  101. package/esm/vs/editor/common/editorContextKeys.js +48 -48
  102. package/esm/vs/editor/common/languages/modesRegistry.js +1 -1
  103. package/esm/vs/editor/common/languages.js +56 -56
  104. package/esm/vs/editor/common/model/editStack.js +1 -1
  105. package/esm/vs/editor/common/standaloneStrings.js +11 -11
  106. package/esm/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  107. package/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  108. package/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  109. package/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  110. package/esm/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  111. package/esm/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
  112. package/esm/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  113. package/esm/vs/editor/contrib/codeAction/browser/codeActionCommands.js +44 -34
  114. package/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js +5 -4
  115. package/esm/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  116. package/esm/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  117. package/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  118. package/esm/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  119. package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  120. package/esm/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  121. package/esm/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
  122. package/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  123. package/esm/vs/editor/contrib/comment/browser/comment.js +6 -6
  124. package/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  125. package/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  126. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  127. package/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
  128. package/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  129. package/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  130. package/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  131. package/esm/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  132. package/esm/vs/editor/contrib/find/browser/findController.js +16 -16
  133. package/esm/vs/editor/contrib/find/browser/findWidget.css +5 -6
  134. package/esm/vs/editor/contrib/find/browser/findWidget.js +26 -26
  135. package/esm/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +2 -1
  136. package/esm/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +55 -47
  137. package/esm/vs/editor/contrib/folding/browser/folding.js +20 -20
  138. package/esm/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  139. package/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  140. package/esm/vs/editor/contrib/format/browser/formatActions.js +2 -2
  141. package/esm/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  142. package/esm/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  143. package/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +40 -40
  144. package/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  145. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  146. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  147. package/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  148. package/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  149. package/esm/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  150. package/esm/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  151. package/esm/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  152. package/esm/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  153. package/esm/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
  154. package/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +7 -7
  155. package/esm/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  156. package/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  157. package/esm/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  158. package/esm/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  159. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
  160. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
  161. package/esm/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
  162. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  163. package/esm/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
  164. package/esm/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +107 -18
  165. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +6 -6
  166. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +1 -1
  167. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +3 -3
  168. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
  169. package/esm/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +2 -8
  170. package/esm/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  171. package/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  172. package/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
  173. package/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  174. package/esm/vs/editor/contrib/links/browser/links.js +10 -10
  175. package/esm/vs/editor/contrib/message/browser/messageController.js +1 -1
  176. package/esm/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  177. package/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  178. package/esm/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  179. package/esm/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  180. package/esm/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  181. package/esm/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +10 -10
  182. package/esm/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
  183. package/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  184. package/esm/vs/editor/contrib/rename/browser/rename.js +11 -11
  185. package/esm/vs/editor/contrib/rename/browser/renameWidget.js +7 -7
  186. package/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  187. package/esm/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  188. package/esm/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  189. package/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  190. package/esm/vs/editor/contrib/suggest/browser/suggest.js +9 -9
  191. package/esm/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
  192. package/esm/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
  193. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  194. package/esm/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  195. package/esm/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  196. package/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  197. package/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  198. package/esm/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  199. package/esm/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  200. package/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  201. package/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  202. package/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  203. package/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  204. package/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
  205. package/esm/vs/editor/standalone/browser/services/standaloneWebWorkerService.js +2 -1
  206. package/esm/vs/editor/standalone/browser/standaloneServices.js +2 -0
  207. package/esm/vs/nls/lang/cs.js +2 -2
  208. package/esm/vs/nls/lang/de.js +2 -2
  209. package/esm/vs/nls/lang/es.js +2 -2
  210. package/esm/vs/nls/lang/fr.js +2 -2
  211. package/esm/vs/nls/lang/it.js +2 -2
  212. package/esm/vs/nls/lang/ja.js +2 -2
  213. package/esm/vs/nls/lang/ko.js +2 -2
  214. package/esm/vs/nls/lang/pl.js +2 -2
  215. package/esm/vs/nls/lang/pt-br.js +2 -2
  216. package/esm/vs/nls/lang/ru.js +2 -2
  217. package/esm/vs/nls/lang/tr.js +2 -2
  218. package/esm/vs/nls/lang/zh-cn.js +2 -2
  219. package/esm/vs/nls/lang/zh-tw.js +2 -2
  220. package/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  221. package/esm/vs/platform/action/common/actionCommonCategories.js +6 -6
  222. package/esm/vs/platform/actionWidget/browser/actionList.js +35 -12
  223. package/esm/vs/platform/actionWidget/browser/actionWidget.css +10 -0
  224. package/esm/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  225. package/esm/vs/platform/actions/browser/menuEntryActionViewItem.js +3 -3
  226. package/esm/vs/platform/actions/browser/toolbar.js +2 -2
  227. package/esm/vs/platform/actions/common/actions.js +2 -0
  228. package/esm/vs/platform/actions/common/menuService.js +2 -2
  229. package/esm/vs/platform/configuration/common/configurationRegistry.js +10 -10
  230. package/esm/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  231. package/esm/vs/platform/contextkey/common/contextkey.js +9 -9
  232. package/esm/vs/platform/contextkey/common/contextkeys.js +9 -9
  233. package/esm/vs/platform/contextkey/common/scanner.js +5 -5
  234. package/esm/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  235. package/esm/vs/platform/hover/browser/hoverWidget.js +1 -1
  236. package/esm/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
  237. package/esm/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
  238. package/esm/vs/platform/list/browser/listService.js +27 -27
  239. package/esm/vs/platform/markers/common/markerService.js +2 -2
  240. package/esm/vs/platform/markers/common/markers.js +6 -6
  241. package/esm/vs/platform/quickinput/browser/commandsQuickAccess.js +8 -8
  242. package/esm/vs/platform/quickinput/browser/helpQuickAccess.js +1 -1
  243. package/esm/vs/platform/quickinput/browser/quickInput.js +10 -10
  244. package/esm/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  245. package/esm/vs/platform/quickinput/browser/quickInputController.js +6 -6
  246. package/esm/vs/platform/quickinput/browser/quickInputList.js +1 -1
  247. package/esm/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  248. package/esm/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  249. package/esm/vs/platform/quickinput/browser/tree/quickTree.js +1 -1
  250. package/esm/vs/platform/theme/common/colorUtils.js +2 -2
  251. package/esm/vs/platform/theme/common/colors/baseColors.js +18 -18
  252. package/esm/vs/platform/theme/common/colors/chartsColors.js +8 -8
  253. package/esm/vs/platform/theme/common/colors/editorColors.js +95 -95
  254. package/esm/vs/platform/theme/common/colors/inputColors.js +47 -47
  255. package/esm/vs/platform/theme/common/colors/listColors.js +36 -36
  256. package/esm/vs/platform/theme/common/colors/menuColors.js +7 -7
  257. package/esm/vs/platform/theme/common/colors/minimapColors.js +11 -11
  258. package/esm/vs/platform/theme/common/colors/miscColors.js +16 -16
  259. package/esm/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  260. package/esm/vs/platform/theme/common/colors/searchColors.js +3 -3
  261. package/esm/vs/platform/theme/common/iconRegistry.js +6 -6
  262. package/esm/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  263. package/esm/vs/platform/workspace/common/workspace.js +1 -1
  264. package/min/vs/assets/{css.worker-57ylMqdQ.js → css.worker-vaqto7sr.js} +1 -1
  265. package/min/vs/assets/{editor.worker-C7rTzOHm.js → editor.worker-BuSZtiLy.js} +1 -1
  266. package/min/vs/assets/{editorWebWorkerMain-CRWuSSWk.js → editorWebWorkerMain-CcySIMs1.js} +1 -1
  267. package/min/vs/assets/{html.worker-DUkJXKh4.js → html.worker-tjoOkh5c.js} +29 -29
  268. package/min/vs/assets/{json.worker-DHFIjIvp.js → json.worker-ChdyNJDo.js} +1 -1
  269. package/min/vs/assets/{ts.worker-CKcSPjM2.js → ts.worker-2vlHj5mS.js} +1 -1
  270. package/min/vs/basic-languages/monaco.contribution.js +1 -1
  271. package/min/vs/css.worker-BZUqk_6e.js +1 -0
  272. package/min/vs/{cssMode-CheCY05R.js → cssMode-EV9AppWM.js} +1 -1
  273. package/min/vs/editor/editor.main.css +1 -1
  274. package/min/vs/editor/editor.main.js +1 -1
  275. package/min/vs/editor/editor.worker.js +1 -1
  276. package/min/vs/{editor-DxYWA3-X.js → editor-CWlwBnTd.js} +100 -100
  277. package/min/vs/editor.js +1 -1
  278. package/min/vs/{editorWorkerHost-DnKHgOKB.js → editorWorkerHost-BdAdaHF2.js} +2 -2
  279. package/min/vs/{freemarker2-C7J7V1Hp.js → freemarker2-CVBBrC8k.js} +1 -1
  280. package/min/vs/{handlebars-DsCar5Ix.js → handlebars-jFcyrSuz.js} +1 -1
  281. package/min/vs/{html-BGLIaUZV.js → html-IMKtsVBe.js} +1 -1
  282. package/min/vs/html.worker-BWiqWL_n.js +1 -0
  283. package/min/vs/{htmlMode-BB6WOoy3.js → htmlMode-GF6ANT1a.js} +1 -1
  284. package/min/vs/{index-BdR0nSqf.js → index-Duco_ua_.js} +1 -1
  285. package/min/vs/index.js +1 -1
  286. package/min/vs/{initialize-BZ6ciHHH.js → initialize-ChT-7fRb.js} +1 -1
  287. package/min/vs/{javascript-CXE3i1eX.js → javascript-CBNkgHAf.js} +1 -1
  288. package/min/vs/json.worker-ByICzyV2.js +1 -0
  289. package/min/vs/{jsonMode-rtaE9alu.js → jsonMode-Dcnh-7Ad.js} +1 -1
  290. package/min/vs/language/css/css.worker.js +1 -1
  291. package/min/vs/language/css/monaco.contribution.js +1 -1
  292. package/min/vs/language/html/html.worker.js +1 -1
  293. package/min/vs/language/html/monaco.contribution.js +1 -1
  294. package/min/vs/language/json/json.worker.js +1 -1
  295. package/min/vs/language/json/monaco.contribution.js +1 -1
  296. package/min/vs/language/typescript/monaco.contribution.js +1 -1
  297. package/min/vs/language/typescript/ts.worker.js +1 -1
  298. package/min/vs/{liquid-CEdn0ovR.js → liquid-_SgSuP3b.js} +1 -1
  299. package/min/vs/{lspLanguageFeatures-CRAjJmzF.js → lspLanguageFeatures-GNn6MJbu.js} +1 -1
  300. package/min/vs/{mdx-DLDMIqnu.js → mdx-Erxbe_-t.js} +1 -1
  301. package/min/vs/{monaco.contribution-C67XgReK.js → monaco.contribution-0dpFCE3L.js} +1 -1
  302. package/min/vs/{monaco.contribution-DjiQkKLa.js → monaco.contribution-BnqxFPvj.js} +1 -1
  303. package/min/vs/{monaco.contribution-BrRAk-VA.js → monaco.contribution-BxCvVJFk.js} +1 -1
  304. package/min/vs/{monaco.contribution-CYT-Sx3l.js → monaco.contribution-CeyPlyhD.js} +1 -1
  305. package/min/vs/nls/lang/cs.js +2 -2
  306. package/min/vs/nls/lang/de.js +2 -2
  307. package/min/vs/nls/lang/es.js +2 -2
  308. package/min/vs/nls/lang/fr.js +2 -2
  309. package/min/vs/nls/lang/it.js +2 -2
  310. package/min/vs/nls/lang/ja.js +2 -2
  311. package/min/vs/nls/lang/ko.js +2 -2
  312. package/min/vs/nls/lang/pl.js +2 -2
  313. package/min/vs/nls/lang/pt-br.js +2 -2
  314. package/min/vs/nls/lang/ru.js +2 -2
  315. package/min/vs/nls/lang/tr.js +2 -2
  316. package/min/vs/nls/lang/zh-cn.js +2 -2
  317. package/min/vs/nls/lang/zh-tw.js +2 -2
  318. package/min/vs/{python-CKbl_I3e.js → python-DzOjdI_x.js} +1 -1
  319. package/min/vs/{razor--RjiPxbd.js → razor-Dwx3J3cB.js} +1 -1
  320. package/min/vs/{toggleHighContrast-BKDMxisH.js → toggleHighContrast-Bg5GLQ5J.js} +32 -32
  321. package/min/vs/ts.worker-GOUX_DXT.js +1 -0
  322. package/min/vs/{tsMode-C48d5M22.js → tsMode-DxnLySbu.js} +1 -1
  323. package/min/vs/{typescript-e7oUhPyX.js → typescript-Blb6Hbmt.js} +1 -1
  324. package/min/vs/{workers-CtpYUoCo.js → workers-BmNNZ7XJ.js} +1 -1
  325. package/min/vs/{xml-tOyfgws7.js → xml-VvrpA2Ly.js} +1 -1
  326. package/min/vs/{yaml-Cmf9NYDf.js → yaml-CsmbXG_T.js} +1 -1
  327. package/package.json +3 -3
  328. package/min/vs/css.worker-CkPP9VjP.js +0 -1
  329. package/min/vs/html.worker-uHOusrcK.js +0 -1
  330. package/min/vs/json.worker-DGsNKzKv.js +0 -1
  331. package/min/vs/ts.worker-DyDnfuDL.js +0 -1
@@ -4,7 +4,7 @@ import { LcsDiff, StringDiffSequence } from '../../../../../base/common/diff/dif
4
4
  import { Disposable } from '../../../../../base/common/lifecycle.js';
5
5
  import { localize } from '../../../../../nls.js';
6
6
  import { ICommandService, CommandsRegistry } from '../../../../../platform/commands/common/commands.js';
7
- import { IBulkEditService } from '../../../../browser/services/bulkEditService.js';
7
+ import { IBulkEditService, ResourceTextEdit } from '../../../../browser/services/bulkEditService.js';
8
8
  import { TextReplacement } from '../../../../common/core/edits/textEdit.js';
9
9
  import { Position } from '../../../../common/core/position.js';
10
10
  import { Range } from '../../../../common/core/range.js';
@@ -15,6 +15,8 @@ import { hasProvider, rawRename } from '../../../rename/browser/rename.js';
15
15
  import { renameSymbolCommandId } from '../controller/commandIds.js';
16
16
  import { InlineSuggestionItem } from './inlineSuggestionItem.js';
17
17
  import { Codicon } from '../../../../../base/common/codicons.js';
18
+ import { IRenameSymbolTrackerService } from '../../../../browser/services/renameSymbolTrackerService.js';
19
+ import { ICodeEditorService } from '../../../../browser/services/codeEditorService.js';
18
20
 
19
21
  /*---------------------------------------------------------------------------------------------
20
22
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -239,16 +241,50 @@ class RenameInferenceEngine {
239
241
  };
240
242
  }
241
243
  }
244
+ class EditorState {
245
+ static create(codeEditorService, textModel) {
246
+ const editor = codeEditorService.getFocusedCodeEditor();
247
+ if (editor === null) {
248
+ return undefined;
249
+ }
250
+ if (editor.getModel() !== textModel) {
251
+ return undefined;
252
+ }
253
+ return new EditorState(editor, textModel.getVersionId());
254
+ }
255
+ constructor(editor, versionId) {
256
+ this.editor = editor;
257
+ this.versionId = versionId;
258
+ }
259
+ equals(other) {
260
+ if (other === undefined) {
261
+ return false;
262
+ }
263
+ return this.editor === other.editor && this.versionId === other.versionId;
264
+ }
265
+ }
242
266
  class RenameSymbolRunnable {
243
- constructor(languageFeaturesService, textModel, position, newName, requestUuid) {
267
+ constructor(languageFeaturesService, commandService, requestUuid, textModel, state, position, newName, lastSymbolRename, oldName) {
244
268
  this._result = undefined;
269
+ this._commandService = commandService;
270
+ this._textModel = textModel;
271
+ this._state = state;
245
272
  this._requestUuid = requestUuid;
246
273
  this._cancellationTokenSource = new CancellationTokenSource();
247
- this._promise = rawRename(languageFeaturesService.renameProvider, textModel, position, newName, this._cancellationTokenSource.token);
274
+ if (lastSymbolRename === undefined || oldName === undefined) {
275
+ this._promise = rawRename(languageFeaturesService.renameProvider, textModel, position, newName, this._cancellationTokenSource.token);
276
+ return;
277
+ }
278
+ else {
279
+ this._promise = this.sendNesRenameRequest(textModel, position, oldName, newName, lastSymbolRename);
280
+ }
248
281
  }
249
282
  get requestUuid() {
250
283
  return this._requestUuid;
251
284
  }
285
+ isValid(codeEditorService) {
286
+ return this._state.equals(EditorState.create(codeEditorService, this._textModel));
287
+ }
252
288
  cancel() {
253
289
  this._cancellationTokenSource.cancel();
254
290
  }
@@ -277,17 +313,39 @@ class RenameSymbolRunnable {
277
313
  }
278
314
  return this._result;
279
315
  }
316
+ async sendNesRenameRequest(textModel, position, oldName, newName, lastSymbolRename) {
317
+ try {
318
+ const result = await this._commandService.executeCommand('github.copilot.nes.postRename', textModel.uri, position, oldName, newName, lastSymbolRename);
319
+ if (result === undefined) {
320
+ return { rejectReason: 'Rename failed', edits: [] };
321
+ }
322
+ const edits = [];
323
+ for (const item of result) {
324
+ for (const change of item.changes) {
325
+ const range = new Range(change.range.start.line + 1, change.range.start.character + 1, change.range.end.line + 1, change.range.end.character + 1);
326
+ const edit = new ResourceTextEdit(item.file, new TextReplacement(range, change.newText ?? newName));
327
+ edits.push(edit);
328
+ }
329
+ }
330
+ return { edits };
331
+ }
332
+ catch (error) {
333
+ return { rejectReason: 'Rename failed', edits: [] };
334
+ }
335
+ }
280
336
  }
281
337
  let RenameSymbolProcessor = class RenameSymbolProcessor extends Disposable {
282
- constructor(_commandService, _languageFeaturesService, _languageConfigurationService, bulkEditService) {
338
+ constructor(_commandService, _languageFeaturesService, _languageConfigurationService, bulkEditService, _renameSymbolTrackerService, _codeEditorService) {
283
339
  super();
284
340
  this._commandService = _commandService;
285
341
  this._languageFeaturesService = _languageFeaturesService;
286
342
  this._languageConfigurationService = _languageConfigurationService;
343
+ this._renameSymbolTrackerService = _renameSymbolTrackerService;
344
+ this._codeEditorService = _codeEditorService;
287
345
  this._renameInferenceEngine = new RenameInferenceEngine();
288
346
  this._renameRunnable = undefined;
289
347
  this._register(CommandsRegistry.registerCommand(renameSymbolCommandId, async (_, source, renameRunnable) => {
290
- if (renameRunnable === undefined) {
348
+ if (renameRunnable === undefined || !renameRunnable.isValid(this._codeEditorService)) {
291
349
  return;
292
350
  }
293
351
  try {
@@ -311,6 +369,10 @@ let RenameSymbolProcessor = class RenameSymbolProcessor extends Disposable {
311
369
  if (!hasProvider(this._languageFeaturesService.renameProvider, textModel)) {
312
370
  return suggestItem;
313
371
  }
372
+ const state = EditorState.create(this._codeEditorService, textModel);
373
+ if (state === undefined) {
374
+ return suggestItem;
375
+ }
314
376
  const start = Date.now();
315
377
  const edit = suggestItem.action.textReplacement;
316
378
  const languageConfiguration = this._languageConfigurationService.getLanguageConfiguration(textModel.getLanguageId());
@@ -320,10 +382,15 @@ let RenameSymbolProcessor = class RenameSymbolProcessor extends Disposable {
320
382
  return suggestItem;
321
383
  }
322
384
  const { oldName, newName, position, edits: renameEdits } = edits.renames;
385
+ const trackedWord = this._renameSymbolTrackerService.trackedWord.get();
386
+ let lastSymbolRename = undefined;
387
+ if (trackedWord !== undefined && trackedWord.model === textModel && trackedWord.originalWord === oldName && trackedWord.currentWord === newName) {
388
+ lastSymbolRename = trackedWord.currentRange;
389
+ }
323
390
  // Check asynchronously if a rename is possible
324
391
  let timedOut = false;
325
- const check = await raceTimeout(this.checkRenamePrecondition(suggestItem, textModel, position, oldName, newName), 100, () => { timedOut = true; });
326
- const renamePossible = this.isRenamePossible(suggestItem, check);
392
+ const check = await raceTimeout(this.checkRenamePrecondition(suggestItem, textModel, position, oldName, newName, lastSymbolRename), 100, () => { timedOut = true; });
393
+ const renamePossible = this.isRenamePossible(suggestItem, check, state, textModel);
327
394
  suggestItem.setRenameProcessingInfo({
328
395
  createdRename: renamePossible,
329
396
  duration: Date.now() - start,
@@ -336,7 +403,7 @@ let RenameSymbolProcessor = class RenameSymbolProcessor extends Disposable {
336
403
  }
337
404
  // Prepare the rename edits
338
405
  if (this._renameRunnable === undefined) {
339
- this._renameRunnable = new RenameSymbolRunnable(this._languageFeaturesService, textModel, position, newName, suggestItem.requestUuid);
406
+ this._renameRunnable = new RenameSymbolRunnable(this._languageFeaturesService, this._commandService, suggestItem.requestUuid, textModel, state, position, newName, lastSymbolRename, lastSymbolRename !== undefined ? oldName : undefined);
340
407
  }
341
408
  // Create alternative action
342
409
  const source = EditSources.inlineCompletionAccept({
@@ -348,11 +415,11 @@ let RenameSymbolProcessor = class RenameSymbolProcessor extends Disposable {
348
415
  });
349
416
  const command = {
350
417
  id: renameSymbolCommandId,
351
- title: localize(1220, "Rename"),
418
+ title: localize(1222, "Rename"),
352
419
  arguments: [source, this._renameRunnable],
353
420
  };
354
421
  const alternativeAction = {
355
- label: localize(1221, "Rename"),
422
+ label: localize(1223, "Rename"),
356
423
  icon: Codicon.replaceAll,
357
424
  command,
358
425
  count: this._renameRunnable.getCount(),
@@ -367,22 +434,42 @@ let RenameSymbolProcessor = class RenameSymbolProcessor extends Disposable {
367
434
  };
368
435
  return InlineSuggestionItem.create(suggestItem.withAction(renameAction), textModel, false);
369
436
  }
370
- async checkRenamePrecondition(suggestItem, textModel, position, oldName, newName) {
437
+ async checkRenamePrecondition(suggestItem, textModel, position, oldName, newName, lastSymbolRename) {
438
+ const no = { canRename: RenameKind.no, timedOut: false };
371
439
  try {
372
- const result = await this._commandService.executeCommand('github.copilot.nes.prepareRename', textModel.uri, position, oldName, newName, suggestItem.requestUuid);
440
+ const result = await this._commandService.executeCommand('github.copilot.nes.prepareRename', textModel.uri, position, oldName, newName, suggestItem.requestUuid, lastSymbolRename);
373
441
  if (result === undefined) {
374
- return RenameKind.no;
442
+ return no;
443
+ }
444
+ else if (typeof result === 'string') {
445
+ const canRename = RenameKind.fromString(result);
446
+ if (canRename === RenameKind.yes || canRename === RenameKind.maybe) {
447
+ return {
448
+ canRename,
449
+ oldName,
450
+ onOldState: false,
451
+ };
452
+ }
453
+ else {
454
+ return {
455
+ canRename,
456
+ timedOut: false,
457
+ };
458
+ }
375
459
  }
376
460
  else {
377
- return RenameKind.fromString(result);
461
+ return result;
378
462
  }
379
463
  }
380
464
  catch (error) {
381
- return RenameKind.no;
465
+ return no;
382
466
  }
383
467
  }
384
- isRenamePossible(suggestItem, check) {
385
- if (check === undefined || check === RenameKind.no) {
468
+ isRenamePossible(suggestItem, check, state, textModel) {
469
+ if (check === undefined || check.canRename === RenameKind.no) {
470
+ return false;
471
+ }
472
+ if (!state.equals(EditorState.create(this._codeEditorService, textModel))) {
386
473
  return false;
387
474
  }
388
475
  if (this._renameRunnable === undefined) {
@@ -402,7 +489,9 @@ RenameSymbolProcessor = __decorate([
402
489
  __param(0, ICommandService),
403
490
  __param(1, ILanguageFeaturesService),
404
491
  __param(2, ILanguageConfigurationService),
405
- __param(3, IBulkEditService)
492
+ __param(3, IBulkEditService),
493
+ __param(4, IRenameSymbolTrackerService),
494
+ __param(5, ICodeEditorService)
406
495
  ], RenameSymbolProcessor);
407
496
 
408
497
  export { RenameInferenceEngine, RenameSymbolProcessor };
@@ -78,13 +78,13 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
78
78
  const title = header(this._data.displayName);
79
79
  const gotoAndAccept = option(createOptionArgs({
80
80
  id: 'gotoAndAccept',
81
- title: `${localize(1222, "Go To")} / ${localize(1223, "Accept")}`,
81
+ title: `${localize(1224, "Go To")} / ${localize(1225, "Accept")}`,
82
82
  icon: Codicon.check,
83
83
  commandId: inlineSuggestCommitId,
84
84
  }));
85
85
  const reject = option(createOptionArgs({
86
86
  id: 'reject',
87
- title: localize(1224, "Reject"),
87
+ title: localize(1226, "Reject"),
88
88
  icon: Codicon.close,
89
89
  commandId: hideInlineCompletionId
90
90
  }));
@@ -105,25 +105,25 @@ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
105
105
  const toggleCollapsedMode = this._inlineEditsShowCollapsed.map(showCollapsed => showCollapsed ?
106
106
  option(createOptionArgs({
107
107
  id: 'showExpanded',
108
- title: localize(1225, "Show Expanded"),
108
+ title: localize(1227, "Show Expanded"),
109
109
  icon: Codicon.expandAll,
110
110
  commandId: toggleShowCollapsedId
111
111
  }))
112
112
  : option(createOptionArgs({
113
113
  id: 'showCollapsed',
114
- title: localize(1226, "Show Collapsed"),
114
+ title: localize(1228, "Show Collapsed"),
115
115
  icon: Codicon.collapseAll,
116
116
  commandId: toggleShowCollapsedId
117
117
  })));
118
118
  const snooze = option(createOptionArgs({
119
119
  id: 'snooze',
120
- title: localize(1227, "Snooze"),
120
+ title: localize(1229, "Snooze"),
121
121
  icon: Codicon.bellSlash,
122
122
  commandId: 'editor.action.inlineSuggest.snooze'
123
123
  }));
124
124
  const settings = option(createOptionArgs({
125
125
  id: 'settings',
126
- title: localize(1228, "Settings"),
126
+ title: localize(1230, "Settings"),
127
127
  icon: Codicon.gear,
128
128
  commandId: 'workbench.action.openSettings',
129
129
  commandArgs: ['@tag:nextEditSuggestions']
@@ -52,7 +52,7 @@ class InlineEditsGutterIndicatorData {
52
52
  class InlineSuggestionGutterMenuData {
53
53
  static fromInlineSuggestion(suggestion) {
54
54
  const alternativeAction = suggestion.action?.kind === 'edit' ? suggestion.action.alternativeAction : undefined;
55
- return new InlineSuggestionGutterMenuData(suggestion.gutterMenuLinkAction, suggestion.source.provider.displayName ?? localize(1229, "Inline Suggestion"), suggestion.source.inlineSuggestions.commands ?? [], alternativeAction, suggestion.source.provider.modelInfo, suggestion.source.provider.setModelId?.bind(suggestion.source.provider));
55
+ return new InlineSuggestionGutterMenuData(suggestion.gutterMenuLinkAction, suggestion.source.provider.displayName ?? localize(1231, "Inline Suggestion"), suggestion.source.inlineSuggestions.commands ?? [], alternativeAction, suggestion.source.provider.modelInfo, suggestion.source.provider.setModelId?.bind(suggestion.source.provider));
56
56
  }
57
57
  constructor(action, displayName, extensionCommands, alternativeAction, modelInfo, setModelId) {
58
58
  this.action = action;
@@ -123,10 +123,10 @@ let InlineEditsWordReplacementView = class InlineEditsWordReplacementView extend
123
123
  const count = altCount.read(reader);
124
124
  const active = altModifierActive.read(reader);
125
125
  const occurrencesLabel = count !== undefined ? count === 1 ?
126
- localize(1230, "{0} 1 occurrence", label) :
127
- localize(1231, "{0} {1} occurrences", label, count)
126
+ localize(1232, "{0} 1 occurrence", label) :
127
+ localize(1233, "{0} {1} occurrences", label, count)
128
128
  : label;
129
- const keybindingTooltip = localize(1232, "{0} show occurrences", '[shift]');
129
+ const keybindingTooltip = localize(1234, "{0} show occurrences", '[shift]');
130
130
  alternativeAction = {
131
131
  label: count !== undefined ? (active ? occurrencesLabel : label) : label,
132
132
  tooltip: occurrencesLabel ? `${occurrencesLabel}\n${keybindingTooltip}` : undefined,
@@ -21,63 +21,63 @@ import { observableFromEventOpts } from '../../../../../../base/common/observabl
21
21
  * Copyright (c) Microsoft Corporation. All rights reserved.
22
22
  * Licensed under the MIT License. See License.txt in the project root for license information.
23
23
  *--------------------------------------------------------------------------------------------*/
24
- const originalBackgroundColor = registerColor('inlineEdit.originalBackground', transparent(diffRemoved, 0.2), localize(1233, 'Background color for the original text in inline edits.'), true);
25
- const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(1234, 'Background color for the modified text in inline edits.'), true);
26
- registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(1235, 'Background color for the changed lines in the original text of inline edits.'), true);
27
- const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', transparent(diffRemoved, 0.8), localize(1236, 'Overlay color for the changed text in the original text of inline edits.'), true);
24
+ const originalBackgroundColor = registerColor('inlineEdit.originalBackground', transparent(diffRemoved, 0.2), localize(1235, 'Background color for the original text in inline edits.'), true);
25
+ const modifiedBackgroundColor = registerColor('inlineEdit.modifiedBackground', transparent(diffInserted, 0.3), localize(1236, 'Background color for the modified text in inline edits.'), true);
26
+ registerColor('inlineEdit.originalChangedLineBackground', transparent(diffRemoved, 0.8), localize(1237, 'Background color for the changed lines in the original text of inline edits.'), true);
27
+ const originalChangedTextOverlayColor = registerColor('inlineEdit.originalChangedTextBackground', transparent(diffRemoved, 0.8), localize(1238, 'Overlay color for the changed text in the original text of inline edits.'), true);
28
28
  const modifiedChangedLineBackgroundColor = registerColor('inlineEdit.modifiedChangedLineBackground', {
29
29
  light: transparent(diffInsertedLine, 0.7),
30
30
  dark: transparent(diffInsertedLine, 0.7),
31
31
  hcDark: diffInsertedLine,
32
32
  hcLight: diffInsertedLine
33
- }, localize(1237, 'Background color for the changed lines in the modified text of inline edits.'), true);
34
- const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', transparent(diffInserted, 0.7), localize(1238, 'Overlay color for the changed text in the modified text of inline edits.'), true);
33
+ }, localize(1239, 'Background color for the changed lines in the modified text of inline edits.'), true);
34
+ const modifiedChangedTextOverlayColor = registerColor('inlineEdit.modifiedChangedTextBackground', transparent(diffInserted, 0.7), localize(1240, 'Overlay color for the changed text in the modified text of inline edits.'), true);
35
35
  // ------- GUTTER INDICATOR -------
36
- const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(1239, 'Foreground color for the primary inline edit gutter indicator.'));
37
- const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(1240, 'Border color for the primary inline edit gutter indicator.'));
36
+ const inlineEditIndicatorPrimaryForeground = registerColor('inlineEdit.gutterIndicator.primaryForeground', buttonForeground, localize(1241, 'Foreground color for the primary inline edit gutter indicator.'));
37
+ const inlineEditIndicatorPrimaryBorder = registerColor('inlineEdit.gutterIndicator.primaryBorder', buttonBackground, localize(1242, 'Border color for the primary inline edit gutter indicator.'));
38
38
  const inlineEditIndicatorPrimaryBackground = registerColor('inlineEdit.gutterIndicator.primaryBackground', {
39
39
  light: transparent(inlineEditIndicatorPrimaryBorder, 0.5),
40
40
  dark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),
41
41
  hcDark: transparent(inlineEditIndicatorPrimaryBorder, 0.4),
42
42
  hcLight: transparent(inlineEditIndicatorPrimaryBorder, 0.5),
43
- }, localize(1241, 'Background color for the primary inline edit gutter indicator.'));
44
- const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(1242, 'Foreground color for the secondary inline edit gutter indicator.'));
45
- const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(1243, 'Border color for the secondary inline edit gutter indicator.'));
46
- const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(1244, 'Background color for the secondary inline edit gutter indicator.'));
47
- const inlineEditIndicatorSuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(1245, 'Foreground color for the successful inline edit gutter indicator.'));
48
- const inlineEditIndicatorSuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(1246, 'Border color for the successful inline edit gutter indicator.'));
49
- const inlineEditIndicatorSuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorSuccessfulBorder, localize(1247, 'Background color for the successful inline edit gutter indicator.'));
43
+ }, localize(1243, 'Background color for the primary inline edit gutter indicator.'));
44
+ const inlineEditIndicatorSecondaryForeground = registerColor('inlineEdit.gutterIndicator.secondaryForeground', buttonSecondaryForeground, localize(1244, 'Foreground color for the secondary inline edit gutter indicator.'));
45
+ const inlineEditIndicatorSecondaryBorder = registerColor('inlineEdit.gutterIndicator.secondaryBorder', buttonSecondaryBackground, localize(1245, 'Border color for the secondary inline edit gutter indicator.'));
46
+ const inlineEditIndicatorSecondaryBackground = registerColor('inlineEdit.gutterIndicator.secondaryBackground', inlineEditIndicatorSecondaryBorder, localize(1246, 'Background color for the secondary inline edit gutter indicator.'));
47
+ const inlineEditIndicatorSuccessfulForeground = registerColor('inlineEdit.gutterIndicator.successfulForeground', buttonForeground, localize(1247, 'Foreground color for the successful inline edit gutter indicator.'));
48
+ const inlineEditIndicatorSuccessfulBorder = registerColor('inlineEdit.gutterIndicator.successfulBorder', buttonBackground, localize(1248, 'Border color for the successful inline edit gutter indicator.'));
49
+ const inlineEditIndicatorSuccessfulBackground = registerColor('inlineEdit.gutterIndicator.successfulBackground', inlineEditIndicatorSuccessfulBorder, localize(1249, 'Background color for the successful inline edit gutter indicator.'));
50
50
  const inlineEditIndicatorBackground = registerColor('inlineEdit.gutterIndicator.background', {
51
51
  hcDark: transparent('tab.inactiveBackground', 0.5),
52
52
  hcLight: transparent('tab.inactiveBackground', 0.5),
53
53
  dark: transparent('tab.inactiveBackground', 0.5),
54
54
  light: '#5f5f5f18',
55
- }, localize(1248, 'Background color for the inline edit gutter indicator.'));
55
+ }, localize(1250, 'Background color for the inline edit gutter indicator.'));
56
56
  // ------- BORDER COLORS -------
57
57
  const originalBorder = registerColor('inlineEdit.originalBorder', {
58
58
  light: diffRemoved,
59
59
  dark: diffRemoved,
60
60
  hcDark: diffRemoved,
61
61
  hcLight: diffRemoved
62
- }, localize(1249, 'Border color for the original text in inline edits.'));
62
+ }, localize(1251, 'Border color for the original text in inline edits.'));
63
63
  const modifiedBorder = registerColor('inlineEdit.modifiedBorder', {
64
64
  light: darken(diffInserted, 0.6),
65
65
  dark: diffInserted,
66
66
  hcDark: diffInserted,
67
67
  hcLight: diffInserted
68
- }, localize(1250, 'Border color for the modified text in inline edits.'));
68
+ }, localize(1252, 'Border color for the modified text in inline edits.'));
69
69
  const tabWillAcceptModifiedBorder = registerColor('inlineEdit.tabWillAcceptModifiedBorder', {
70
70
  light: darken(modifiedBorder, 0),
71
71
  dark: darken(modifiedBorder, 0),
72
72
  hcDark: darken(modifiedBorder, 0),
73
73
  hcLight: darken(modifiedBorder, 0)
74
- }, localize(1251, 'Modified border color for the inline edits widget when tab will accept it.'));
74
+ }, localize(1253, 'Modified border color for the inline edits widget when tab will accept it.'));
75
75
  const tabWillAcceptOriginalBorder = registerColor('inlineEdit.tabWillAcceptOriginalBorder', {
76
76
  light: darken(originalBorder, 0),
77
77
  dark: darken(originalBorder, 0),
78
78
  hcDark: darken(originalBorder, 0),
79
79
  hcLight: darken(originalBorder, 0)
80
- }, localize(1252, 'Original border color for the inline edits widget over the original text when tab will accept it.'));
80
+ }, localize(1254, 'Original border color for the inline edits widget over the original text when tab will accept it.'));
81
81
  function getModifiedBorderColor(tabAction) {
82
82
  return tabAction.map(a => a === InlineEditTabAction.Accept ? tabWillAcceptModifiedBorder : modifiedBorder);
83
83
  }
@@ -22,16 +22,13 @@ import { observableValue } from '../../../../../../../base/common/observableInte
22
22
  * Warning: might return 0.
23
23
  */
24
24
  function maxContentWidthInRange(editor, range, reader) {
25
- editor.layoutInfo.read(reader);
26
- editor.value.read(reader);
27
25
  const model = editor.model.read(reader);
28
26
  if (!model) {
29
27
  return 0;
30
28
  }
31
29
  let maxContentWidth = 0;
32
- editor.scrollTop.read(reader);
33
30
  for (let i = range.startLineNumber; i < range.endLineNumberExclusive; i++) {
34
- const lineContentWidth = editor.editor.getWidthOfLine(i);
31
+ const lineContentWidth = editor.getWidthOfLine(i, reader);
35
32
  maxContentWidth = Math.max(maxContentWidth, lineContentWidth);
36
33
  }
37
34
  const lines = range.mapToLineArray(l => model.getLineContent(l));
@@ -41,17 +38,14 @@ function maxContentWidthInRange(editor, range, reader) {
41
38
  return maxContentWidth;
42
39
  }
43
40
  function getContentSizeOfLines(editor, range, reader) {
44
- editor.layoutInfo.read(reader);
45
- editor.value.read(reader);
46
41
  observableSignalFromEvent(editor, editor.editor.onDidChangeLineHeight).read(reader);
47
42
  const model = editor.model.read(reader);
48
43
  if (!model) {
49
44
  throw new BugIndicatingError('Model is required');
50
45
  }
51
46
  const sizes = [];
52
- editor.scrollTop.read(reader);
53
47
  for (let i = range.startLineNumber; i < range.endLineNumberExclusive; i++) {
54
- let lineContentWidth = editor.editor.getWidthOfLine(i);
48
+ let lineContentWidth = editor.getWidthOfLine(i, reader);
55
49
  if (lineContentWidth === -1) {
56
50
  // approximation
57
51
  const column = model.getLineMaxColumn(i);
@@ -12,7 +12,7 @@ class InsertFinalNewLineAction extends EditorAction {
12
12
  constructor() {
13
13
  super({
14
14
  id: InsertFinalNewLineAction.ID,
15
- label: localize2(1255, "Insert Final New Line"),
15
+ label: localize2(1257, "Insert Final New Line"),
16
16
  precondition: EditorContextKeys.writable
17
17
  });
18
18
  }
@@ -11,7 +11,7 @@ class ExpandLineSelectionAction extends EditorAction {
11
11
  constructor() {
12
12
  super({
13
13
  id: 'expandLineSelection',
14
- label: localize2(1256, "Expand Line Selection"),
14
+ label: localize2(1258, "Expand Line Selection"),
15
15
  precondition: undefined,
16
16
  kbOpts: {
17
17
  weight: 0 /* KeybindingWeight.EditorCore */,