@codingame/monaco-vscode-api 2.2.2 → 3.0.0

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 (578) hide show
  1. package/README.md +16 -3
  2. package/api.js +8 -10
  3. package/contributions.js +3 -3
  4. package/debugProtocol.d.ts +143 -51
  5. package/extensions.d.ts +9 -5
  6. package/external/@xterm/xterm/typings/xterm.d.ts +2 -2
  7. package/missing-services.js +48 -13
  8. package/monaco.js +30 -14
  9. package/package.json +8 -8
  10. package/service-override/tools/editor.js +31 -8
  11. package/service-override/tools/views.d.ts +5 -6
  12. package/service-override/tools/views.js +10 -11
  13. package/services.d.ts +2 -2
  14. package/services.js +4 -3
  15. package/vscode/src/vs/base/browser/browser.js +2 -66
  16. package/vscode/src/vs/base/browser/dom.js +10 -22
  17. package/vscode/src/vs/base/browser/markdownRenderer.js +13 -5
  18. package/vscode/src/vs/base/browser/mouseEvent.js +9 -3
  19. package/vscode/src/vs/base/browser/pixelRatio.js +72 -0
  20. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +4 -3
  21. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css.js +1 -1
  22. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +1 -1
  23. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +3 -4
  24. package/vscode/src/vs/base/browser/ui/button/button.js +16 -4
  25. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
  26. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -3
  27. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +8 -1
  28. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +6 -2
  29. package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.js +22 -0
  30. package/vscode/src/vs/base/browser/ui/iconLabel/iconHoverDelegate.d.ts +1 -0
  31. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +3 -2
  32. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabelHover.js +2 -1
  33. package/vscode/src/vs/base/browser/ui/list/listView.js +27 -42
  34. package/vscode/src/vs/base/browser/ui/menu/menu.js +0 -4
  35. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +7 -4
  36. package/vscode/src/vs/base/browser/ui/table/tableWidget.js +8 -4
  37. package/vscode/src/vs/base/browser/ui/toggle/toggle.js +4 -2
  38. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +7 -2
  39. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +1 -0
  40. package/vscode/src/vs/base/common/actions.js +1 -1
  41. package/vscode/src/vs/base/common/assert.js +1 -1
  42. package/vscode/src/vs/base/common/async.js +11 -7
  43. package/vscode/src/vs/base/common/codicons.d.ts +4 -0
  44. package/vscode/src/vs/base/common/codicons.js +4 -0
  45. package/vscode/src/vs/base/common/date.js +55 -1
  46. package/vscode/src/vs/base/common/event.js +5 -3
  47. package/vscode/src/vs/base/common/filters.js +1 -1
  48. package/vscode/src/vs/base/common/hotReload.js +5 -4
  49. package/vscode/src/vs/base/common/network.js +3 -0
  50. package/vscode/src/vs/base/common/observableInternal/autorun.js +19 -35
  51. package/vscode/src/vs/base/common/observableInternal/base.js +3 -82
  52. package/vscode/src/vs/base/common/observableInternal/debugName.js +100 -0
  53. package/vscode/src/vs/base/common/observableInternal/derived.js +14 -46
  54. package/vscode/src/vs/base/common/observableInternal/promise.js +94 -0
  55. package/vscode/src/vs/base/common/observableInternal/utils.js +5 -27
  56. package/vscode/src/vs/base/common/prefixTree.js +56 -22
  57. package/vscode/src/vs/base/common/product.d.ts +1 -1
  58. package/vscode/src/vs/base/common/strings.js +9 -1
  59. package/vscode/src/vs/editor/browser/config/charWidthReader.js +5 -6
  60. package/vscode/src/vs/editor/browser/config/editorConfiguration.js +7 -4
  61. package/vscode/src/vs/editor/browser/config/fontMeasurements.js +39 -26
  62. package/vscode/src/vs/editor/browser/controller/mouseHandler.js +10 -10
  63. package/vscode/src/vs/editor/browser/controller/mouseTarget.js +4 -4
  64. package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +12 -12
  65. package/vscode/src/vs/editor/browser/coreCommands.js +2 -2
  66. package/vscode/src/vs/editor/browser/view/viewController.js +3 -3
  67. package/vscode/src/vs/editor/browser/view/viewLayer.js +1 -1
  68. package/vscode/src/vs/editor/browser/view/viewOverlays.js +6 -6
  69. package/vscode/src/vs/editor/browser/view.js +2 -2
  70. package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -1
  71. package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +5 -5
  72. package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +8 -8
  73. package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.js +2 -2
  74. package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +11 -11
  75. package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +4 -4
  76. package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.js +4 -4
  77. package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +4 -4
  78. package/vscode/src/vs/editor/browser/viewParts/lines/viewLine.js +4 -4
  79. package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +13 -13
  80. package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -2
  81. package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +2 -2
  82. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +7 -7
  83. package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -2
  84. package/vscode/src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +7 -7
  85. package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +6 -6
  86. package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.js +2 -2
  87. package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +3 -3
  88. package/vscode/src/vs/editor/browser/viewParts/selections/selections.js +4 -4
  89. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +2 -2
  90. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +2 -2
  91. package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +5 -5
  92. package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +5 -5
  93. package/vscode/src/vs/editor/browser/widget/codeEditorContributions.js +2 -2
  94. package/vscode/src/vs/editor/browser/widget/codeEditorWidget.js +34 -32
  95. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css.js +1 -1
  96. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +82 -37
  97. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +3 -1
  98. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +7 -7
  99. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +3 -3
  100. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +6 -6
  101. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +10 -16
  102. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +2 -1
  103. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +12 -12
  104. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +2 -4
  105. package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
  106. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +17 -18
  107. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +1 -1
  108. package/vscode/src/vs/editor/browser/widget/embeddedCodeEditorWidget.js +4 -4
  109. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/renderedMarkdown.css.js +1 -1
  110. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/colors.js +2 -2
  111. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/diffEditorItemTemplate.js +43 -16
  112. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidget.js +3 -0
  113. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidgetImpl.js +42 -8
  114. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/style.css.js +1 -1
  115. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +18 -1
  116. package/vscode/src/vs/editor/common/config/editorOptions.js +188 -107
  117. package/vscode/src/vs/editor/common/config/fontInfo.js +2 -2
  118. package/vscode/src/vs/editor/common/cursorCommon.js +14 -14
  119. package/vscode/src/vs/editor/common/editorContextKeys.js +1 -1
  120. package/vscode/src/vs/editor/common/languageSelector.js +12 -1
  121. package/vscode/src/vs/editor/common/languages.d.ts +28 -1
  122. package/vscode/src/vs/editor/common/languages.js +6 -1
  123. package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +3 -1
  124. package/vscode/src/vs/editor/common/services/languageFeaturesService.js +2 -0
  125. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +96 -86
  126. package/vscode/src/vs/editor/common/standaloneStrings.js +5 -5
  127. package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +19 -19
  128. package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +2 -2
  129. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +12 -12
  130. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +3 -3
  131. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +6 -6
  132. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +5 -1
  133. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +3 -3
  134. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +2 -2
  135. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +1 -1
  136. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorContributions.js +1 -1
  137. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +3 -3
  138. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +2 -2
  139. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +3 -3
  140. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +2 -3
  141. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +3 -3
  142. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +3 -3
  143. package/vscode/src/vs/editor/contrib/find/browser/findController.js +1 -1
  144. package/vscode/src/vs/editor/contrib/find/browser/findModel.js +6 -6
  145. package/vscode/src/vs/editor/contrib/find/browser/findWidget.css.js +1 -1
  146. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +9 -62
  147. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +3 -3
  148. package/vscode/src/vs/editor/contrib/format/browser/format.js +5 -5
  149. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +5 -5
  150. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +1 -1
  151. package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +1 -1
  152. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +58 -84
  153. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +3 -3
  154. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  155. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +8 -2
  156. package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +1 -1
  157. package/vscode/src/vs/editor/contrib/hover/browser/hover.js +1 -1
  158. package/vscode/src/vs/editor/contrib/hover/browser/marginHover.js +1 -1
  159. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +1 -1
  160. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +18 -15
  161. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +3 -3
  162. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +1 -1
  163. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +2 -2
  164. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +1 -1
  165. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostText.js +14 -6
  166. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +10 -10
  167. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +1 -1
  168. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +3 -3
  169. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +54 -27
  170. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +1 -1
  171. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +115 -45
  172. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +1 -1
  173. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/singleTextEdit.js +6 -5
  174. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +46 -1
  175. package/vscode/src/vs/editor/contrib/inlineEdit/browser/commandIds.js +5 -0
  176. package/vscode/src/vs/editor/contrib/inlineEdit/browser/commands.js +145 -0
  177. package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +188 -0
  178. package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +91 -0
  179. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.js +12 -0
  180. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEdit.css.js +4 -0
  181. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +309 -0
  182. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.css.js +4 -0
  183. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +193 -0
  184. package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.js +2 -2
  185. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +1 -1
  186. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  187. package/vscode/src/vs/editor/contrib/links/browser/links.js +5 -5
  188. package/vscode/src/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js +1 -1
  189. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +10 -10
  190. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +3 -3
  191. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +1 -1
  192. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +1 -1
  193. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +1 -1
  194. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +143 -9
  195. package/vscode/src/vs/editor/contrib/rename/browser/renameInputField.css.js +1 -1
  196. package/vscode/src/vs/editor/contrib/rename/browser/renameInputField.js +347 -17
  197. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +1 -1
  198. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
  199. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +23 -37
  200. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +11 -10
  201. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -2
  202. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +8 -8
  203. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +4 -4
  204. package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +2 -2
  205. package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +11 -11
  206. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +6 -6
  207. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +3 -3
  208. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +3 -3
  209. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +2 -2
  210. package/vscode/src/vs/editor/contrib/suggest/browser/wordDistance.js +1 -1
  211. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +3 -3
  212. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +3 -3
  213. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +4 -4
  214. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +26 -16
  215. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
  216. package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +7 -3
  217. package/vscode/src/vs/editor/editor.api.d.ts +146 -85
  218. package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +1 -1
  219. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -5
  220. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +7 -4
  221. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +10 -10
  222. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +99 -0
  223. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +608 -0
  224. package/vscode/src/vs/platform/action/common/actionCommonCategories.d.ts +1 -4
  225. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +3 -3
  226. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +26 -41
  227. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +6 -4
  228. package/vscode/src/vs/platform/actions/common/actions.d.ts +11 -0
  229. package/vscode/src/vs/platform/actions/common/actions.js +11 -0
  230. package/vscode/src/vs/platform/configuration/common/configuration.d.ts +17 -33
  231. package/vscode/src/vs/platform/configuration/common/configurationModels.js +42 -29
  232. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -4
  233. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +2 -2
  234. package/vscode/src/vs/platform/hover/browser/hover.js +69 -1
  235. package/vscode/src/vs/platform/product/common/product.js +1 -1
  236. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +14 -20
  237. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +11 -5
  238. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +22 -2
  239. package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +9 -7
  240. package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +2 -5
  241. package/vscode/src/vs/platform/request/common/request.js +111 -0
  242. package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +1 -0
  243. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +15 -0
  244. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +9 -0
  245. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +5 -3
  246. package/vscode/src/vs/platform/theme/common/colorRegistry.js +5 -5
  247. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +6 -2
  248. package/vscode/src/vs/platform/window/common/window.js +4 -1
  249. package/vscode/src/vs/platform/workspace/common/workspace.js +2 -1
  250. package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +2 -2
  251. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +130 -14
  252. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +76 -24
  253. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +4 -1
  254. package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -39
  255. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +309 -137
  256. package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +164 -49
  257. package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +67 -7
  258. package/vscode/src/vs/workbench/api/common/extHostComments.js +28 -0
  259. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +129 -48
  260. package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +1 -2
  261. package/vscode/src/vs/workbench/api/common/extHostDocumentsAndEditors.js +1 -1
  262. package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +5 -4
  263. package/vscode/src/vs/workbench/api/common/extHostInteractive.js +0 -1
  264. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +130 -16
  265. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +12 -1
  266. package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +14 -5
  267. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +19 -1
  268. package/vscode/src/vs/workbench/api/common/extHostSpeech.js +2 -2
  269. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +301 -75
  270. package/vscode/src/vs/workbench/api/common/extHostTypes.js +127 -45
  271. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +46 -7
  272. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +55 -2
  273. package/vscode/src/vs/workbench/api/worker/extensionHostWorker.js +1 -1
  274. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +146 -99
  275. package/vscode/src/vs/workbench/browser/actions/listCommands.js +2 -3
  276. package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +3 -4
  277. package/vscode/src/vs/workbench/browser/actions/windowActions.js +4 -8
  278. package/vscode/src/vs/workbench/browser/composite.d.ts +2 -1
  279. package/vscode/src/vs/workbench/browser/composite.js +1 -1
  280. package/vscode/src/vs/workbench/browser/editor.js +11 -1
  281. package/vscode/src/vs/workbench/browser/media/style.css.js +1 -1
  282. package/vscode/src/vs/workbench/browser/panecomposite.d.ts +2 -1
  283. package/vscode/src/vs/workbench/browser/panecomposite.js +2 -2
  284. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +4 -6
  285. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +1 -1
  286. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +4 -4
  287. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +1 -1
  288. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
  289. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +10 -10
  290. package/vscode/src/vs/workbench/browser/parts/compositePart.js +8 -5
  291. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +39 -29
  292. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +1 -1
  293. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +20 -24
  294. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +6 -4
  295. package/vscode/src/vs/workbench/browser/parts/editor/editor.autosave.contribution.js +2 -3
  296. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +52 -54
  297. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +30 -30
  298. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +1 -0
  299. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +12 -18
  300. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +1 -0
  301. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +1 -1
  302. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +7 -6
  303. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +17 -6
  304. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +13 -5
  305. package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +1 -1
  306. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +84 -71
  307. package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +2 -6
  308. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +4 -1
  309. package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +2 -2
  310. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +29 -29
  311. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
  312. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +5 -5
  313. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +3 -3
  314. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +1 -5
  315. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +9 -6
  316. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +56 -74
  317. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +1 -1
  318. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +6 -9
  319. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +4 -4
  320. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +9 -1
  321. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +55 -12
  322. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +9 -16
  323. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +1 -1
  324. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +2 -1
  325. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +4 -4
  326. package/vscode/src/vs/workbench/browser/quickaccess.js +8 -1
  327. package/vscode/src/vs/workbench/browser/workbench.contribution.js +22 -20
  328. package/vscode/src/vs/workbench/common/configuration.js +146 -43
  329. package/vscode/src/vs/workbench/common/contextkeys.js +4 -4
  330. package/vscode/src/vs/workbench/common/contributions.js +136 -20
  331. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +5 -5
  332. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +1 -1
  333. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +17 -11
  334. package/vscode/src/vs/workbench/common/editor/editorInput.js +1 -1
  335. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +2 -2
  336. package/vscode/src/vs/workbench/common/editor.d.ts +4 -0
  337. package/vscode/src/vs/workbench/common/theme.js +11 -1
  338. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +1064 -118
  339. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +7 -7
  340. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +5 -5
  341. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +306 -0
  342. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +46 -0
  343. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +177 -0
  344. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +163 -0
  345. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +1 -1
  346. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +2 -2
  347. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +31 -17
  348. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +11 -17
  349. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +18 -27
  350. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +2 -5
  351. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +34 -8
  352. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +8 -7
  353. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +142 -109
  354. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +80 -52
  355. package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommandContentWidget.js +1 -1
  356. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +44 -13
  357. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +230 -74
  358. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
  359. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +5 -5
  360. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +87 -29
  361. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +19 -3
  362. package/vscode/src/vs/workbench/contrib/chat/common/chatProvider.js +18 -3
  363. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +11 -8
  364. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -6
  365. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +11 -5
  366. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActions.contribution.js +2 -2
  367. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +71 -0
  368. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.css.js +4 -0
  369. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +256 -0
  370. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +2 -2
  371. package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +3 -4
  372. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +8 -6
  373. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +11 -11
  374. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -4
  375. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -3
  376. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -3
  377. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -10
  378. package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +9 -2
  379. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +27 -13
  380. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +41 -23
  381. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +15 -7
  382. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +22 -10
  383. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +1 -1
  384. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +1 -0
  385. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
  386. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +3 -3
  387. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +2 -2
  388. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +3 -1
  389. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +2 -3
  390. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +1 -0
  391. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +66 -2
  392. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +31 -2
  393. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +2 -2
  394. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +37 -7
  395. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +118 -25
  396. package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +1 -1
  397. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +37 -5
  398. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +24 -1
  399. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.d.ts +18 -0
  400. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +237 -140
  401. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +72 -25
  402. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.js +5 -8
  403. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +29 -4
  404. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +1 -0
  405. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +1 -0
  406. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +2 -1
  407. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +8 -7
  408. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +21 -19
  409. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +152 -120
  410. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +24 -1
  411. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  412. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +26 -25
  413. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +5 -5
  414. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +51 -12
  415. package/vscode/src/vs/workbench/contrib/files/browser/views/media/openeditors.css.js +1 -1
  416. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +24 -9
  417. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +1 -1
  418. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -0
  419. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +16 -22
  420. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.css.js +1 -1
  421. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +48 -27
  422. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatLivePreviewWidget.js +2 -2
  423. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +23 -8
  424. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +48 -6
  425. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +145 -73
  426. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +31 -9
  427. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +8 -10
  428. package/vscode/src/vs/workbench/contrib/list/browser/list.contribution.js +3 -3
  429. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +7 -3
  430. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +95 -152
  431. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +16 -25
  432. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +2 -4
  433. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -1
  434. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +19 -19
  435. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +1 -1
  436. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -0
  437. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +17 -3
  438. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +102 -15
  439. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +2 -2
  440. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +234 -0
  441. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +1 -2
  442. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +48 -24
  443. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +52 -22
  444. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +62 -3
  445. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +40 -0
  446. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +20 -6
  447. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +4 -4
  448. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +3 -27
  449. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +28 -6
  450. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +28 -3
  451. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +78 -18
  452. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +208 -1
  453. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +1 -1
  454. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +4 -4
  455. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +85 -71
  456. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +1 -2
  457. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -4
  458. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +2 -3
  459. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +82 -14
  460. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +1 -1
  461. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +0 -1
  462. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +4 -3
  463. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +92 -33
  464. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +136 -0
  465. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +6 -1
  466. package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +5 -1
  467. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +279 -0
  468. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +6 -7
  469. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +4 -0
  470. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +64 -0
  471. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +507 -0
  472. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +478 -0
  473. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +796 -0
  474. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +8 -10
  475. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +14 -20
  476. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +12 -12
  477. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +3 -3
  478. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +44 -54
  479. package/vscode/src/vs/workbench/contrib/search/common/constants.js +26 -65
  480. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +6 -9
  481. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +6 -9
  482. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +2 -2
  483. package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +2 -2
  484. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +3 -124
  485. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +2 -2
  486. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +2 -2
  487. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +5 -5
  488. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +61 -24
  489. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +3 -3
  490. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +5 -5
  491. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +24 -1
  492. package/vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.js +1 -1
  493. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +4 -4
  494. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +10 -10
  495. package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +45 -20
  496. package/vscode/src/vs/workbench/contrib/update/common/update.js +2 -1
  497. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +3 -4
  498. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +3 -3
  499. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
  500. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +1 -1
  501. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +15 -18
  502. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +2 -5
  503. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +4 -4
  504. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +2 -2
  505. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +5 -5
  506. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +193 -54
  507. package/vscode/src/vs/workbench/services/authentication/common/authentication.js +2 -1
  508. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +9 -3
  509. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +10 -0
  510. package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +3 -1
  511. package/vscode/src/vs/workbench/services/editor/browser/editorService.js +5 -0
  512. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -6
  513. package/vscode/src/vs/workbench/services/editor/common/editorPaneService.js +3 -0
  514. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +5 -1
  515. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.js +29 -0
  516. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -1
  517. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +3 -4
  518. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +4 -3
  519. package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +11 -5
  520. package/vscode/src/vs/workbench/services/extensions/common/workspaceContains.js +5 -5
  521. package/vscode/src/vs/workbench/services/history/browser/historyService.js +25 -4
  522. package/vscode/src/vs/workbench/services/history/common/history.d.ts +5 -0
  523. package/vscode/src/vs/workbench/services/language/common/languageService.js +111 -2
  524. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -2
  525. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +59 -1
  526. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +1008 -0
  527. package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +477 -0
  528. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +2 -2
  529. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +4 -1
  530. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +53 -13
  531. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -0
  532. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +2 -2
  533. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +1 -1
  534. package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +22 -9
  535. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +76 -4
  536. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +2 -2
  537. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +7 -7
  538. package/vscode/src/vs/workbench/services/timer/browser/timerService.js +1 -0
  539. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +3 -2
  540. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +1 -1
  541. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +2 -2
  542. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -9
  543. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +12 -12
  544. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +6 -1
  545. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +43 -4
  546. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +1 -1
  547. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.d.ts +16 -7
  548. package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +3 -6
  549. package/vscode-dts/vscode.proposed.activeComment.d.ts +23 -0
  550. package/vscode-dts/vscode.proposed.chatParticipant.d.ts +509 -0
  551. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +288 -0
  552. package/vscode-dts/vscode.proposed.chatProvider.d.ts +10 -1
  553. package/vscode-dts/vscode.proposed.chatVariableResolver.d.ts +56 -0
  554. package/vscode-dts/vscode.proposed.codeActionRanges.d.ts +2 -4
  555. package/vscode-dts/{vscode.proposed.chat.d.ts → vscode.proposed.contribIssueReporter.d.ts} +2 -20
  556. package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemGroupMenu.d.ts +2 -0
  557. package/vscode-dts/vscode.proposed.contribSourceControlTitleMenu.d.ts +7 -0
  558. package/vscode-dts/vscode.proposed.debugVisualization.d.ts +76 -6
  559. package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +49 -0
  560. package/vscode-dts/vscode.proposed.findFiles2.d.ts +89 -0
  561. package/vscode-dts/vscode.proposed.inlineEdit.d.ts +86 -0
  562. package/vscode-dts/vscode.proposed.interactive.d.ts +6 -3
  563. package/vscode-dts/vscode.proposed.languageModels.d.ts +184 -0
  564. package/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts +36 -0
  565. package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +6 -0
  566. package/vscode-dts/vscode.proposed.quickPickSortByLabel.d.ts +3 -0
  567. package/vscode-dts/vscode.proposed.speech.d.ts +5 -1
  568. package/vscode-dts/vscode.proposed.testCoverage.d.ts +40 -27
  569. package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +0 -98
  570. package/vscode/src/vs/platform/audioCues/browser/audioCueService.js +0 -576
  571. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +0 -348
  572. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatActions.js +0 -554
  573. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.js +0 -471
  574. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/featuredExtensionService.js +0 -159
  575. package/vscode-dts/vscode.proposed.chatAgents2.d.ts +0 -440
  576. package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +0 -139
  577. package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +0 -105
  578. package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +0 -30
@@ -1,45 +1,45 @@
1
1
  import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
2
  import '../services/markerDecorations.js';
3
- import './media/editor.css.js';
4
- import { localizeWithPath } from '../../../nls.js';
5
3
  import { DragAndDropObserver, getWindow, scheduleAtNextAnimationFrame, trackFocus } from '../../../base/browser/dom.js';
6
4
  import { onUnexpectedError } from '../../../base/common/errors.js';
7
5
  import { createEventDeliveryQueue, Emitter } from '../../../base/common/event.js';
8
6
  import { hash } from '../../../base/common/hash.js';
9
7
  import { Disposable, dispose } from '../../../base/common/lifecycle.js';
10
8
  import { Schemas } from '../../../base/common/network.js';
9
+ import './media/editor.css.js';
10
+ import { applyFontInfo } from '../config/domFontInfo.js';
11
11
  import { EditorConfiguration } from '../config/editorConfiguration.js';
12
+ import { TabFocus } from '../config/tabFocus.js';
12
13
  import { EditorExtensionsRegistry } from '../editorExtensions.js';
13
14
  import { ICodeEditorService } from '../services/codeEditorService.js';
14
15
  import { View } from '../view.js';
16
+ import { DOMLineBreaksComputerFactory } from '../view/domLineBreaksComputer.js';
15
17
  import { ViewUserInputEvents } from '../view/viewUserInputEvents.js';
18
+ import { CodeEditorContributions } from './codeEditorContributions.js';
16
19
  import { filterValidationDecorations } from '../../common/config/editorOptions.js';
17
20
  import { CursorColumns } from '../../common/core/cursorColumns.js';
21
+ import { editorUnnecessaryCodeOpacity } from '../../common/core/editorColorRegistry.js';
18
22
  import { Position } from '../../common/core/position.js';
19
23
  import { Range } from '../../common/core/range.js';
20
24
  import { Selection } from '../../common/core/selection.js';
25
+ import { WordOperations } from '../../common/cursor/cursorWordOperations.js';
21
26
  import { InternalEditorAction } from '../../common/editorAction.js';
22
27
  import { EditorType } from '../../common/editorCommon.js';
23
28
  import { EditorContextKeys } from '../../common/editorContextKeys.js';
29
+ import { ILanguageConfigurationService } from '../../common/languages/languageConfigurationRegistry.js';
24
30
  import { ModelDecorationOptions } from '../../common/model/textModel.js';
25
- import { editorUnnecessaryCodeOpacity } from '../../common/core/editorColorRegistry.js';
26
- import { editorErrorForeground, editorWarningForeground, editorInfoForeground, editorHintForeground } from '../../../platform/theme/common/colorRegistry.js';
31
+ import { ILanguageFeaturesService } from '../../common/services/languageFeatures.js';
32
+ import { MonospaceLineBreaksComputerFactory } from '../../common/viewModel/monospaceLineBreaksComputer.js';
27
33
  import { ViewModel } from '../../common/viewModel/viewModelImpl.js';
34
+ import { localizeWithPath } from '../../../nls.js';
35
+ import { IAccessibilityService } from '../../../platform/accessibility/common/accessibility.js';
28
36
  import { ICommandService } from '../../../platform/commands/common/commands.js';
29
37
  import { IContextKeyService } from '../../../platform/contextkey/common/contextkey.js';
30
38
  import { IInstantiationService } from '../../../platform/instantiation/common/instantiation.js';
31
39
  import { ServiceCollection } from '../../../platform/instantiation/common/serviceCollection.js';
32
40
  import { Severity, INotificationService } from '../../../platform/notification/common/notification.js';
41
+ import { editorErrorForeground, editorWarningForeground, editorInfoForeground, editorHintForeground } from '../../../platform/theme/common/colorRegistry.js';
33
42
  import { registerThemingParticipant, IThemeService } from '../../../platform/theme/common/themeService.js';
34
- import { IAccessibilityService } from '../../../platform/accessibility/common/accessibility.js';
35
- import { MonospaceLineBreaksComputerFactory } from '../../common/viewModel/monospaceLineBreaksComputer.js';
36
- import { DOMLineBreaksComputerFactory } from '../view/domLineBreaksComputer.js';
37
- import { WordOperations } from '../../common/cursor/cursorWordOperations.js';
38
- import { ILanguageConfigurationService } from '../../common/languages/languageConfigurationRegistry.js';
39
- import { applyFontInfo } from '../config/domFontInfo.js';
40
- import { ILanguageFeaturesService } from '../../common/services/languageFeatures.js';
41
- import { CodeEditorContributions } from './codeEditorContributions.js';
42
- import { TabFocus } from '../config/tabFocus.js';
43
43
  var CodeEditorWidget_1;
44
44
  let EDITOR_ID = 0;
45
45
  class ModelData {
@@ -167,8 +167,8 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
167
167
  this._register(this._configuration.onDidChange((e) => {
168
168
  this._onDidChangeConfiguration.fire(e);
169
169
  const options = this._configuration.options;
170
- if (e.hasChanged(143 )) {
171
- const layoutInfo = options.get(143 );
170
+ if (e.hasChanged(144 )) {
171
+ const layoutInfo = options.get(144 );
172
172
  this._onDidLayoutChange.fire(layoutInfo);
173
173
  }
174
174
  }));
@@ -217,7 +217,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
217
217
  this._actions.set(internalAction.id, internalAction);
218
218
  }
219
219
  const isDropIntoEnabled = () => {
220
- return !this._configuration.options.get(90 )
220
+ return !this._configuration.options.get(91 )
221
221
  && this._configuration.options.get(36 ).enabled;
222
222
  };
223
223
  this._register(new DragAndDropObserver(this._domElement, {
@@ -303,7 +303,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
303
303
  if (!this._modelData) {
304
304
  return null;
305
305
  }
306
- return WordOperations.getWordAtPosition(this._modelData.model, this._configuration.options.get(129 ), position);
306
+ return WordOperations.getWordAtPosition(this._modelData.model, this._configuration.options.get(130 ), position);
307
307
  }
308
308
  getValue(options = null) {
309
309
  if (!this._modelData) {
@@ -353,7 +353,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
353
353
  this._removeDecorationTypes();
354
354
  this._onDidChangeModel.fire(e);
355
355
  this._postDetachModelCleanup(detachedModel);
356
- this._contributions.onAfterModelAttached();
356
+ this._contributionsDisposable = this._contributions.onAfterModelAttached();
357
357
  }
358
358
  _removeDecorationTypes() {
359
359
  this._decorationTypeKeysToIds = {};
@@ -860,7 +860,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
860
860
  if (!this._modelData) {
861
861
  return false;
862
862
  }
863
- if (this._configuration.options.get(90 )) {
863
+ if (this._configuration.options.get(91 )) {
864
864
  return false;
865
865
  }
866
866
  this._modelData.model.pushStackElement();
@@ -870,7 +870,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
870
870
  if (!this._modelData) {
871
871
  return false;
872
872
  }
873
- if (this._configuration.options.get(90 )) {
873
+ if (this._configuration.options.get(91 )) {
874
874
  return false;
875
875
  }
876
876
  this._modelData.model.popStackElement();
@@ -880,7 +880,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
880
880
  if (!this._modelData) {
881
881
  return false;
882
882
  }
883
- if (this._configuration.options.get(90 )) {
883
+ if (this._configuration.options.get(91 )) {
884
884
  return false;
885
885
  }
886
886
  let cursorStateComputer;
@@ -973,7 +973,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
973
973
  }
974
974
  }
975
975
  const oldDecorationsIds = this._decorationTypeKeysToIds[decorationTypeKey] || [];
976
- this._decorationTypeKeysToIds[decorationTypeKey] = this.deltaDecorations(oldDecorationsIds, newModelDecorations);
976
+ this.changeDecorations(accessor => this._decorationTypeKeysToIds[decorationTypeKey] = accessor.deltaDecorations(oldDecorationsIds, newModelDecorations));
977
977
  }
978
978
  setDecorationsByTypeFast(decorationTypeKey, ranges) {
979
979
  const oldDecorationsSubTypes = this._decorationTypeSubtypes[decorationTypeKey] || {};
@@ -987,12 +987,12 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
987
987
  newModelDecorations[i] = { range: ranges[i], options: opts };
988
988
  }
989
989
  const oldDecorationsIds = this._decorationTypeKeysToIds[decorationTypeKey] || [];
990
- this._decorationTypeKeysToIds[decorationTypeKey] = this.deltaDecorations(oldDecorationsIds, newModelDecorations);
990
+ this.changeDecorations(accessor => this._decorationTypeKeysToIds[decorationTypeKey] = accessor.deltaDecorations(oldDecorationsIds, newModelDecorations));
991
991
  }
992
992
  removeDecorationsByType(decorationTypeKey) {
993
993
  const oldDecorationsIds = this._decorationTypeKeysToIds[decorationTypeKey];
994
994
  if (oldDecorationsIds) {
995
- this.deltaDecorations(oldDecorationsIds, []);
995
+ this.changeDecorations(accessor => accessor.deltaDecorations(oldDecorationsIds, []));
996
996
  }
997
997
  if (this._decorationTypeKeysToIds.hasOwnProperty(decorationTypeKey)) {
998
998
  delete this._decorationTypeKeysToIds[decorationTypeKey];
@@ -1003,7 +1003,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
1003
1003
  }
1004
1004
  getLayoutInfo() {
1005
1005
  const options = this._configuration.options;
1006
- const layoutInfo = options.get(143 );
1006
+ const layoutInfo = options.get(144 );
1007
1007
  return layoutInfo;
1008
1008
  }
1009
1009
  createOverviewRuler(cssClassName) {
@@ -1171,13 +1171,13 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
1171
1171
  }
1172
1172
  const position = this._modelData.model.validatePosition(rawPosition);
1173
1173
  const options = this._configuration.options;
1174
- const layoutInfo = options.get(143 );
1174
+ const layoutInfo = options.get(144 );
1175
1175
  const top = CodeEditorWidget_1._getVerticalOffsetForPosition(this._modelData, position.lineNumber, position.column) - this.getScrollTop();
1176
1176
  const left = this._modelData.view.getOffsetForColumn(position.lineNumber, position.column) + layoutInfo.glyphMarginWidth + layoutInfo.lineNumbersWidth + layoutInfo.decorationsWidth - this.getScrollLeft();
1177
1177
  return {
1178
1178
  top: top,
1179
1179
  left: left,
1180
- height: options.get(66 )
1180
+ height: options.get(67 )
1181
1181
  };
1182
1182
  }
1183
1183
  getOffsetForColumn(lineNumber, column) {
@@ -1255,7 +1255,7 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
1255
1255
  break;
1256
1256
  case 6 : {
1257
1257
  if (e.reachedMaxCursorCount) {
1258
- const multiCursorLimit = this.getOption(79 );
1258
+ const multiCursorLimit = this.getOption(80 );
1259
1259
  const message = ( localizeWithPath(
1260
1260
  'vs/editor/browser/widget/codeEditorWidget',
1261
1261
  'cursors.maximum',
@@ -1432,6 +1432,8 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
1432
1432
  detachedModel?.removeAllDecorationsWithOwnerId(this._id);
1433
1433
  }
1434
1434
  _detachModel() {
1435
+ this._contributionsDisposable?.dispose();
1436
+ this._contributionsDisposable = undefined;
1435
1437
  if (!this._modelData) {
1436
1438
  return null;
1437
1439
  }
@@ -1558,7 +1560,7 @@ class EditorContextKeysManager extends Disposable {
1558
1560
  _updateFromConfig() {
1559
1561
  const options = this._editor.getOptions();
1560
1562
  this._tabMovesFocus.set(TabFocus.getTabFocusMode());
1561
- this._editorReadonly.set(options.get(90 ));
1563
+ this._editorReadonly.set(options.get(91 ));
1562
1564
  this._inDiffEditor.set(options.get(61 ));
1563
1565
  this._editorColumnSelection.set(options.get(22 ));
1564
1566
  }
@@ -1609,7 +1611,7 @@ class EditorModeContext extends Disposable {
1609
1611
  this._hasDocumentSelectionFormattingProvider = EditorContextKeys.hasDocumentSelectionFormattingProvider.bindTo(_contextKeyService);
1610
1612
  this._hasMultipleDocumentFormattingProvider = EditorContextKeys.hasMultipleDocumentFormattingProvider.bindTo(_contextKeyService);
1611
1613
  this._hasMultipleDocumentSelectionFormattingProvider = EditorContextKeys.hasMultipleDocumentSelectionFormattingProvider.bindTo(_contextKeyService);
1612
- this._isInWalkThrough = EditorContextKeys.isInWalkThroughSnippet.bindTo(_contextKeyService);
1614
+ this._isInEmbeddedEditor = EditorContextKeys.isInEmbeddedEditor.bindTo(_contextKeyService);
1613
1615
  const update = () => this._update();
1614
1616
  this._register(_editor.onDidChangeModel(update));
1615
1617
  this._register(_editor.onDidChangeModelLanguage(update));
@@ -1652,7 +1654,7 @@ class EditorModeContext extends Disposable {
1652
1654
  this._hasDocumentFormattingProvider.reset();
1653
1655
  this._hasDocumentSelectionFormattingProvider.reset();
1654
1656
  this._hasSignatureHelpProvider.reset();
1655
- this._isInWalkThrough.reset();
1657
+ this._isInEmbeddedEditor.reset();
1656
1658
  });
1657
1659
  }
1658
1660
  _update() {
@@ -1681,7 +1683,7 @@ class EditorModeContext extends Disposable {
1681
1683
  this._hasDocumentSelectionFormattingProvider.set(( this._languageFeaturesService.documentRangeFormattingEditProvider.has(model)));
1682
1684
  this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(model).length + this._languageFeaturesService.documentRangeFormattingEditProvider.all(model).length > 1);
1683
1685
  this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(model).length > 1);
1684
- this._isInWalkThrough.set(model.uri.scheme === Schemas.walkThroughSnippet);
1686
+ this._isInEmbeddedEditor.set(model.uri.scheme === Schemas.walkThroughSnippet || model.uri.scheme === Schemas.vscodeChatCodeBlock);
1685
1687
  });
1686
1688
  }
1687
1689
  }
@@ -1,4 +1,4 @@
1
1
  import n from '../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
2
- var css = ".monaco-diff-editor .diff-review-line-number{color:var(--vscode-editorLineNumber-foreground);display:inline-block;text-align:right}.monaco-diff-editor .diff-review{position:absolute;user-select:none;-webkit-user-select:none;z-index:99}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;position:absolute}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;vertical-align:middle;width:10px}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px;z-index:100}.monaco-diff-editor .diff-review-actions .action-label{height:16px;margin:2px 0;width:16px}.monaco-diff-editor .revertButton{cursor:pointer}";
2
+ var css = ".monaco-component.diff-review{user-select:none;-webkit-user-select:none;z-index:99}.monaco-diff-editor .diff-review{position:absolute}.monaco-component.diff-review .diff-review-line-number{color:var(--vscode-editorLineNumber-foreground);display:inline-block;text-align:right}.monaco-component.diff-review .diff-review-summary{padding-left:10px}.monaco-component.diff-review .diff-review-shadow{box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset;position:absolute}.monaco-component.diff-review .diff-review-row{white-space:pre}.monaco-component.diff-review .diff-review-table{display:table;min-width:100%}.monaco-component.diff-review .diff-review-row{display:table-row;width:100%}.monaco-component.diff-review .diff-review-spacer{display:inline-block;vertical-align:middle;width:10px}.monaco-component.diff-review .diff-review-spacer>.codicon{font-size:9px!important}.monaco-component.diff-review .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px;z-index:100}.monaco-component.diff-review .diff-review-actions .action-label{height:16px;margin:2px 0;width:16px}.monaco-component.diff-review .revertButton{cursor:pointer}";
3
3
  n(css,{});
4
4
  export { css, css as default };
@@ -21,7 +21,7 @@ import { LineTokens } from '../../../../common/tokens/lineTokens.js';
21
21
  import { renderViewLine2, RenderLineInput } from '../../../../common/viewLayout/viewLineRenderer.js';
22
22
  import { ViewLineRenderingData } from '../../../../common/viewModel.js';
23
23
  import { localizeWithPath } from '../../../../../nls.js';
24
- import { AudioCue, IAudioCueService } from '../../../../../platform/audioCues/browser/audioCueService.js';
24
+ import { AccessibilitySignal, IAccessibilitySignalService } from '../../../../../platform/accessibilitySignal/browser/accessibilitySignalService.js';
25
25
  import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
26
26
  import { registerIcon } from '../../../../../platform/theme/common/iconRegistry.js';
27
27
  import './accessibleDiffViewer.css.js';
@@ -45,7 +45,7 @@ const accessibleDiffViewerCloseIcon = registerIcon('diff-review-close', Codicon.
45
45
  )));
46
46
  let AccessibleDiffViewer = class AccessibleDiffViewer extends Disposable {
47
47
  static { this._ttPolicy = createTrustedTypesPolicy('diffReview', { createHTML: value => value }); }
48
- constructor(_parentNode, _visible, _setVisible, _canClose, _width, _height, _diffs, _editors, _instantiationService) {
48
+ constructor(_parentNode, _visible, _setVisible, _canClose, _width, _height, _diffs, _models, _instantiationService) {
49
49
  super();
50
50
  this._parentNode = _parentNode;
51
51
  this._visible = _visible;
@@ -54,7 +54,7 @@ let AccessibleDiffViewer = class AccessibleDiffViewer extends Disposable {
54
54
  this._width = _width;
55
55
  this._height = _height;
56
56
  this._diffs = _diffs;
57
- this._editors = _editors;
57
+ this._models = _models;
58
58
  this._instantiationService = _instantiationService;
59
59
  this._state = derivedWithStore(this, (reader, store) => {
60
60
  const visible = this._visible.read(reader);
@@ -62,8 +62,8 @@ let AccessibleDiffViewer = class AccessibleDiffViewer extends Disposable {
62
62
  if (!visible) {
63
63
  return null;
64
64
  }
65
- const model = store.add(this._instantiationService.createInstance(ViewModel, this._diffs, this._editors, this._setVisible, this._canClose));
66
- const view = store.add(this._instantiationService.createInstance(View, this._parentNode, model, this._width, this._height, this._editors));
65
+ const model = store.add(this._instantiationService.createInstance(ViewModel, this._diffs, this._models, this._setVisible, this._canClose));
66
+ const view = store.add(this._instantiationService.createInstance(View, this._parentNode, model, this._width, this._height, this._models));
67
67
  return { model, view, };
68
68
  }).recomputeInitiallyAndOnChange(this._store);
69
69
  }
@@ -92,13 +92,13 @@ AccessibleDiffViewer = ( __decorate([
92
92
  ( __param(8, IInstantiationService))
93
93
  ], AccessibleDiffViewer));
94
94
  let ViewModel = class ViewModel extends Disposable {
95
- constructor(_diffs, _editors, _setVisible, canClose, _audioCueService) {
95
+ constructor(_diffs, _models, _setVisible, canClose, _accessibilitySignalService) {
96
96
  super();
97
97
  this._diffs = _diffs;
98
- this._editors = _editors;
98
+ this._models = _models;
99
99
  this._setVisible = _setVisible;
100
100
  this.canClose = canClose;
101
- this._audioCueService = _audioCueService;
101
+ this._accessibilitySignalService = _accessibilitySignalService;
102
102
  this._groups = observableValue(this, []);
103
103
  this._currentGroupIdx = observableValue(this, 0);
104
104
  this._currentElementIdx = observableValue(this, 0);
@@ -112,9 +112,9 @@ let ViewModel = class ViewModel extends Disposable {
112
112
  this._groups.set([], undefined);
113
113
  return;
114
114
  }
115
- const groups = computeViewElementGroups(diffs, this._editors.original.getModel().getLineCount(), this._editors.modified.getModel().getLineCount());
115
+ const groups = computeViewElementGroups(diffs, this._models.getOriginalModel().getLineCount(), this._models.getModifiedModel().getLineCount());
116
116
  transaction(tx => {
117
- const p = this._editors.modified.getPosition();
117
+ const p = this._models.getModifiedPosition();
118
118
  if (p) {
119
119
  const nextGroup = groups.findIndex(g => p?.lineNumber < g.range.modified.endLineNumberExclusive);
120
120
  if (nextGroup !== -1) {
@@ -127,17 +127,17 @@ let ViewModel = class ViewModel extends Disposable {
127
127
  this._register(autorun(reader => {
128
128
  const currentViewItem = this.currentElement.read(reader);
129
129
  if (currentViewItem?.type === LineType.Deleted) {
130
- this._audioCueService.playAudioCue(AudioCue.diffLineDeleted, { source: 'accessibleDiffViewer.currentElementChanged' });
130
+ this._accessibilitySignalService.playSignal(AccessibilitySignal.diffLineDeleted, { source: 'accessibleDiffViewer.currentElementChanged' });
131
131
  }
132
132
  else if (currentViewItem?.type === LineType.Added) {
133
- this._audioCueService.playAudioCue(AudioCue.diffLineInserted, { source: 'accessibleDiffViewer.currentElementChanged' });
133
+ this._accessibilitySignalService.playSignal(AccessibilitySignal.diffLineInserted, { source: 'accessibleDiffViewer.currentElementChanged' });
134
134
  }
135
135
  }));
136
136
  this._register(autorun(reader => {
137
137
  const currentViewItem = this.currentElement.read(reader);
138
138
  if (currentViewItem && currentViewItem.type !== LineType.Header) {
139
139
  const lineNumber = currentViewItem.modifiedLineNumber ?? currentViewItem.diff.modified.startLineNumber;
140
- this._editors.modified.setSelection(Range.fromPositions(( new Position(lineNumber, 1))));
140
+ this._models.modifiedSetSelection(Range.fromPositions(( new Position(lineNumber, 1))));
141
141
  }
142
142
  }));
143
143
  }
@@ -178,30 +178,32 @@ let ViewModel = class ViewModel extends Disposable {
178
178
  });
179
179
  }
180
180
  revealCurrentElementInEditor() {
181
+ if (!this.canClose.get()) {
182
+ return;
183
+ }
181
184
  this._setVisible(false, undefined);
182
185
  const curElem = this.currentElement.get();
183
186
  if (curElem) {
184
187
  if (curElem.type === LineType.Deleted) {
185
- this._editors.original.setSelection(Range.fromPositions(( new Position(curElem.originalLineNumber, 1))));
186
- this._editors.original.revealLine(curElem.originalLineNumber);
187
- this._editors.original.focus();
188
+ this._models.originalReveal(Range.fromPositions(( new Position(curElem.originalLineNumber, 1))));
188
189
  }
189
190
  else {
190
- if (curElem.type !== LineType.Header) {
191
- this._editors.modified.setSelection(Range.fromPositions(( new Position(curElem.modifiedLineNumber, 1))));
192
- this._editors.modified.revealLine(curElem.modifiedLineNumber);
193
- }
194
- this._editors.modified.focus();
191
+ this._models.modifiedReveal(curElem.type !== LineType.Header
192
+ ? Range.fromPositions(( new Position(curElem.modifiedLineNumber, 1)))
193
+ : undefined);
195
194
  }
196
195
  }
197
196
  }
198
197
  close() {
198
+ if (!this.canClose.get()) {
199
+ return;
200
+ }
199
201
  this._setVisible(false, undefined);
200
- this._editors.modified.focus();
202
+ this._models.modifiedFocus();
201
203
  }
202
204
  };
203
205
  ViewModel = ( __decorate([
204
- ( __param(4, IAudioCueService))
206
+ ( __param(4, IAccessibilitySignalService))
205
207
  ], ViewModel));
206
208
  const viewElementGroupLineMargin = 3;
207
209
  function computeViewElementGroups(diffs, originalLineCount, modifiedLineCount) {
@@ -289,16 +291,16 @@ class UnchangedLineViewElement {
289
291
  }
290
292
  }
291
293
  let View = class View extends Disposable {
292
- constructor(_element, _model, _width, _height, _editors, _languageService) {
294
+ constructor(_element, _model, _width, _height, _models, _languageService) {
293
295
  super();
294
296
  this._element = _element;
295
297
  this._model = _model;
296
298
  this._width = _width;
297
299
  this._height = _height;
298
- this._editors = _editors;
300
+ this._models = _models;
299
301
  this._languageService = _languageService;
300
302
  this.domNode = this._element;
301
- this.domNode.className = 'diff-review monaco-editor-background';
303
+ this.domNode.className = 'monaco-component diff-review monaco-editor-background';
302
304
  const actionBarContainer = document.createElement('div');
303
305
  actionBarContainer.className = 'diff-review-actions';
304
306
  this._actionBar = this._register(( new ActionBar(actionBarContainer)));
@@ -317,6 +319,11 @@ let View = class View extends Disposable {
317
319
  this._content.setAttribute('role', 'code');
318
320
  this._scrollbar = this._register(( new DomScrollableElement(this._content, {})));
319
321
  reset(this.domNode, this._scrollbar.getDomNode(), actionBarContainer);
322
+ this._register(autorun(r => {
323
+ this._height.read(r);
324
+ this._width.read(r);
325
+ this._scrollbar.scanDomNode();
326
+ }));
320
327
  this._register(toDisposable(() => { reset(this.domNode); }));
321
328
  this._register(applyStyle(this.domNode, { width: this._width, height: this._height }));
322
329
  this._register(applyStyle(this._content, { width: this._width, height: this._height }));
@@ -352,8 +359,8 @@ let View = class View extends Disposable {
352
359
  }));
353
360
  }
354
361
  _render(store) {
355
- const originalOptions = this._editors.original.getOptions();
356
- const modifiedOptions = this._editors.modified.getOptions();
362
+ const originalOptions = this._models.getOriginalOptions();
363
+ const modifiedOptions = this._models.getModifiedOptions();
357
364
  const container = document.createElement('div');
358
365
  container.className = 'diff-review-table';
359
366
  container.setAttribute('role', 'list');
@@ -364,14 +371,14 @@ let View = class View extends Disposable {
364
371
  )));
365
372
  applyFontInfo(container, modifiedOptions.get(50 ));
366
373
  reset(this._content, container);
367
- const originalModel = this._editors.original.getModel();
368
- const modifiedModel = this._editors.modified.getModel();
374
+ const originalModel = this._models.getOriginalModel();
375
+ const modifiedModel = this._models.getModifiedModel();
369
376
  if (!originalModel || !modifiedModel) {
370
377
  return;
371
378
  }
372
379
  const originalModelOpts = originalModel.getOptions();
373
380
  const modifiedModelOpts = modifiedModel.getOptions();
374
- const lineHeight = modifiedOptions.get(66 );
381
+ const lineHeight = modifiedOptions.get(67 );
375
382
  const group = this._model.currentGroup.get();
376
383
  for (const viewItem of group?.lines || []) {
377
384
  if (!group) {
@@ -439,9 +446,9 @@ let View = class View extends Disposable {
439
446
  this._scrollbar.scanDomNode();
440
447
  }
441
448
  _createRow(item, lineHeight, width, originalOptions, originalModel, originalModelOpts, modifiedOptions, modifiedModel, modifiedModelOpts) {
442
- const originalLayoutInfo = originalOptions.get(143 );
449
+ const originalLayoutInfo = originalOptions.get(144 );
443
450
  const originalLineNumbersWidth = originalLayoutInfo.glyphMarginWidth + originalLayoutInfo.lineNumbersWidth;
444
- const modifiedLayoutInfo = modifiedOptions.get(143 );
451
+ const modifiedLayoutInfo = modifiedOptions.get(144 );
445
452
  const modifiedLineNumbersWidth = 10 + modifiedLayoutInfo.glyphMarginWidth + modifiedLayoutInfo.lineNumbersWidth;
446
453
  let rowClassName = 'diff-review-row';
447
454
  let lineNumbersExtraClassName = '';
@@ -593,9 +600,9 @@ let View = class View extends Disposable {
593
600
  fontInfo.spaceWidth,
594
601
  fontInfo.middotWidth,
595
602
  fontInfo.wsmiddotWidth,
596
- options.get(116 ),
597
- options.get(98 ),
598
- options.get(93 ),
603
+ options.get(117 ),
604
+ options.get(99 ),
605
+ options.get(94 ),
599
606
  options.get(51 ) !== EditorFontLigatures.OFF,
600
607
  null
601
608
  )));
@@ -605,4 +612,42 @@ let View = class View extends Disposable {
605
612
  View = ( __decorate([
606
613
  ( __param(5, ILanguageService))
607
614
  ], View));
608
- export { AccessibleDiffViewer };
615
+ class AccessibleDiffViewerModelFromEditors {
616
+ constructor(editors) {
617
+ this.editors = editors;
618
+ }
619
+ getOriginalModel() {
620
+ return this.editors.original.getModel();
621
+ }
622
+ getOriginalOptions() {
623
+ return this.editors.original.getOptions();
624
+ }
625
+ originalReveal(range) {
626
+ this.editors.original.revealRange(range);
627
+ this.editors.original.setSelection(range);
628
+ this.editors.original.focus();
629
+ }
630
+ getModifiedModel() {
631
+ return this.editors.modified.getModel();
632
+ }
633
+ getModifiedOptions() {
634
+ return this.editors.modified.getOptions();
635
+ }
636
+ modifiedReveal(range) {
637
+ if (range) {
638
+ this.editors.modified.revealRange(range);
639
+ this.editors.modified.setSelection(range);
640
+ }
641
+ this.editors.modified.focus();
642
+ }
643
+ modifiedSetSelection(range) {
644
+ this.editors.modified.setSelection(range);
645
+ }
646
+ modifiedFocus() {
647
+ this.editors.modified.focus();
648
+ }
649
+ getModifiedPosition() {
650
+ return this.editors.modified.getPosition() ?? undefined;
651
+ }
652
+ }
653
+ export { AccessibleDiffViewer, AccessibleDiffViewerModelFromEditors };
@@ -8,6 +8,7 @@ import { IInstantiationService } from '../../../../../platform/instantiation/com
8
8
  import { IKeybindingService } from '../../../../../platform/keybinding/common/keybinding.js';
9
9
  import { Position } from '../../../../common/core/position.js';
10
10
  import { observableFromEvent } from '../../../../../base/common/observableInternal/utils.js';
11
+ import { derivedOpts } from '../../../../../base/common/observableInternal/derived.js';
11
12
  import { autorunHandleChanges } from '../../../../../base/common/observableInternal/autorun.js';
12
13
  let DiffEditorEditors = class DiffEditorEditors extends Disposable {
13
14
  get onDidContentSizeChange() { return this._onDidContentSizeChange.event; }
@@ -26,7 +27,8 @@ let DiffEditorEditors = class DiffEditorEditors extends Disposable {
26
27
  this.modifiedScrollTop = observableFromEvent(this.modified.onDidScrollChange, () => this.modified.getScrollTop());
27
28
  this.modifiedScrollHeight = observableFromEvent(this.modified.onDidScrollChange, () => this.modified.getScrollHeight());
28
29
  this.modifiedSelections = observableFromEvent(this.modified.onDidChangeCursorSelection, () => this.modified.getSelections() ?? []);
29
- this.modifiedCursor = observableFromEvent(this.modified.onDidChangeCursorPosition, () => this.modified.getPosition() ?? ( new Position(1, 1)));
30
+ this.modifiedCursor = derivedOpts({ owner: this, equalityComparer: Position.equals }, reader => this.modifiedSelections.read(reader)[0]?.getPosition() ?? ( new Position(1, 1)));
31
+ this.originalCursor = observableFromEvent(this.original.onDidChangeCursorPosition, () => this.original.getPosition() ?? ( new Position(1, 1)));
30
32
  this._register(autorunHandleChanges({
31
33
  createEmptyChangeSummary: () => ({}),
32
34
  handleChange: (ctx, changeSummary) => {
@@ -51,12 +51,12 @@ let DiffEditorViewZones = class DiffEditorViewZones extends Disposable {
51
51
  updateImmediately.schedule();
52
52
  } }));
53
53
  this._register(this._editors.original.onDidChangeConfiguration((args) => {
54
- if (args.hasChanged(144 ) || args.hasChanged(66 )) {
54
+ if (args.hasChanged(145 ) || args.hasChanged(67 )) {
55
55
  updateImmediately.schedule();
56
56
  }
57
57
  }));
58
58
  this._register(this._editors.modified.onDidChangeConfiguration((args) => {
59
- if (args.hasChanged(144 ) || args.hasChanged(66 )) {
59
+ if (args.hasChanged(145 ) || args.hasChanged(67 )) {
60
60
  updateImmediately.schedule();
61
61
  }
62
62
  }));
@@ -131,7 +131,7 @@ let DiffEditorViewZones = class DiffEditorViewZones extends Disposable {
131
131
  }
132
132
  const lineBreakData = deletedCodeLineBreaksComputer?.finalize() ?? [];
133
133
  let lineBreakDataIdx = 0;
134
- const modLineHeight = this._editors.modified.getOption(66 );
134
+ const modLineHeight = this._editors.modified.getOption(67 );
135
135
  const syncedMovedText = this._diffModel.read(reader)?.movedTextToCompare.read(reader);
136
136
  const mightContainNonBasicASCII = this._editors.original.getModel()?.mightContainNonBasicASCII() ?? false;
137
137
  const mightContainRTL = this._editors.original.getModel()?.mightContainRTL() ?? false;
@@ -359,8 +359,8 @@ DiffEditorViewZones = ( __decorate([
359
359
  function computeRangeAlignment(originalEditor, modifiedEditor, diffs, originalEditorAlignmentViewZones, modifiedEditorAlignmentViewZones, innerHunkAlignment) {
360
360
  const originalLineHeightOverrides = ( new ArrayQueue(getAdditionalLineHeights(originalEditor, originalEditorAlignmentViewZones)));
361
361
  const modifiedLineHeightOverrides = ( new ArrayQueue(getAdditionalLineHeights(modifiedEditor, modifiedEditorAlignmentViewZones)));
362
- const origLineHeight = originalEditor.getOption(66 );
363
- const modLineHeight = modifiedEditor.getOption(66 );
362
+ const origLineHeight = originalEditor.getOption(67 );
363
+ const modLineHeight = modifiedEditor.getOption(67 );
364
364
  const result = [];
365
365
  let lastOriginalLineNumber = 0;
366
366
  let lastModifiedLineNumber = 0;
@@ -465,9 +465,9 @@ function computeRangeAlignment(originalEditor, modifiedEditor, diffs, originalEd
465
465
  function getAdditionalLineHeights(editor, viewZonesToIgnore) {
466
466
  const viewZoneHeights = [];
467
467
  const wrappingZoneHeights = [];
468
- const hasWrapping = editor.getOption(144 ).wrappingColumn !== -1;
468
+ const hasWrapping = editor.getOption(145 ).wrappingColumn !== -1;
469
469
  const coordinatesConverter = editor._getViewModel().coordinatesConverter;
470
- const editorLineHeight = editor.getOption(66 );
470
+ const editorLineHeight = editor.getOption(67 );
471
471
  if (hasWrapping) {
472
472
  for (let i = 1; i <= editor.getModel().getLineCount(); i++) {
473
473
  const lineCount = coordinatesConverter.getModelLineViewLineCount(i);
@@ -31,14 +31,14 @@ class InlineDiffDeletedCodeMargin extends Disposable {
31
31
  this._diffActions = document.createElement('div');
32
32
  this._diffActions.className = ThemeIcon.asClassName(Codicon.lightBulb) + ' lightbulb-glyph';
33
33
  this._diffActions.style.position = 'absolute';
34
- const lineHeight = this._modifiedEditor.getOption(66 );
34
+ const lineHeight = this._modifiedEditor.getOption(67 );
35
35
  this._diffActions.style.right = '0px';
36
36
  this._diffActions.style.visibility = 'hidden';
37
37
  this._diffActions.style.height = `${lineHeight}px`;
38
38
  this._diffActions.style.lineHeight = `${lineHeight}px`;
39
39
  this._marginDomNode.appendChild(this._diffActions);
40
40
  let currentLineNumberOffset = 0;
41
- const useShadowDOM = _modifiedEditor.getOption(126 ) && !isIOS;
41
+ const useShadowDOM = _modifiedEditor.getOption(127 ) && !isIOS;
42
42
  const showContextMenu = (x, y) => {
43
43
  this._contextMenuService.showContextMenu({
44
44
  domForShadowRoot: useShadowDOM ? _modifiedEditor.getDomNode() ?? undefined : undefined,
@@ -94,7 +94,7 @@ class InlineDiffDeletedCodeMargin extends Disposable {
94
94
  await this._clipboardService.writeText(lineContent);
95
95
  })));
96
96
  }
97
- const readOnly = _modifiedEditor.getOption(90 );
97
+ const readOnly = _modifiedEditor.getOption(91 );
98
98
  if (!readOnly) {
99
99
  actions.push(( new Action('diff.inline.revertChange', ( localizeWithPath(
100
100
  'vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin',
@@ -57,18 +57,18 @@ class RenderOptions {
57
57
  static fromEditor(editor) {
58
58
  const modifiedEditorOptions = editor.getOptions();
59
59
  const fontInfo = modifiedEditorOptions.get(50 );
60
- const layoutInfo = modifiedEditorOptions.get(143 );
60
+ const layoutInfo = modifiedEditorOptions.get(144 );
61
61
  return ( new RenderOptions(
62
62
  editor.getModel()?.getOptions().tabSize || 0,
63
63
  fontInfo,
64
64
  modifiedEditorOptions.get(33 ),
65
65
  fontInfo.typicalHalfwidthCharacterWidth,
66
- modifiedEditorOptions.get(103 ),
67
- modifiedEditorOptions.get(66 ),
66
+ modifiedEditorOptions.get(104 ),
67
+ modifiedEditorOptions.get(67 ),
68
68
  layoutInfo.decorationsWidth,
69
- modifiedEditorOptions.get(116 ),
70
- modifiedEditorOptions.get(98 ),
71
- modifiedEditorOptions.get(93 ),
69
+ modifiedEditorOptions.get(117 ),
70
+ modifiedEditorOptions.get(99 ),
71
+ modifiedEditorOptions.get(94 ),
72
72
  modifiedEditorOptions.get(51 )
73
73
  ));
74
74
  }