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
@@ -1,5 +1,5 @@
1
- define("vs/ts.worker-CArJhH03", ["require", "exports"], (function(require, exports) {
1
+ define("vs/ts.worker-D8b1uxsf", ["require", "exports"], (function(require, exports) {
2
2
  "use strict";
3
- const __worker_url_0__ = "" + new URL(require.toUrl("./assets/ts.worker-Cw4JXdL0.js"), document.baseURI).href;
3
+ const __worker_url_0__ = "" + new URL(require.toUrl("./assets/ts.worker-BHSjxfUg.js"), document.baseURI).href;
4
4
  exports.__worker_url_0__ = __worker_url_0__;
5
5
  }));
@@ -1,4 +1,4 @@
1
- define("vs/tsMode-jpkv3SbL", ["exports", "./ts.worker-CArJhH03", "./editor-CR18QzPP", "./workers-zrUx_2Gw", "./monaco.contribution-CVBrIlxn"], (function(exports, ts_worker, editor, workers, src_deprecated_language_typescript_monaco_contribution_ts) {
1
+ define("vs/tsMode-KTRrMuzt", ["exports", "./ts.worker-D8b1uxsf", "./editor-ByVgNwiX", "./workers-CRiEObDp", "./monaco.contribution-BOrU-t9u"], (function(exports, ts_worker, editor, workers, src_deprecated_language_typescript_monaco_contribution_ts) {
2
2
  "use strict";
3
3
  class WorkerManager {
4
4
  constructor(_modeId, _defaults) {
@@ -1,4 +1,4 @@
1
- define("vs/typescript-f8pt88eA", ["exports", "./editor-CR18QzPP"], (function(exports, editor) {
1
+ define("vs/typescript-BSiaiq-E", ["exports", "./editor-ByVgNwiX"], (function(exports, editor) {
2
2
  "use strict";
3
3
  const conf = {
4
4
  wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
@@ -1,4 +1,4 @@
1
- define("vs/workers-zrUx_2Gw", ["exports", "./editor-CR18QzPP", "./toggleHighContrast-CLgtrrIB"], (function(exports, editor, toggleHighContrast) {
1
+ define("vs/workers-CRiEObDp", ["exports", "./editor-ByVgNwiX", "./toggleHighContrast-DkOkzJmE"], (function(exports, editor, toggleHighContrast) {
2
2
  "use strict";
3
3
  function createTrustedTypesPolicy(policyName, policyOptions) {
4
4
  const monacoEnvironment = globalThis.MonacoEnvironment;
@@ -1,4 +1,4 @@
1
- define("vs/xml-CmSjtiR0", ["exports", "./editor-CR18QzPP"], (function(exports, editor) {
1
+ define("vs/xml-CNu5z8S7", ["exports", "./editor-ByVgNwiX"], (function(exports, editor) {
2
2
  "use strict";
3
3
  const conf = {
4
4
  comments: {
@@ -1,4 +1,4 @@
1
- define("vs/yaml-PRriLGdw", ["exports", "./editor-CR18QzPP"], (function(exports, editor) {
1
+ define("vs/yaml-3Fy2WUAc", ["exports", "./editor-ByVgNwiX"], (function(exports, editor) {
2
2
  "use strict";
3
3
  const conf = {
4
4
  comments: {
@@ -498,7 +498,6 @@ function getDomSanitizerConfig(mdStrConfig, options) {
498
498
  Schemas.vscodeRemote,
499
499
  Schemas.vscodeRemoteResource,
500
500
  Schemas.vscodeNotebookCell,
501
- Schemas.vscodeChatPrompt,
502
501
  // For links that are handled entirely by the action handler
503
502
  Schemas.internal,
504
503
  ];
@@ -1,4 +1,4 @@
1
- import { isEditableElement, isKeyboardEvent, hasParentWithClass, append, $, clearNode, addDisposableListener } from '../../dom.js';
1
+ import { isEditableElement, isActiveElement, isKeyboardEvent, hasParentWithClass, append, $, clearNode, addDisposableListener } from '../../dom.js';
2
2
  import { createStyleSheet } from '../../domStylesheets.js';
3
3
  import { asCssValueWithDefault } from '../../cssValue.js';
4
4
  import { Event, EventBufferer, Emitter, Relay } from '../../../common/event.js';
@@ -7,7 +7,7 @@ import '../../browser.js';
7
7
  import '../../dnd.js';
8
8
  import '../../touch.js';
9
9
  import '../hover/hoverDelegateFactory.js';
10
- import '../../../common/platform.js';
10
+ import { isMacintosh } from '../../../common/platform.js';
11
11
  import { DisposableStore, dispose, Disposable, toDisposable } from '../../../common/lifecycle.js';
12
12
  import '../selectBox/selectBox.css';
13
13
  import '../selectBox/selectBoxCustom.js';
@@ -1804,6 +1804,9 @@ class AbstractTree {
1804
1804
  this.view.domFocus();
1805
1805
  }
1806
1806
  }
1807
+ isDOMFocused() {
1808
+ return isActiveElement(this.getHTMLElement());
1809
+ }
1807
1810
  layout(height, width) {
1808
1811
  this.view.layout(height, width);
1809
1812
  }
@@ -2028,6 +2031,16 @@ class AbstractTree {
2028
2031
  this.onDidChangeCollapseStateRelay.input = model.onDidChangeCollapseState;
2029
2032
  this.onDidChangeRenderNodeCountRelay.input = model.onDidChangeRenderNodeCount;
2030
2033
  this.onDidSpliceModelRelay.input = model.onDidSpliceModel;
2034
+ // Announce collapse state changes for screen readers (VoiceOver doesn't reliably
2035
+ // announce aria-expanded changes on already-focused elements)
2036
+ if (isMacintosh) {
2037
+ this.modelDisposables.add(model.onDidChangeCollapseState(e => {
2038
+ const { node, deep } = e;
2039
+ if (node.collapsible && !deep && this.isDOMFocused()) {
2040
+ alert(node.collapsed ? localize(28, "collapsed") : localize(29, "expanded"));
2041
+ }
2042
+ }));
2043
+ }
2031
2044
  }
2032
2045
  dispose() {
2033
2046
  dispose(this.disposables);
@@ -162,7 +162,7 @@ class SubmenuAction {
162
162
  class EmptySubmenuAction extends Action {
163
163
  static { this.ID = 'vs.actions.empty'; }
164
164
  constructor() {
165
- super(EmptySubmenuAction.ID, localize(28, '(empty)'), undefined, false);
165
+ super(EmptySubmenuAction.ID, localize(30, '(empty)'), undefined, false);
166
166
  }
167
167
  }
168
168
  function toAction(props) {
@@ -649,6 +649,8 @@ const codiconsLibrary = {
649
649
  removeSmall: register('remove-small', 0xec7c),
650
650
  worktreeSmall: register('worktree-small', 0xec7d),
651
651
  worktree: register('worktree', 0xec7e),
652
+ screenCut: register('screen-cut', 0xec7f),
653
+ ask: register('ask', 0xec80),
652
654
  };
653
655
 
654
656
  export { codiconsLibrary };
@@ -8,7 +8,7 @@ import { localize } from '../../nls.js';
8
8
  *--------------------------------------------------------------------------------------------*/
9
9
  function exceptionToErrorMessage(exception, verbose) {
10
10
  if (verbose && (exception.stack || exception.stacktrace)) {
11
- return localize(29, "{0}: {1}", detectSystemErrorMessage(exception), stackToString(exception.stack) || stackToString(exception.stacktrace));
11
+ return localize(31, "{0}: {1}", detectSystemErrorMessage(exception), stackToString(exception.stack) || stackToString(exception.stacktrace));
12
12
  }
13
13
  return detectSystemErrorMessage(exception);
14
14
  }
@@ -25,9 +25,9 @@ function detectSystemErrorMessage(exception) {
25
25
  }
26
26
  // See https://nodejs.org/api/errors.html#errors_class_system_error
27
27
  if (typeof exception.code === 'string' && typeof exception.errno === 'number' && typeof exception.syscall === 'string') {
28
- return localize(30, "A system error occurred ({0})", exception.message);
28
+ return localize(32, "A system error occurred ({0})", exception.message);
29
29
  }
30
- return exception.message || localize(31, "An unknown error occurred. Please consult the log for more details.");
30
+ return exception.message || localize(33, "An unknown error occurred. Please consult the log for more details.");
31
31
  }
32
32
  /**
33
33
  * Tries to generate a human readable error message out of the error. If the verbose parameter
@@ -37,13 +37,13 @@ function detectSystemErrorMessage(exception) {
37
37
  */
38
38
  function toErrorMessage(error = null, verbose = false) {
39
39
  if (!error) {
40
- return localize(32, "An unknown error occurred. Please consult the log for more details.");
40
+ return localize(34, "An unknown error occurred. Please consult the log for more details.");
41
41
  }
42
42
  if (Array.isArray(error)) {
43
43
  const errors = coalesce(error);
44
44
  const msg = toErrorMessage(errors[0], verbose);
45
45
  if (errors.length > 1) {
46
- return localize(33, "{0} ({1} errors in total)", msg, errors.length);
46
+ return localize(35, "{0} ({1} errors in total)", msg, errors.length);
47
47
  }
48
48
  return msg;
49
49
  }
@@ -65,7 +65,7 @@ function toErrorMessage(error = null, verbose = false) {
65
65
  if (error.message) {
66
66
  return error.message;
67
67
  }
68
- return localize(34, "An unknown error occurred. Please consult the log for more details.");
68
+ return localize(36, "An unknown error occurred. Please consult the log for more details.");
69
69
  }
70
70
 
71
71
  export { toErrorMessage };
@@ -38,38 +38,38 @@ const UILabelProvider = new ModifierLabelProvider({
38
38
  metaKey: '⌘',
39
39
  separator: '',
40
40
  }, {
41
- ctrlKey: localize(35, "Ctrl"),
42
- shiftKey: localize(36, "Shift"),
43
- altKey: localize(37, "Alt"),
44
- metaKey: localize(38, "Windows"),
41
+ ctrlKey: localize(37, "Ctrl"),
42
+ shiftKey: localize(38, "Shift"),
43
+ altKey: localize(39, "Alt"),
44
+ metaKey: localize(40, "Windows"),
45
45
  separator: '+',
46
46
  }, {
47
- ctrlKey: localize(39, "Ctrl"),
48
- shiftKey: localize(40, "Shift"),
49
- altKey: localize(41, "Alt"),
50
- metaKey: localize(42, "Super"),
47
+ ctrlKey: localize(41, "Ctrl"),
48
+ shiftKey: localize(42, "Shift"),
49
+ altKey: localize(43, "Alt"),
50
+ metaKey: localize(44, "Super"),
51
51
  separator: '+',
52
52
  });
53
53
  /**
54
54
  * A label provider that prints modifiers in a suitable format for ARIA.
55
55
  */
56
56
  const AriaLabelProvider = new ModifierLabelProvider({
57
- ctrlKey: localize(43, "Control"),
58
- shiftKey: localize(44, "Shift"),
59
- altKey: localize(45, "Option"),
60
- metaKey: localize(46, "Command"),
57
+ ctrlKey: localize(45, "Control"),
58
+ shiftKey: localize(46, "Shift"),
59
+ altKey: localize(47, "Option"),
60
+ metaKey: localize(48, "Command"),
61
61
  separator: '+',
62
62
  }, {
63
- ctrlKey: localize(47, "Control"),
64
- shiftKey: localize(48, "Shift"),
65
- altKey: localize(49, "Alt"),
66
- metaKey: localize(50, "Windows"),
63
+ ctrlKey: localize(49, "Control"),
64
+ shiftKey: localize(50, "Shift"),
65
+ altKey: localize(51, "Alt"),
66
+ metaKey: localize(52, "Windows"),
67
67
  separator: '+',
68
68
  }, {
69
- ctrlKey: localize(51, "Control"),
70
- shiftKey: localize(52, "Shift"),
71
- altKey: localize(53, "Alt"),
72
- metaKey: localize(54, "Super"),
69
+ ctrlKey: localize(53, "Control"),
70
+ shiftKey: localize(54, "Shift"),
71
+ altKey: localize(55, "Alt"),
72
+ metaKey: localize(56, "Super"),
73
73
  separator: '+',
74
74
  });
75
75
  /**
@@ -63,8 +63,6 @@ var Schemas;
63
63
  Schemas.vscodeChatInput = 'chatSessionInput';
64
64
  /** Scheme used for local chat session content */
65
65
  Schemas.vscodeLocalChatSession = 'vscode-chat-session';
66
- /** Scheme used for virtual chat prompt files with embedded content */
67
- Schemas.vscodeChatPrompt = 'vscode-chat-prompt';
68
66
  /**
69
67
  * Scheme used internally for webviews that aren't linked to a resource (i.e. not custom editors)
70
68
  */
@@ -324,11 +324,17 @@ class Derived extends BaseObservable {
324
324
  this._value = newValue;
325
325
  }
326
326
  debugRecompute() {
327
- if (!this._isComputing) {
328
- this._recompute();
327
+ this.beginUpdate(this);
328
+ try {
329
+ if (!this._isComputing) {
330
+ this._recompute();
331
+ }
332
+ else {
333
+ this._state = 2 /* DerivedState.stale */;
334
+ }
329
335
  }
330
- else {
331
- this._state = 2 /* DerivedState.stale */;
336
+ finally {
337
+ this.endUpdate(this);
332
338
  }
333
339
  }
334
340
  setValue(newValue, tx, change) {
@@ -91,7 +91,7 @@ let ScreenReaderSupport = class ScreenReaderSupport extends Disposable {
91
91
  this._domNode.domNode.setAttribute('aria-required', options.get(9 /* EditorOption.ariaRequired */) ? 'true' : 'false');
92
92
  this._domNode.domNode.setAttribute('aria-multiline', 'true');
93
93
  this._domNode.domNode.setAttribute('aria-autocomplete', options.get(104 /* EditorOption.readOnly */) ? 'none' : 'both');
94
- this._domNode.domNode.setAttribute('aria-roledescription', localize(60, "editor"));
94
+ this._domNode.domNode.setAttribute('aria-roledescription', localize(62, "editor"));
95
95
  this._domNode.domNode.setAttribute('aria-label', ariaLabelForScreenReaderContent(options, this._keybindingService));
96
96
  const tabSize = this._context.viewModel.model.getOptions().tabSize;
97
97
  const spaceWidth = options.get(59 /* EditorOption.fontInfo */).spaceWidth;
@@ -78,15 +78,15 @@ function ariaLabelForScreenReaderContent(options, keybindingService) {
78
78
  const toggleKeybindingLabel = keybindingService.lookupKeybinding('editor.action.toggleScreenReaderAccessibilityMode')?.getAriaLabel();
79
79
  const runCommandKeybindingLabel = keybindingService.lookupKeybinding('workbench.action.showCommands')?.getAriaLabel();
80
80
  const keybindingEditorKeybindingLabel = keybindingService.lookupKeybinding('workbench.action.openGlobalKeybindings')?.getAriaLabel();
81
- const editorNotAccessibleMessage = localize(61, "The editor is not accessible at this time.");
81
+ const editorNotAccessibleMessage = localize(63, "The editor is not accessible at this time.");
82
82
  if (toggleKeybindingLabel) {
83
- return localize(62, "{0} To enable screen reader optimized mode, use {1}", editorNotAccessibleMessage, toggleKeybindingLabel);
83
+ return localize(64, "{0} To enable screen reader optimized mode, use {1}", editorNotAccessibleMessage, toggleKeybindingLabel);
84
84
  }
85
85
  else if (runCommandKeybindingLabel) {
86
- return localize(63, "{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.", editorNotAccessibleMessage, runCommandKeybindingLabel);
86
+ return localize(65, "{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.", editorNotAccessibleMessage, runCommandKeybindingLabel);
87
87
  }
88
88
  else if (keybindingEditorKeybindingLabel) {
89
- return localize(64, "{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.", editorNotAccessibleMessage, keybindingEditorKeybindingLabel);
89
+ return localize(66, "{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.", editorNotAccessibleMessage, keybindingEditorKeybindingLabel);
90
90
  }
91
91
  else {
92
92
  // SOS
@@ -131,7 +131,7 @@ let TextAreaEditContext = class TextAreaEditContext extends AbstractEditContext
131
131
  this.textArea.setAttribute('aria-required', options.get(9 /* EditorOption.ariaRequired */) ? 'true' : 'false');
132
132
  this.textArea.setAttribute('tabindex', String(options.get(140 /* EditorOption.tabIndex */)));
133
133
  this.textArea.setAttribute('role', 'textbox');
134
- this.textArea.setAttribute('aria-roledescription', localize(65, "editor"));
134
+ this.textArea.setAttribute('aria-roledescription', localize(67, "editor"));
135
135
  this.textArea.setAttribute('aria-multiline', 'true');
136
136
  this.textArea.setAttribute('aria-autocomplete', options.get(104 /* EditorOption.readOnly */) ? 'none' : 'both');
137
137
  this._ensureReadOnlyAttribute();
@@ -861,7 +861,7 @@ var CoreNavigationCommands;
861
861
  type: 'object',
862
862
  properties: {
863
863
  'sticky': {
864
- description: localize(66, "Stick to the end even when going to longer lines"),
864
+ description: localize(68, "Stick to the end even when going to longer lines"),
865
865
  type: 'boolean',
866
866
  default: false
867
867
  }
@@ -889,7 +889,7 @@ var CoreNavigationCommands;
889
889
  type: 'object',
890
890
  properties: {
891
891
  'sticky': {
892
- description: localize(67, "Stick to the end even when going to longer lines"),
892
+ description: localize(69, "Stick to the end even when going to longer lines"),
893
893
  type: 'boolean',
894
894
  default: false
895
895
  }
@@ -1437,7 +1437,7 @@ var CoreNavigationCommands;
1437
1437
  viewModel.getPrimaryCursorState()
1438
1438
  ]);
1439
1439
  viewModel.revealAllCursors(args.source, true);
1440
- status(localize(68, "Removed secondary cursors"));
1440
+ status(localize(70, "Removed secondary cursors"));
1441
1441
  }
1442
1442
  });
1443
1443
  CoreNavigationCommands.RevealLine = registerEditorCommand(new class extends CoreEditorCommand {
@@ -418,17 +418,17 @@ const UndoCommand = registerCommand(new MultiCommand({
418
418
  menuOpts: [{
419
419
  menuId: MenuId.MenubarEditMenu,
420
420
  group: '1_do',
421
- title: localize(69, "&&Undo"),
421
+ title: localize(71, "&&Undo"),
422
422
  order: 1
423
423
  }, {
424
424
  menuId: MenuId.CommandPalette,
425
425
  group: '',
426
- title: localize(70, "Undo"),
426
+ title: localize(72, "Undo"),
427
427
  order: 1
428
428
  }, {
429
429
  menuId: MenuId.SimpleEditorContext,
430
430
  group: '1_do',
431
- title: localize(71, "Undo"),
431
+ title: localize(73, "Undo"),
432
432
  order: 1
433
433
  }]
434
434
  }));
@@ -445,17 +445,17 @@ const RedoCommand = registerCommand(new MultiCommand({
445
445
  menuOpts: [{
446
446
  menuId: MenuId.MenubarEditMenu,
447
447
  group: '1_do',
448
- title: localize(72, "&&Redo"),
448
+ title: localize(74, "&&Redo"),
449
449
  order: 2
450
450
  }, {
451
451
  menuId: MenuId.CommandPalette,
452
452
  group: '',
453
- title: localize(73, "Redo"),
453
+ title: localize(75, "Redo"),
454
454
  order: 1
455
455
  }, {
456
456
  menuId: MenuId.SimpleEditorContext,
457
457
  group: '1_do',
458
- title: localize(74, "Redo"),
458
+ title: localize(76, "Redo"),
459
459
  order: 2
460
460
  }]
461
461
  }));
@@ -471,17 +471,17 @@ const SelectAllCommand = registerCommand(new MultiCommand({
471
471
  menuOpts: [{
472
472
  menuId: MenuId.MenubarSelectionMenu,
473
473
  group: '1_basic',
474
- title: localize(75, "&&Select All"),
474
+ title: localize(77, "&&Select All"),
475
475
  order: 1
476
476
  }, {
477
477
  menuId: MenuId.CommandPalette,
478
478
  group: '',
479
- title: localize(76, "Select All"),
479
+ title: localize(78, "Select All"),
480
480
  order: 1
481
481
  }, {
482
482
  menuId: MenuId.SimpleEditorContext,
483
483
  group: '9_select',
484
- title: localize(77, "Select All"),
484
+ title: localize(79, "Select All"),
485
485
  order: 1
486
486
  }]
487
487
  }));
@@ -89,7 +89,7 @@ let ViewGpuContext = class ViewGpuContext extends Disposable {
89
89
  if (!ViewGpuContext_1.device) {
90
90
  ViewGpuContext_1.device = GPULifecycle.requestDevice((message) => {
91
91
  const choices = [{
92
- label: localize(78, "Use DOM-based rendering"),
92
+ label: localize(80, "Use DOM-based rendering"),
93
93
  run: () => this.configurationService.updateValue('editor.experimentalGpuAcceleration', 'off'),
94
94
  }];
95
95
  this._notificationService.prompt(Severity.Warning, message, choices);
@@ -66,6 +66,31 @@ class ObservableCodeEditor extends Disposable {
66
66
  constructor(editor) {
67
67
  super();
68
68
  this.editor = editor;
69
+ /**
70
+ * Tracks whether getWidthOfLine returned 0, indicating the editor may be hidden.
71
+ * When resize happens and this flag is set, we reset cached line widths.
72
+ */
73
+ this._sawZeroLineWidth = false;
74
+ /**
75
+ * Fires when the editor container resizes.
76
+ * This is lazily created only when someone subscribes to it.
77
+ * Useful for detecting when a parent element's display changes from 'none' to 'block'.
78
+ */
79
+ this._onDidContainerResize = observableFromEventOpts({ owner: this, getTransaction: () => this._currentTransaction }, e => {
80
+ const container = this.editor.getContainerDomNode();
81
+ const resizeObserver = new ResizeObserver(() => {
82
+ // If we previously saw a 0 width, the editor was likely hidden.
83
+ // Now that it resized (became visible), flush the cached widths.
84
+ if (this._sawZeroLineWidth) {
85
+ this._sawZeroLineWidth = false;
86
+ this.editor.resetLineWidthCaches();
87
+ }
88
+ e(undefined);
89
+ });
90
+ resizeObserver.observe(container);
91
+ return { dispose: () => resizeObserver.disconnect() };
92
+ }, () => ({}) // Return new object each time to ensure change detection
93
+ );
69
94
  this._updateCounter = 0;
70
95
  this._currentTransaction = undefined;
71
96
  this._model = observableValue(this, this.editor.getModel());
@@ -404,6 +429,22 @@ class ObservableCodeEditor extends Disposable {
404
429
  return heights;
405
430
  });
406
431
  }
432
+ /**
433
+ * Get the width of a line in pixels.
434
+ * Reading the returned value depends on layoutInfo, value, scrollTop, and container resize events.
435
+ * The container resize dependency ensures correct values when the editor becomes visible after being hidden.
436
+ */
437
+ getWidthOfLine(lineNumber, reader) {
438
+ this.layoutInfo.read(reader);
439
+ this.value.read(reader);
440
+ this.scrollTop.read(reader);
441
+ const width = this.editor.getWidthOfLine(lineNumber);
442
+ this._onDidContainerResize.read(reader);
443
+ if (width === 0) {
444
+ this._sawZeroLineWidth = true;
445
+ }
446
+ return width;
447
+ }
407
448
  /**
408
449
  * Get the vertical position (top offset) for the line's bottom w.r.t. to the first line.
409
450
  */
@@ -25,7 +25,7 @@ var __param = (undefined && undefined.__param) || function (paramIndex, decorato
25
25
  return function (target, key) { decorator(target, key, paramIndex); }
26
26
  };
27
27
  const IInlineCompletionsService = createDecorator('IInlineCompletionsService');
28
- const InlineCompletionsSnoozing = new RawContextKey('inlineCompletions.snoozed', false, localize(79, "Whether inline completions are currently snoozed"));
28
+ const InlineCompletionsSnoozing = new RawContextKey('inlineCompletions.snoozed', false, localize(81, "Whether inline completions are currently snoozed"));
29
29
  let InlineCompletionsService = class InlineCompletionsService extends Disposable {
30
30
  get snoozeTimeLeft() {
31
31
  if (this._snoozeTimeEnd === undefined) {
@@ -111,7 +111,7 @@ class SnoozeInlineCompletion extends Action2 {
111
111
  constructor() {
112
112
  super({
113
113
  id: SnoozeInlineCompletion.ID,
114
- title: localize2(81, "Snooze Inline Suggestions"),
114
+ title: localize2(83, "Snooze Inline Suggestions"),
115
115
  precondition: ContextKeyExpr.true(),
116
116
  f1: true,
117
117
  });
@@ -142,7 +142,7 @@ class SnoozeInlineCompletion extends Action2 {
142
142
  { label: '60 minutes', id: '60', value: 3_600_000 }
143
143
  ];
144
144
  const picked = await quickInputService.pick(items, {
145
- placeHolder: localize(80, "Select snooze duration for Inline Suggestions"),
145
+ placeHolder: localize(82, "Select snooze duration for Inline Suggestions"),
146
146
  activeItem: items.find(item => item.value === lastSelectedDuration),
147
147
  });
148
148
  if (picked) {
@@ -157,7 +157,7 @@ class CancelSnoozeInlineCompletion extends Action2 {
157
157
  constructor() {
158
158
  super({
159
159
  id: CancelSnoozeInlineCompletion.ID,
160
- title: localize2(82, "Cancel Snooze Inline Suggestions"),
160
+ title: localize2(84, "Cancel Snooze Inline Suggestions"),
161
161
  precondition: InlineCompletionsSnoozing,
162
162
  f1: true,
163
163
  });
@@ -0,0 +1,18 @@
1
+ import '../../../base/common/observableInternal/index.js';
2
+ import { createDecorator } from '../../../platform/instantiation/common/instantiation.js';
3
+ import { observableValue } from '../../../base/common/observableInternal/observables/observableValue.js';
4
+
5
+ /*---------------------------------------------------------------------------------------------
6
+ * Copyright (c) Microsoft Corporation. All rights reserved.
7
+ * Licensed under the MIT License. See License.txt in the project root for license information.
8
+ *--------------------------------------------------------------------------------------------*/
9
+ const IRenameSymbolTrackerService = createDecorator('renameSymbolTrackerService');
10
+ class NullRenameSymbolTrackerService {
11
+ constructor() {
12
+ this._trackedWord = observableValue(this, undefined);
13
+ this.trackedWord = this._trackedWord;
14
+ this._trackedWord.set(undefined, undefined);
15
+ }
16
+ }
17
+
18
+ export { IRenameSymbolTrackerService, NullRenameSymbolTrackerService };
@@ -534,6 +534,9 @@ let View = class View extends ViewEventHandler {
534
534
  const width = this._viewLines.getLineWidth(viewLine);
535
535
  return width;
536
536
  }
537
+ resetLineWidthCaches() {
538
+ this._viewLines.resetLineWidthCaches();
539
+ }
537
540
  getTargetAtClientPoint(clientX, clientY) {
538
541
  const mouseTarget = this._pointerHandler.getTargetAtClientPoint(clientX, clientY);
539
542
  if (!mouseTarget) {
@@ -237,6 +237,9 @@ class ViewLine {
237
237
  }
238
238
  return this._renderedViewLine.getColumnOfNodeOffset(spanNode, offset);
239
239
  }
240
+ resetCachedWidth() {
241
+ this._renderedViewLine?.resetCachedWidth();
242
+ }
240
243
  }
241
244
  /**
242
245
  * A rendered line which is guaranteed to contain only regular ASCII and is rendered with a monospace font.
@@ -273,6 +276,9 @@ class FastRenderedViewLine {
273
276
  getWidthIsFast() {
274
277
  return (this.input.lineContent.length < 300 /* Constants.MaxMonospaceDistance */) || this._cachedWidth !== -1;
275
278
  }
279
+ resetCachedWidth() {
280
+ this._cachedWidth = -1;
281
+ }
276
282
  monospaceAssumptionsAreValid() {
277
283
  if (!this.domNode) {
278
284
  return monospaceAssumptionsAreValid;
@@ -380,6 +386,14 @@ class RenderedViewLine {
380
386
  }
381
387
  return true;
382
388
  }
389
+ resetCachedWidth() {
390
+ this._cachedWidth = -1;
391
+ if (this._pixelOffsetCache !== null) {
392
+ for (let column = 0, len = this._pixelOffsetCache.length; column < len; column++) {
393
+ this._pixelOffsetCache[column] = -1;
394
+ }
395
+ }
396
+ }
383
397
  /**
384
398
  * Visible ranges for a model range
385
399
  */
@@ -316,6 +316,13 @@ class ViewLines extends ViewPart {
316
316
  this._updateLineWidthsSlowIfDomDidLayout(context);
317
317
  return result;
318
318
  }
319
+ resetLineWidthCaches() {
320
+ const rendStartLineNumber = this._visibleLines.getStartLineNumber();
321
+ const rendEndLineNumber = this._visibleLines.getEndLineNumber();
322
+ for (let lineNumber = rendStartLineNumber; lineNumber <= rendEndLineNumber; lineNumber++) {
323
+ this._visibleLines.getVisibleLine(lineNumber).resetCachedWidth();
324
+ }
325
+ }
319
326
  linesVisibleRangesForRange(_range, includeNewLines) {
320
327
  const originalEndLineNumber = _range.endLineNumber;
321
328
  const range = Range.intersectRanges(_range, this._lastRenderedData.getCurrentVisibleRange());
@@ -1238,6 +1238,12 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
1238
1238
  }
1239
1239
  return this._modelData.view.getLineWidth(lineNumber);
1240
1240
  }
1241
+ resetLineWidthCaches() {
1242
+ if (!this._modelData || !this._modelData.hasRealView) {
1243
+ return;
1244
+ }
1245
+ this._modelData.view.resetLineWidthCaches();
1246
+ }
1241
1247
  render(forceRedraw = false) {
1242
1248
  if (!this._modelData || !this._modelData.hasRealView) {
1243
1249
  return;
@@ -1322,7 +1328,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
1322
1328
  case 7 /* OutgoingViewModelEventKind.CursorStateChanged */: {
1323
1329
  if (e.reachedMaxCursorCount) {
1324
1330
  const multiCursorLimit = this.getOption(89 /* EditorOption.multiCursorLimit */);
1325
- const message = localize(83, "The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.", multiCursorLimit);
1331
+ const message = localize(85, "The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.", multiCursorLimit);
1326
1332
  this._notificationService.prompt(Severity.Warning, message, [
1327
1333
  {
1328
1334
  label: 'Find and Replace',
@@ -1331,7 +1337,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
1331
1337
  }
1332
1338
  },
1333
1339
  {
1334
- label: localize(84, 'Increase Multi Cursor Limit'),
1340
+ label: localize(86, 'Increase Multi Cursor Limit'),
1335
1341
  run: () => {
1336
1342
  this._commandService.executeCommand('workbench.action.openSettings2', {
1337
1343
  query: 'editor.multiCursorLimit'