@codingame/monaco-vscode-api 19.1.4 → 20.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 (687) hide show
  1. package/missing-services.js +141 -54
  2. package/package.json +8 -8
  3. package/services.d.ts +5 -5
  4. package/services.js +3 -3
  5. package/vscode/src/vs/base/browser/dom.d.ts +7 -5
  6. package/vscode/src/vs/base/browser/dom.js +21 -132
  7. package/vscode/src/vs/base/browser/domSanitize.d.ts +28 -0
  8. package/vscode/src/vs/base/browser/domSanitize.js +175 -0
  9. package/vscode/src/vs/base/browser/formattedTextRenderer.d.ts +2 -5
  10. package/vscode/src/vs/base/browser/formattedTextRenderer.js +13 -20
  11. package/vscode/src/vs/base/browser/markdownRenderer.d.ts +23 -13
  12. package/vscode/src/vs/base/browser/markdownRenderer.js +155 -126
  13. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +2 -0
  14. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +9 -11
  15. package/vscode/src/vs/base/browser/ui/button/button.d.ts +2 -0
  16. package/vscode/src/vs/base/browser/ui/button/button.js +24 -15
  17. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  18. package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +5 -10
  19. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css +9 -0
  20. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +3 -21
  21. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +7 -7
  22. package/vscode/src/vs/base/browser/ui/list/listPaging.d.ts +1 -1
  23. package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +2 -0
  24. package/vscode/src/vs/base/browser/ui/list/listWidget.js +3 -0
  25. package/vscode/src/vs/base/browser/ui/scrollbar/abstractScrollbar.js +9 -5
  26. package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.d.ts +3 -0
  27. package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +48 -1
  28. package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElementOptions.d.ts +2 -0
  29. package/vscode/src/vs/base/browser/ui/toggle/toggle.css +0 -3
  30. package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +22 -12
  31. package/vscode/src/vs/base/browser/ui/toggle/toggle.js +93 -33
  32. package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +3 -0
  33. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +3 -0
  34. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.d.ts +3 -1
  35. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +19 -17
  36. package/vscode/src/vs/base/browser/webWorkerFactory.d.ts +1 -1
  37. package/vscode/src/vs/base/browser/webWorkerFactory.js +3 -2
  38. package/vscode/src/vs/base/common/arrays.js +4 -1
  39. package/vscode/src/vs/base/common/arraysFind.d.ts +1 -0
  40. package/vscode/src/vs/base/common/async.d.ts +26 -0
  41. package/vscode/src/vs/base/common/async.js +103 -1
  42. package/vscode/src/vs/base/common/codicons.d.ts +1 -0
  43. package/vscode/src/vs/base/common/codiconsLibrary.d.ts +1 -0
  44. package/vscode/src/vs/base/common/codiconsLibrary.js +1 -0
  45. package/vscode/src/vs/base/common/lifecycle.js +4 -0
  46. package/vscode/src/vs/base/common/marshallingIds.d.ts +3 -1
  47. package/vscode/src/vs/base/common/marshallingIds.js +2 -0
  48. package/vscode/src/vs/base/common/network.d.ts +2 -1
  49. package/vscode/src/vs/base/common/network.js +2 -1
  50. package/vscode/src/vs/base/common/oauth.d.ts +2 -8
  51. package/vscode/src/vs/base/common/oauth.js +6 -27
  52. package/vscode/src/vs/base/common/observableInternal/changeTracker.d.ts +10 -0
  53. package/vscode/src/vs/base/common/observableInternal/changeTracker.js +33 -1
  54. package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
  55. package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js +22 -1
  56. package/vscode/src/vs/base/common/observableInternal/map.d.ts +24 -0
  57. package/vscode/src/vs/base/common/observableInternal/map.js +63 -0
  58. package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +1 -0
  59. package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +8 -0
  60. package/vscode/src/vs/base/common/platform.js +1 -1
  61. package/vscode/src/vs/base/common/product.d.ts +19 -7
  62. package/vscode/src/vs/base/common/strings.d.ts +1 -0
  63. package/vscode/src/vs/base/common/strings.js +16 -1
  64. package/vscode/src/vs/editor/browser/config/editorConfiguration.js +4 -4
  65. package/vscode/src/vs/editor/browser/config/migrateOptions.js +1 -0
  66. package/vscode/src/vs/editor/browser/controller/dragScrolling.d.ts +48 -0
  67. package/vscode/src/vs/editor/browser/controller/dragScrolling.js +182 -0
  68. package/vscode/src/vs/editor/browser/controller/editContext/clipboardUtils.d.ts +1 -0
  69. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +3 -5
  70. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +30 -73
  71. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentRich.d.ts +35 -0
  72. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +329 -0
  73. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentSimple.d.ts +31 -0
  74. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentSimple.js +176 -0
  75. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.d.ts +12 -12
  76. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +50 -88
  77. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderUtils.d.ts +11 -0
  78. package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.d.ts +9 -12
  79. package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +22 -11
  80. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +5 -21
  81. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +23 -2
  82. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextState.d.ts +2 -2
  83. package/vscode/src/vs/editor/browser/controller/mouseHandler.d.ts +1 -0
  84. package/vscode/src/vs/editor/browser/controller/mouseHandler.js +31 -114
  85. package/vscode/src/vs/editor/browser/controller/mouseTarget.d.ts +1 -0
  86. package/vscode/src/vs/editor/browser/controller/mouseTarget.js +26 -7
  87. package/vscode/src/vs/editor/browser/coreCommands.d.ts +3 -3
  88. package/vscode/src/vs/editor/browser/editorBrowser.d.ts +1 -1
  89. package/vscode/src/vs/editor/browser/editorExtensions.d.ts +2 -2
  90. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +1 -1
  91. package/vscode/src/vs/editor/browser/gpu/taskQueue.d.ts +5 -2
  92. package/vscode/src/vs/editor/browser/gpu/taskQueue.js +11 -4
  93. package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
  94. package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +2 -2
  95. package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +1 -1
  96. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +1 -1
  97. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +33 -1
  98. package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.d.ts +1 -0
  99. package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +6 -0
  100. package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +4 -1
  101. package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +13 -2
  102. package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.d.ts +1 -1
  103. package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +1 -1
  104. package/vscode/src/vs/editor/browser/view/renderingContext.d.ts +2 -1
  105. package/vscode/src/vs/editor/browser/view/viewUserInputEvents.d.ts +1 -1
  106. package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +4 -3
  107. package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +2 -0
  108. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +8 -2
  109. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.d.ts +3 -2
  110. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +44 -13
  111. package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.d.ts +1 -0
  112. package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +7 -2
  113. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.d.ts +1 -0
  114. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +9 -4
  115. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.d.ts +1 -0
  116. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +43 -35
  117. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.d.ts +1 -0
  118. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +2 -0
  119. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.css +1 -0
  120. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.d.ts +1 -0
  121. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +21 -4
  122. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +3 -3
  123. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +3 -3
  124. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +4 -1
  125. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +1 -1
  126. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.d.ts +3 -2
  127. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +9 -3
  128. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +2 -2
  129. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +4 -4
  130. package/vscode/src/vs/editor/common/commands/surroundSelectionCommand.js +1 -1
  131. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +21 -6
  132. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +178 -162
  133. package/vscode/src/vs/editor/common/config/editorOptions.js +592 -495
  134. package/vscode/src/vs/editor/common/coordinatesConverter.d.ts +30 -0
  135. package/vscode/src/vs/editor/common/coordinatesConverter.js +56 -0
  136. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
  137. package/vscode/src/vs/editor/common/core/edits/edit.d.ts +3 -3
  138. package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +2 -2
  139. package/vscode/src/vs/editor/common/core/edits/lineEdit.js +14 -14
  140. package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +11 -4
  141. package/vscode/src/vs/editor/common/core/edits/stringEdit.js +36 -12
  142. package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +3 -0
  143. package/vscode/src/vs/editor/common/core/edits/textEdit.js +20 -0
  144. package/vscode/src/vs/editor/common/core/text/abstractText.d.ts +2 -0
  145. package/vscode/src/vs/editor/common/core/text/abstractText.js +3 -0
  146. package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +1 -1
  147. package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.js +2 -2
  148. package/vscode/src/vs/editor/common/cursor/cursor.d.ts +4 -4
  149. package/vscode/src/vs/editor/common/cursor/cursor.js +9 -9
  150. package/vscode/src/vs/editor/common/cursor/cursorContext.d.ts +1 -1
  151. package/vscode/src/vs/editor/common/cursor/cursorDeleteOperations.d.ts +2 -1
  152. package/vscode/src/vs/editor/common/cursor/cursorDeleteOperations.js +28 -13
  153. package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.js +15 -6
  154. package/vscode/src/vs/editor/common/cursorCommon.d.ts +1 -0
  155. package/vscode/src/vs/editor/common/cursorCommon.js +2 -0
  156. package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
  157. package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +3 -3
  158. package/vscode/src/vs/editor/common/languages/linkComputer.js +1 -4
  159. package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
  160. package/vscode/src/vs/editor/common/languages.d.ts +19 -0
  161. package/vscode/src/vs/editor/common/languages.js +83 -57
  162. package/vscode/src/vs/editor/common/model/editStack.d.ts +2 -2
  163. package/vscode/src/vs/editor/common/model/editStack.js +3 -3
  164. package/vscode/src/vs/editor/common/model/textModel.d.ts +7 -6
  165. package/vscode/src/vs/editor/common/model/textModel.js +5 -4
  166. package/vscode/src/vs/editor/common/model.d.ts +6 -1
  167. package/vscode/src/vs/editor/common/model.js +6 -1
  168. package/vscode/src/vs/editor/common/modelLineProjectionData.d.ts +1 -1
  169. package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +1 -1
  170. package/vscode/src/vs/editor/common/services/model.service.d.ts +2 -2
  171. package/vscode/src/vs/editor/common/services/modelService.d.ts +2 -2
  172. package/vscode/src/vs/editor/common/services/modelService.js +2 -2
  173. package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +172 -160
  174. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +174 -161
  175. package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
  176. package/vscode/src/vs/editor/common/textModelEditSource.d.ts +151 -0
  177. package/vscode/src/vs/editor/common/{textModelEditReason.js → textModelEditSource.js} +44 -23
  178. package/vscode/src/vs/editor/common/textModelEvents.d.ts +2 -2
  179. package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +1 -1
  180. package/vscode/src/vs/editor/common/viewLayout/lineDecorations.d.ts +1 -1
  181. package/vscode/src/vs/editor/common/viewLayout/lineDecorations.js +1 -1
  182. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.d.ts +8 -5
  183. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +29 -29
  184. package/vscode/src/vs/editor/common/viewLayout/viewLinesViewportData.d.ts +2 -1
  185. package/vscode/src/vs/editor/common/viewModel/inlineDecorations.d.ts +21 -0
  186. package/vscode/src/vs/editor/common/viewModel/inlineDecorations.js +30 -0
  187. package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +2 -1
  188. package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.d.ts +1 -1
  189. package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +11 -3
  190. package/vscode/src/vs/editor/common/viewModel/screenReaderSimpleModel.d.ts +10 -0
  191. package/vscode/src/vs/editor/common/viewModel/viewModelDecoration.d.ts +11 -0
  192. package/vscode/src/vs/editor/common/viewModel/viewModelDecoration.js +49 -0
  193. package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +7 -11
  194. package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +5 -43
  195. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +7 -4
  196. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +32 -9
  197. package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +4 -2
  198. package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +5 -55
  199. package/vscode/src/vs/editor/common/viewModel.d.ts +8 -34
  200. package/vscode/src/vs/editor/common/viewModel.js +3 -35
  201. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  202. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  203. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  204. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  205. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +44 -17
  206. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +8 -7
  207. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
  208. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  209. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  210. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  211. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +5 -1
  212. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  213. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  214. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  215. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  216. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerSaturationBox.d.ts +0 -1
  217. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerSaturationBox.js +0 -3
  218. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.d.ts +1 -0
  219. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +4 -1
  220. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  221. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
  222. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -19
  223. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  224. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  225. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.d.ts +3 -1
  226. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +54 -29
  227. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  228. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  229. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  230. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  231. package/vscode/src/vs/editor/contrib/find/browser/findController.d.ts +4 -4
  232. package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
  233. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +26 -26
  234. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
  235. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  236. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  237. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  238. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  239. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  240. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  241. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  242. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  243. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  244. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  245. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  246. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  247. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  248. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.d.ts +3 -1
  249. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +31 -3
  250. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
  251. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.d.ts +3 -1
  252. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +6 -3
  253. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +7 -2
  254. package/vscode/src/vs/editor/contrib/hover/browser/getHover.d.ts +1 -2
  255. package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +6 -2
  256. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  257. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  258. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  259. package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.d.ts +4 -4
  260. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.d.ts +1 -2
  261. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +18 -19
  262. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  263. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  264. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  265. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +17 -15
  266. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +8 -8
  267. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -20
  268. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.d.ts +1 -0
  269. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -11
  270. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +22 -1
  271. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  272. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  273. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.d.ts +1 -1
  274. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +5 -2
  275. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +107 -83
  276. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +1 -1
  277. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +31 -8
  278. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +4 -2
  279. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +27 -16
  280. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +6 -1
  281. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +11 -0
  282. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.d.ts +32 -0
  283. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.js +145 -0
  284. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +2 -21
  285. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +14 -9
  286. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +5 -5
  287. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
  288. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +3 -2
  289. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +1 -0
  290. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +42 -20
  291. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +1 -1
  292. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +1 -1
  293. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
  294. package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  295. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  296. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.d.ts +5 -0
  297. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +105 -33
  298. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  299. package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
  300. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  301. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.d.ts +2 -0
  302. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +34 -28
  303. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  304. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  305. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  306. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  307. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  308. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +13 -13
  309. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  310. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  311. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.d.ts +2 -2
  312. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  313. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +2 -2
  314. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
  315. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  316. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  317. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +5 -1
  318. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  319. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +13 -13
  320. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
  321. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  322. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  323. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  324. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  325. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  326. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  327. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  328. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.d.ts +6 -6
  329. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +30 -30
  330. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  331. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  332. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +9 -6
  333. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
  334. package/vscode/src/vs/editor/editor.worker.start.d.ts +1 -1
  335. package/vscode/src/vs/editor/editor.worker.start.js +26 -18
  336. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.d.ts +2 -1
  337. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -0
  338. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +1 -0
  339. package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
  340. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  341. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  342. package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +3 -1
  343. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +45 -8
  344. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +20 -1
  345. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  346. package/vscode/src/vs/platform/actions/browser/actionViewItemService.service.d.ts +5 -5
  347. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  348. package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -0
  349. package/vscode/src/vs/platform/actions/browser/toolbar.js +6 -3
  350. package/vscode/src/vs/platform/actions/common/actions.d.ts +4 -3
  351. package/vscode/src/vs/platform/actions/common/actions.js +4 -3
  352. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  353. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  354. package/vscode/src/vs/platform/clipboard/browser/clipboardService.d.ts +1 -1
  355. package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +12 -2
  356. package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +5 -1
  357. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +20 -10
  358. package/vscode/src/vs/platform/configuration/common/configurations.js +2 -2
  359. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  360. package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
  361. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  362. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  363. package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +1 -1
  364. package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
  365. package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +1 -0
  366. package/vscode/src/vs/platform/dnd/browser/dnd.js +2 -1
  367. package/vscode/src/vs/platform/environment/common/argv.d.ts +2 -0
  368. package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -0
  369. package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.d.ts +62 -0
  370. package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.js +55 -0
  371. package/vscode/src/vs/platform/extensionManagement/common/extensionGalleryManifest.service.d.ts +3 -2
  372. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -2
  373. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
  374. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +1 -1
  375. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  376. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
  377. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
  378. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +21 -0
  379. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +21 -0
  380. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  381. package/vscode/src/vs/platform/files/common/files.js +6 -6
  382. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  383. package/vscode/src/vs/platform/imageResize/common/imageResizeService.service.d.ts +5 -0
  384. package/vscode/src/vs/platform/imageResize/common/imageResizeService.service.js +6 -0
  385. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  386. package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
  387. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  388. package/vscode/src/vs/platform/log/common/log.js +6 -6
  389. package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
  390. package/vscode/src/vs/platform/markers/common/markers.js +6 -6
  391. package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +8 -0
  392. package/vscode/src/vs/platform/mcp/common/mcpManagement.service.js +2 -1
  393. package/vscode/src/vs/platform/notification/common/notification.js +3 -3
  394. package/vscode/src/vs/platform/observable/common/platformObservableUtils.d.ts +1 -0
  395. package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +20 -9
  396. package/vscode/src/vs/platform/opener/browser/link.js +1 -4
  397. package/vscode/src/vs/platform/policy/common/policy.d.ts +2 -2
  398. package/vscode/src/vs/platform/policy/common/policy.service.d.ts +1 -1
  399. package/vscode/src/vs/platform/product/common/product.js +3 -3
  400. package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +81 -14
  401. package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +10 -7
  402. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +19 -14
  403. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
  404. package/vscode/src/vs/platform/quickinput/browser/quickInputController.d.ts +2 -1
  405. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +38 -11
  406. package/vscode/src/vs/platform/quickinput/browser/{quickInputTree.d.ts → quickInputList.d.ts} +1 -1
  407. package/vscode/src/vs/platform/quickinput/browser/{quickInputTree.js → quickInputList.js} +9 -9
  408. package/vscode/src/vs/platform/quickinput/browser/quickInputService.d.ts +2 -1
  409. package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +3 -0
  410. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  411. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.d.ts +6 -0
  412. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.js +13 -0
  413. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.d.ts +9 -0
  414. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.js +35 -0
  415. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.d.ts +13 -0
  416. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +33 -0
  417. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +42 -0
  418. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +296 -0
  419. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.d.ts +10 -0
  420. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.js +39 -0
  421. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.d.ts +33 -0
  422. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +148 -0
  423. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +53 -0
  424. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +189 -0
  425. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +46 -2
  426. package/vscode/src/vs/platform/quickinput/common/quickInput.js +1 -0
  427. package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +2 -1
  428. package/vscode/src/vs/platform/request/common/request.js +18 -18
  429. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
  430. package/vscode/src/vs/platform/terminal/common/environmentVariableShared.d.ts +1 -1
  431. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -5
  432. package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +2 -4
  433. package/vscode/src/vs/platform/terminal/common/terminalProcess.d.ts +1 -1
  434. package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -1
  435. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  436. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  437. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  438. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
  439. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
  440. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  441. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  442. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  443. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
  444. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  445. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  446. package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
  447. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  448. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  449. package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +12 -2
  450. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +14 -6
  451. package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +2 -1
  452. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  453. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +64 -9
  454. package/vscode/src/vs/workbench/api/common/extHost.common.services.js +2 -0
  455. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +102 -41
  456. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +6 -0
  457. package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +4 -2
  458. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +98 -27
  459. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +22 -4
  460. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +24 -5
  461. package/vscode/src/vs/workbench/api/common/extHostChatOutputRenderer.d.ts +14 -0
  462. package/vscode/src/vs/workbench/api/common/extHostChatOutputRenderer.js +32 -0
  463. package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +35 -0
  464. package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +222 -0
  465. package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
  466. package/vscode/src/vs/workbench/api/common/extHostDataChannels.d.ts +15 -0
  467. package/vscode/src/vs/workbench/api/common/extHostDataChannels.js +44 -0
  468. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  469. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  470. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +3 -2
  471. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +32 -34
  472. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +12 -15
  473. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +127 -120
  474. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  475. package/vscode/src/vs/workbench/api/common/extHostMcp.js +40 -25
  476. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  477. package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -2
  478. package/vscode/src/vs/workbench/api/common/extHostSCM.js +28 -10
  479. package/vscode/src/vs/workbench/api/common/extHostSecretState.d.ts +1 -0
  480. package/vscode/src/vs/workbench/api/common/extHostSecretState.js +3 -0
  481. package/vscode/src/vs/workbench/api/common/extHostSecrets.d.ts +2 -0
  482. package/vscode/src/vs/workbench/api/common/extHostSecrets.js +6 -0
  483. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  484. package/vscode/src/vs/workbench/api/common/extHostTask.d.ts +3 -0
  485. package/vscode/src/vs/workbench/api/common/extHostTask.js +12 -1
  486. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
  487. package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +1 -1
  488. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
  489. package/vscode/src/vs/workbench/api/common/extHostTreeViews.d.ts +8 -8
  490. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +203 -198
  491. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  492. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +19 -8
  493. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +211 -33
  494. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +77 -13
  495. package/vscode/src/vs/workbench/api/common/extHostTypes.js +69 -11
  496. package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
  497. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
  498. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
  499. package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
  500. package/vscode/src/vs/workbench/browser/actions/textInputActions.d.ts +4 -2
  501. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +24 -10
  502. package/vscode/src/vs/workbench/browser/contextkeys.js +10 -5
  503. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
  504. package/vscode/src/vs/workbench/common/configuration.js +9 -9
  505. package/vscode/src/vs/workbench/common/contextkeys.js +87 -78
  506. package/vscode/src/vs/workbench/common/editor/diffEditorInput.d.ts +32 -0
  507. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +180 -0
  508. package/vscode/src/vs/workbench/common/editor/diffEditorModel.d.ts +12 -0
  509. package/vscode/src/vs/workbench/common/editor/diffEditorModel.js +26 -0
  510. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
  511. package/vscode/src/vs/workbench/common/editor/editorModel.d.ts +10 -0
  512. package/vscode/src/vs/workbench/common/editor/editorModel.js +27 -0
  513. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.d.ts +51 -0
  514. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +303 -0
  515. package/vscode/src/vs/workbench/common/editor/textDiffEditorModel.d.ts +18 -0
  516. package/vscode/src/vs/workbench/common/editor/textDiffEditorModel.js +45 -0
  517. package/vscode/src/vs/workbench/common/editor/textEditorModel.d.ts +47 -0
  518. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +181 -0
  519. package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
  520. package/vscode/src/vs/workbench/common/editor.js +4 -4
  521. package/vscode/src/vs/workbench/common/theme.d.ts +2 -2
  522. package/vscode/src/vs/workbench/common/theme.js +161 -161
  523. package/vscode/src/vs/workbench/common/views.js +4 -4
  524. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +164 -156
  525. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  526. package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +4 -2
  527. package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +3 -1
  528. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +8 -8
  529. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +1 -1
  530. package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
  531. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
  532. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.service.d.ts +9 -0
  533. package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.service.js +6 -0
  534. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +2 -1
  535. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +5 -2
  536. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +59 -48
  537. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +2 -2
  538. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
  539. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
  540. package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +1 -1
  541. package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +81 -11
  542. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +7 -1
  543. package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +6 -3
  544. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +48 -0
  545. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +22 -0
  546. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.js +6 -0
  547. package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.service.d.ts +6 -0
  548. package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.service.js +6 -0
  549. package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +2 -2
  550. package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -1
  551. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
  552. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +4 -1
  553. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +3 -0
  554. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +32 -11
  555. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +8 -5
  556. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +1 -0
  557. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +47 -17
  558. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +147 -65
  559. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +9 -7
  560. package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +4 -0
  561. package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +6 -0
  562. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +1 -1
  563. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +1 -1
  564. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +1 -1
  565. package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +17 -0
  566. package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +203 -0
  567. package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +4 -0
  568. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
  569. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  570. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  571. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  572. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  573. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  574. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  575. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  576. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  577. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  578. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  579. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
  580. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  581. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
  582. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  583. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
  584. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +1 -0
  585. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +4 -2
  586. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
  587. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +5 -5
  588. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  589. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  590. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  591. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  592. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  593. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  594. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
  595. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +1 -1
  596. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  597. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  598. package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.d.ts +7 -2
  599. package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service.d.ts +5 -4
  600. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +33 -9
  601. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +28 -10
  602. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +11 -3
  603. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
  604. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
  605. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +2 -2
  606. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +1 -1
  607. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +1 -1
  608. package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +1 -1
  609. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  610. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  611. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  612. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  613. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  614. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  615. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +3 -1
  616. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
  617. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +9 -7
  618. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -1
  619. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +2 -2
  620. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.service.d.ts +1 -1
  621. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +1 -1
  622. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.d.ts +1 -1
  623. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +3 -1
  624. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  625. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  626. package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
  627. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
  628. package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.d.ts +2 -0
  629. package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +8 -10
  630. package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
  631. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.d.ts +1 -1
  632. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.js +1 -1
  633. package/vscode/src/vs/workbench/services/authentication/common/dynamicAuthenticationProviderStorage.service.d.ts +5 -2
  634. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  635. package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +1 -1
  636. package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.d.ts +7 -0
  637. package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.service.d.ts +8 -0
  638. package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.service.js +6 -0
  639. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
  640. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  641. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
  642. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +10 -13
  643. package/vscode/src/vs/workbench/services/extensions/common/extensions.js +1 -1
  644. package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +2 -5
  645. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +100 -84
  646. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
  647. package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
  648. package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
  649. package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.d.ts +61 -0
  650. package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +7 -0
  651. package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
  652. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  653. package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.d.ts +11 -8
  654. package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.js +3 -2
  655. package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
  656. package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
  657. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  658. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  659. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  660. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +1 -0
  661. package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
  662. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  663. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  664. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
  665. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
  666. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -2
  667. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
  668. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
  669. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
  670. package/vscode-dts/vscode.d.ts +5 -5
  671. package/vscode-dts/vscode.proposed.chatOutputRenderer.d.ts +86 -0
  672. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +142 -5
  673. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +25 -19
  674. package/vscode-dts/vscode.proposed.chatProvider.d.ts +2 -103
  675. package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +129 -0
  676. package/vscode-dts/vscode.proposed.d.ts +7 -0
  677. package/vscode-dts/vscode.proposed.dataChannels.d.ts +19 -0
  678. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +2 -0
  679. package/vscode-dts/vscode.proposed.languageModelToolResultAudience.d.ts +25 -0
  680. package/vscode-dts/vscode.proposed.scmProviderOptions.d.ts +39 -0
  681. package/vscode-dts/vscode.proposed.secretStorageKeys.d.ts +16 -0
  682. package/vscode-dts/vscode.proposed.taskExecutionTerminal.d.ts +15 -0
  683. package/workbench.d.ts +1 -1
  684. package/workers/editor.worker.js +17 -16
  685. package/vscode/src/vs/base/common/policy.d.ts +0 -8
  686. package/vscode/src/vs/editor/common/textModelEditReason.d.ts +0 -98
  687. package/vscode/src/vs/platform/assignment/common/assignment.d.ts +0 -33
@@ -10,135 +10,136 @@ import { IFileService } from '../../platform/files/common/files.service.js';
10
10
  import { IModelService } from '../../editor/common/services/model.service.js';
11
11
  import { Schemas } from '../../base/common/network.js';
12
12
  import { DEFAULT_EDITOR_ASSOCIATION } from './editor.js';
13
+ import { DiffEditorInput } from './editor/diffEditorInput.js';
13
14
 
14
15
  var ResourceContextKey_1;
15
16
  const WorkbenchStateContext = ( new RawContextKey('workbenchState', undefined, { type: 'string', description: ( localize(
16
- 3826,
17
+ 3866,
17
18
  "The kind of workspace opened in the window, either 'empty' (no workspace), 'folder' (single folder) or 'workspace' (multi-root workspace)"
18
19
  )) }));
19
- const WorkspaceFolderCountContext = ( new RawContextKey('workspaceFolderCount', 0, ( localize(3827, "The number of root folders in the workspace"))));
20
+ const WorkspaceFolderCountContext = ( new RawContextKey('workspaceFolderCount', 0, ( localize(3867, "The number of root folders in the workspace"))));
20
21
  const OpenFolderWorkspaceSupportContext = ( new RawContextKey('openFolderWorkspaceSupport', true, true));
21
22
  const EnterMultiRootWorkspaceSupportContext = ( new RawContextKey('enterMultiRootWorkspaceSupport', true, true));
22
23
  const EmptyWorkspaceSupportContext = ( new RawContextKey('emptyWorkspaceSupport', true, true));
23
- const DirtyWorkingCopiesContext = ( new RawContextKey('dirtyWorkingCopies', false, ( localize(3828, "Whether there are any working copies with unsaved changes"))));
24
+ const DirtyWorkingCopiesContext = ( new RawContextKey('dirtyWorkingCopies', false, ( localize(3868, "Whether there are any working copies with unsaved changes"))));
24
25
  const RemoteNameContext = ( new RawContextKey('remoteName', '', ( localize(
25
- 3829,
26
+ 3869,
26
27
  "The name of the remote the window is connected to or an empty string if not connected to any remote"
27
28
  ))));
28
29
  const VirtualWorkspaceContext = ( new RawContextKey('virtualWorkspace', '', ( localize(
29
- 3830,
30
+ 3870,
30
31
  "The scheme of the current workspace is from a virtual file system or an empty string."
31
32
  ))));
32
33
  const TemporaryWorkspaceContext = ( new RawContextKey('temporaryWorkspace', false, ( localize(
33
- 3831,
34
+ 3871,
34
35
  "The scheme of the current workspace is from a temporary file system."
35
36
  ))));
36
37
  const HasWebFileSystemAccess = ( new RawContextKey('hasWebFileSystemAccess', false, true));
37
38
  const EmbedderIdentifierContext = ( new RawContextKey('embedderIdentifier', undefined, ( localize(
38
- 3832,
39
+ 3872,
39
40
  'The identifier of the embedder according to the product service, if one is defined'
40
41
  ))));
41
42
  const IsSandboxWorkspaceContext = ( new RawContextKey('isSandboxWorkspace', false, true));
42
- const IsMainWindowFullscreenContext = ( new RawContextKey('isFullscreen', false, ( localize(3833, "Whether the main window is in fullscreen mode"))));
43
- const IsAuxiliaryWindowFocusedContext = ( new RawContextKey('isAuxiliaryWindowFocusedContext', false, ( localize(3834, "Whether an auxiliary window is focused"))));
44
- const IsAuxiliaryWindowContext = ( new RawContextKey('isAuxiliaryWindow', false, ( localize(3835, "Window is an auxiliary window"))));
45
- const ActiveEditorDirtyContext = ( new RawContextKey('activeEditorIsDirty', false, ( localize(3836, "Whether the active editor has unsaved changes"))));
46
- const ActiveEditorPinnedContext = ( new RawContextKey('activeEditorIsNotPreview', false, ( localize(3837, "Whether the active editor is not in preview mode"))));
47
- const ActiveEditorFirstInGroupContext = ( new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(3838, "Whether the active editor is the first one in its group"))));
48
- const ActiveEditorLastInGroupContext = ( new RawContextKey('activeEditorIsLastInGroup', false, ( localize(3839, "Whether the active editor is the last one in its group"))));
49
- const ActiveEditorStickyContext = ( new RawContextKey('activeEditorIsPinned', false, ( localize(3840, "Whether the active editor is pinned"))));
50
- const ActiveEditorReadonlyContext = ( new RawContextKey('activeEditorIsReadonly', false, ( localize(3841, "Whether the active editor is read-only"))));
51
- const ActiveCompareEditorCanSwapContext = ( new RawContextKey('activeCompareEditorCanSwap', false, ( localize(3842, "Whether the active compare editor can swap sides"))));
43
+ const IsMainWindowFullscreenContext = ( new RawContextKey('isFullscreen', false, ( localize(3873, "Whether the main window is in fullscreen mode"))));
44
+ const IsAuxiliaryWindowFocusedContext = ( new RawContextKey('isAuxiliaryWindowFocusedContext', false, ( localize(3874, "Whether an auxiliary window is focused"))));
45
+ const IsAuxiliaryWindowContext = ( new RawContextKey('isAuxiliaryWindow', false, ( localize(3875, "Window is an auxiliary window"))));
46
+ const ActiveEditorDirtyContext = ( new RawContextKey('activeEditorIsDirty', false, ( localize(3876, "Whether the active editor has unsaved changes"))));
47
+ const ActiveEditorPinnedContext = ( new RawContextKey('activeEditorIsNotPreview', false, ( localize(3877, "Whether the active editor is not in preview mode"))));
48
+ const ActiveEditorFirstInGroupContext = ( new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(3878, "Whether the active editor is the first one in its group"))));
49
+ const ActiveEditorLastInGroupContext = ( new RawContextKey('activeEditorIsLastInGroup', false, ( localize(3879, "Whether the active editor is the last one in its group"))));
50
+ const ActiveEditorStickyContext = ( new RawContextKey('activeEditorIsPinned', false, ( localize(3880, "Whether the active editor is pinned"))));
51
+ const ActiveEditorReadonlyContext = ( new RawContextKey('activeEditorIsReadonly', false, ( localize(3881, "Whether the active editor is read-only"))));
52
+ const ActiveCompareEditorCanSwapContext = ( new RawContextKey('activeCompareEditorCanSwap', false, ( localize(3882, "Whether the active compare editor can swap sides"))));
52
53
  const ActiveEditorCanToggleReadonlyContext = ( new RawContextKey('activeEditorCanToggleReadonly', true, ( localize(
53
- 3843,
54
+ 3883,
54
55
  "Whether the active editor can toggle between being read-only or writeable"
55
56
  ))));
56
- const ActiveEditorCanRevertContext = ( new RawContextKey('activeEditorCanRevert', false, ( localize(3844, "Whether the active editor can revert"))));
57
+ const ActiveEditorCanRevertContext = ( new RawContextKey('activeEditorCanRevert', false, ( localize(3884, "Whether the active editor can revert"))));
57
58
  const ActiveEditorCanSplitInGroupContext = ( new RawContextKey('activeEditorCanSplitInGroup', true));
58
- const ActiveEditorContext = ( new RawContextKey('activeEditor', null, { type: 'string', description: ( localize(3845, "The identifier of the active editor")) }));
59
+ const ActiveEditorContext = ( new RawContextKey('activeEditor', null, { type: 'string', description: ( localize(3885, "The identifier of the active editor")) }));
59
60
  const ActiveEditorAvailableEditorIdsContext = ( new RawContextKey('activeEditorAvailableEditorIds', '', ( localize(
60
- 3846,
61
+ 3886,
61
62
  "The available editor identifiers that are usable for the active editor"
62
63
  ))));
63
- const TextCompareEditorVisibleContext = ( new RawContextKey('textCompareEditorVisible', false, ( localize(3847, "Whether a text compare editor is visible"))));
64
- const TextCompareEditorActiveContext = ( new RawContextKey('textCompareEditorActive', false, ( localize(3848, "Whether a text compare editor is active"))));
65
- const SideBySideEditorActiveContext = ( new RawContextKey('sideBySideEditorActive', false, ( localize(3849, "Whether a side by side editor is active"))));
66
- const EditorGroupEditorsCountContext = ( new RawContextKey('groupEditorsCount', 0, ( localize(3850, "The number of opened editor groups"))));
67
- const ActiveEditorGroupEmptyContext = ( new RawContextKey('activeEditorGroupEmpty', false, ( localize(3851, "Whether the active editor group is empty"))));
68
- const ActiveEditorGroupIndexContext = ( new RawContextKey('activeEditorGroupIndex', 0, ( localize(3852, "The index of the active editor group"))));
69
- const ActiveEditorGroupLastContext = ( new RawContextKey('activeEditorGroupLast', false, ( localize(3853, "Whether the active editor group is the last group"))));
70
- const ActiveEditorGroupLockedContext = ( new RawContextKey('activeEditorGroupLocked', false, ( localize(3854, "Whether the active editor group is locked"))));
71
- const MultipleEditorGroupsContext = ( new RawContextKey('multipleEditorGroups', false, ( localize(3855, "Whether there are multiple editor groups opened"))));
72
- const MultipleEditorsSelectedInGroupContext = ( new RawContextKey('multipleEditorsSelectedInGroup', false, ( localize(3856, "Whether multiple editors have been selected in an editor group"))));
73
- const TwoEditorsSelectedInGroupContext = ( new RawContextKey('twoEditorsSelectedInGroup', false, ( localize(3857, "Whether exactly two editors have been selected in an editor group"))));
64
+ const TextCompareEditorVisibleContext = ( new RawContextKey('textCompareEditorVisible', false, ( localize(3887, "Whether a text compare editor is visible"))));
65
+ const TextCompareEditorActiveContext = ( new RawContextKey('textCompareEditorActive', false, ( localize(3888, "Whether a text compare editor is active"))));
66
+ const SideBySideEditorActiveContext = ( new RawContextKey('sideBySideEditorActive', false, ( localize(3889, "Whether a side by side editor is active"))));
67
+ const EditorGroupEditorsCountContext = ( new RawContextKey('groupEditorsCount', 0, ( localize(3890, "The number of opened editor groups"))));
68
+ const ActiveEditorGroupEmptyContext = ( new RawContextKey('activeEditorGroupEmpty', false, ( localize(3891, "Whether the active editor group is empty"))));
69
+ const ActiveEditorGroupIndexContext = ( new RawContextKey('activeEditorGroupIndex', 0, ( localize(3892, "The index of the active editor group"))));
70
+ const ActiveEditorGroupLastContext = ( new RawContextKey('activeEditorGroupLast', false, ( localize(3893, "Whether the active editor group is the last group"))));
71
+ const ActiveEditorGroupLockedContext = ( new RawContextKey('activeEditorGroupLocked', false, ( localize(3894, "Whether the active editor group is locked"))));
72
+ const MultipleEditorGroupsContext = ( new RawContextKey('multipleEditorGroups', false, ( localize(3895, "Whether there are multiple editor groups opened"))));
73
+ const MultipleEditorsSelectedInGroupContext = ( new RawContextKey('multipleEditorsSelectedInGroup', false, ( localize(3896, "Whether multiple editors have been selected in an editor group"))));
74
+ const TwoEditorsSelectedInGroupContext = ( new RawContextKey('twoEditorsSelectedInGroup', false, ( localize(3897, "Whether exactly two editors have been selected in an editor group"))));
74
75
  const SelectedEditorsInGroupFileOrUntitledResourceContextKey = ( new RawContextKey(
75
76
  'SelectedEditorsInGroupFileOrUntitledResourceContextKey',
76
77
  true,
77
78
  ( localize(
78
- 3858,
79
+ 3898,
79
80
  "Whether all selected editors in a group have a file or untitled resource associated"
80
81
  ))
81
82
  ));
82
- const EditorPartMultipleEditorGroupsContext = ( new RawContextKey('editorPartMultipleEditorGroups', false, ( localize(3859, "Whether there are multiple editor groups opened in an editor part"))));
83
- const EditorPartMaximizedEditorGroupContext = ( new RawContextKey('editorPartMaximizedEditorGroup', false, ( localize(3860, "Editor Part has a maximized group"))));
84
- const EditorsVisibleContext = ( new RawContextKey('editorIsOpen', false, ( localize(3861, "Whether an editor is open"))));
85
- const InEditorZenModeContext = ( new RawContextKey('inZenMode', false, ( localize(3862, "Whether Zen mode is enabled"))));
86
- const IsMainEditorCenteredLayoutContext = ( new RawContextKey('isCenteredLayout', false, ( localize(3863, "Whether centered layout is enabled for the main editor"))));
87
- const SplitEditorsVertically = ( new RawContextKey('splitEditorsVertically', false, ( localize(3864, "Whether editors split vertically"))));
88
- const MainEditorAreaVisibleContext = ( new RawContextKey('mainEditorAreaVisible', true, ( localize(3865, "Whether the editor area in the main window is visible"))));
89
- const EditorTabsVisibleContext = ( new RawContextKey('editorTabsVisible', true, ( localize(3866, "Whether editor tabs are visible"))));
90
- const SideBarVisibleContext = ( new RawContextKey('sideBarVisible', false, ( localize(3867, "Whether the sidebar is visible"))));
91
- const SidebarFocusContext = ( new RawContextKey('sideBarFocus', false, ( localize(3868, "Whether the sidebar has keyboard focus"))));
92
- const ActiveViewletContext = ( new RawContextKey('activeViewlet', '', ( localize(3869, "The identifier of the active viewlet"))));
93
- const StatusBarFocused = ( new RawContextKey('statusBarFocused', false, ( localize(3870, "Whether the status bar has keyboard focus"))));
94
- const TitleBarStyleContext = ( new RawContextKey('titleBarStyle', 'custom', ( localize(3871, "Style of the window title bar"))));
95
- const TitleBarVisibleContext = ( new RawContextKey('titleBarVisible', false, ( localize(3872, "Whether the title bar is visible"))));
96
- const IsCompactTitleBarContext = ( new RawContextKey('isCompactTitleBar', false, ( localize(3873, "Title bar is in compact mode"))));
97
- const BannerFocused = ( new RawContextKey('bannerFocused', false, ( localize(3874, "Whether the banner has keyboard focus"))));
98
- const NotificationFocusedContext = ( new RawContextKey('notificationFocus', true, ( localize(3875, "Whether a notification has keyboard focus"))));
99
- const NotificationsCenterVisibleContext = ( new RawContextKey('notificationCenterVisible', false, ( localize(3876, "Whether the notifications center is visible"))));
100
- const NotificationsToastsVisibleContext = ( new RawContextKey('notificationToastsVisible', false, ( localize(3877, "Whether a notification toast is visible"))));
101
- const ActiveAuxiliaryContext = ( new RawContextKey('activeAuxiliary', '', ( localize(3878, "The identifier of the active auxiliary panel"))));
102
- const AuxiliaryBarFocusContext = ( new RawContextKey('auxiliaryBarFocus', false, ( localize(3879, "Whether the auxiliary bar has keyboard focus"))));
103
- const AuxiliaryBarVisibleContext = ( new RawContextKey('auxiliaryBarVisible', false, ( localize(3880, "Whether the auxiliary bar is visible"))));
104
- const AuxiliaryBarMaximizedContext = ( new RawContextKey('auxiliaryBarMaximized', false, ( localize(3881, "Whether the auxiliary bar is maximized"))));
105
- const ActivePanelContext = ( new RawContextKey('activePanel', '', ( localize(3882, "The identifier of the active panel"))));
106
- const PanelFocusContext = ( new RawContextKey('panelFocus', false, ( localize(3883, "Whether the panel has keyboard focus"))));
107
- const PanelPositionContext = ( new RawContextKey('panelPosition', 'bottom', ( localize(3884, "The position of the panel, always 'bottom'"))));
83
+ const EditorPartMultipleEditorGroupsContext = ( new RawContextKey('editorPartMultipleEditorGroups', false, ( localize(3899, "Whether there are multiple editor groups opened in an editor part"))));
84
+ const EditorPartMaximizedEditorGroupContext = ( new RawContextKey('editorPartMaximizedEditorGroup', false, ( localize(3900, "Editor Part has a maximized group"))));
85
+ const EditorsVisibleContext = ( new RawContextKey('editorIsOpen', false, ( localize(3901, "Whether an editor is open"))));
86
+ const InEditorZenModeContext = ( new RawContextKey('inZenMode', false, ( localize(3902, "Whether Zen mode is enabled"))));
87
+ const IsMainEditorCenteredLayoutContext = ( new RawContextKey('isCenteredLayout', false, ( localize(3903, "Whether centered layout is enabled for the main editor"))));
88
+ const SplitEditorsVertically = ( new RawContextKey('splitEditorsVertically', false, ( localize(3904, "Whether editors split vertically"))));
89
+ const MainEditorAreaVisibleContext = ( new RawContextKey('mainEditorAreaVisible', true, ( localize(3905, "Whether the editor area in the main window is visible"))));
90
+ const EditorTabsVisibleContext = ( new RawContextKey('editorTabsVisible', true, ( localize(3906, "Whether editor tabs are visible"))));
91
+ const SideBarVisibleContext = ( new RawContextKey('sideBarVisible', false, ( localize(3907, "Whether the sidebar is visible"))));
92
+ const SidebarFocusContext = ( new RawContextKey('sideBarFocus', false, ( localize(3908, "Whether the sidebar has keyboard focus"))));
93
+ const ActiveViewletContext = ( new RawContextKey('activeViewlet', '', ( localize(3909, "The identifier of the active viewlet"))));
94
+ const StatusBarFocused = ( new RawContextKey('statusBarFocused', false, ( localize(3910, "Whether the status bar has keyboard focus"))));
95
+ const TitleBarStyleContext = ( new RawContextKey('titleBarStyle', 'custom', ( localize(3911, "Style of the window title bar"))));
96
+ const TitleBarVisibleContext = ( new RawContextKey('titleBarVisible', false, ( localize(3912, "Whether the title bar is visible"))));
97
+ const IsCompactTitleBarContext = ( new RawContextKey('isCompactTitleBar', false, ( localize(3913, "Title bar is in compact mode"))));
98
+ const BannerFocused = ( new RawContextKey('bannerFocused', false, ( localize(3914, "Whether the banner has keyboard focus"))));
99
+ const NotificationFocusedContext = ( new RawContextKey('notificationFocus', true, ( localize(3915, "Whether a notification has keyboard focus"))));
100
+ const NotificationsCenterVisibleContext = ( new RawContextKey('notificationCenterVisible', false, ( localize(3916, "Whether the notifications center is visible"))));
101
+ const NotificationsToastsVisibleContext = ( new RawContextKey('notificationToastsVisible', false, ( localize(3917, "Whether a notification toast is visible"))));
102
+ const ActiveAuxiliaryContext = ( new RawContextKey('activeAuxiliary', '', ( localize(3918, "The identifier of the active auxiliary panel"))));
103
+ const AuxiliaryBarFocusContext = ( new RawContextKey('auxiliaryBarFocus', false, ( localize(3919, "Whether the auxiliary bar has keyboard focus"))));
104
+ const AuxiliaryBarVisibleContext = ( new RawContextKey('auxiliaryBarVisible', false, ( localize(3920, "Whether the auxiliary bar is visible"))));
105
+ const AuxiliaryBarMaximizedContext = ( new RawContextKey('auxiliaryBarMaximized', false, ( localize(3921, "Whether the auxiliary bar is maximized"))));
106
+ const ActivePanelContext = ( new RawContextKey('activePanel', '', ( localize(3922, "The identifier of the active panel"))));
107
+ const PanelFocusContext = ( new RawContextKey('panelFocus', false, ( localize(3923, "Whether the panel has keyboard focus"))));
108
+ const PanelPositionContext = ( new RawContextKey('panelPosition', 'bottom', ( localize(3924, "The position of the panel, always 'bottom'"))));
108
109
  const PanelAlignmentContext = ( new RawContextKey('panelAlignment', 'center', ( localize(
109
- 3885,
110
+ 3925,
110
111
  "The alignment of the panel, either 'center', 'left', 'right' or 'justify'"
111
112
  ))));
112
- const PanelVisibleContext = ( new RawContextKey('panelVisible', false, ( localize(3886, "Whether the panel is visible"))));
113
- const PanelMaximizedContext = ( new RawContextKey('panelMaximized', false, ( localize(3887, "Whether the panel is maximized"))));
114
- const FocusedViewContext = ( new RawContextKey('focusedView', '', ( localize(3888, "The identifier of the view that has keyboard focus"))));
113
+ const PanelVisibleContext = ( new RawContextKey('panelVisible', false, ( localize(3926, "Whether the panel is visible"))));
114
+ const PanelMaximizedContext = ( new RawContextKey('panelMaximized', false, ( localize(3927, "Whether the panel is maximized"))));
115
+ const FocusedViewContext = ( new RawContextKey('focusedView', '', ( localize(3928, "The identifier of the view that has keyboard focus"))));
115
116
  function getVisbileViewContextKey(viewId) { return `view.${viewId}.visible`; }
116
117
  let ResourceContextKey = class ResourceContextKey {
117
118
  static { ResourceContextKey_1 = this; }
118
- static { this.Scheme = ( new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localize(3889, "The scheme of the resource")) })); }
119
+ static { this.Scheme = ( new RawContextKey('resourceScheme', undefined, { type: 'string', description: ( localize(3929, "The scheme of the resource")) })); }
119
120
  static { this.Filename = ( new RawContextKey(
120
121
  'resourceFilename',
121
122
  undefined,
122
- { type: 'string', description: ( localize(3890, "The file name of the resource")) }
123
+ { type: 'string', description: ( localize(3930, "The file name of the resource")) }
123
124
  )); }
124
125
  static { this.Dirname = ( new RawContextKey(
125
126
  'resourceDirname',
126
127
  undefined,
127
- { type: 'string', description: ( localize(3891, "The folder name the resource is contained in")) }
128
+ { type: 'string', description: ( localize(3931, "The folder name the resource is contained in")) }
128
129
  )); }
129
- static { this.Path = ( new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localize(3892, "The full path of the resource")) })); }
130
- static { this.LangId = ( new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localize(3893, "The language identifier of the resource")) })); }
131
- static { this.Resource = ( new RawContextKey('resource', undefined, { type: 'URI', description: ( localize(3894, "The full value of the resource including scheme and path")) })); }
130
+ static { this.Path = ( new RawContextKey('resourcePath', undefined, { type: 'string', description: ( localize(3932, "The full path of the resource")) })); }
131
+ static { this.LangId = ( new RawContextKey('resourceLangId', undefined, { type: 'string', description: ( localize(3933, "The language identifier of the resource")) })); }
132
+ static { this.Resource = ( new RawContextKey('resource', undefined, { type: 'URI', description: ( localize(3934, "The full value of the resource including scheme and path")) })); }
132
133
  static { this.Extension = ( new RawContextKey(
133
134
  'resourceExtname',
134
135
  undefined,
135
- { type: 'string', description: ( localize(3895, "The extension name of the resource")) }
136
+ { type: 'string', description: ( localize(3935, "The extension name of the resource")) }
136
137
  )); }
137
- static { this.HasResource = ( new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localize(3896, "Whether a resource is present or not")) })); }
138
+ static { this.HasResource = ( new RawContextKey('resourceSet', undefined, { type: 'boolean', description: ( localize(3936, "Whether a resource is present or not")) })); }
138
139
  static { this.IsFileSystemResource = ( new RawContextKey(
139
140
  'isFileSystemResource',
140
141
  undefined,
141
- { type: 'boolean', description: ( localize(3897, "Whether the resource is backed by a file system provider")) }
142
+ { type: 'boolean', description: ( localize(3937, "Whether the resource is backed by a file system provider")) }
142
143
  )); }
143
144
  constructor(_contextKeyService, _fileService, _languageService, _modelService) {
144
145
  this._contextKeyService = _contextKeyService;
@@ -235,14 +236,22 @@ function applyAvailableEditorIds(contextKey, editor, editorResolverService) {
235
236
  contextKey.set('');
236
237
  return;
237
238
  }
238
- const editorResource = editor.resource;
239
- if (editorResource?.scheme === Schemas.untitled && editor.editorId !== DEFAULT_EDITOR_ASSOCIATION.id) {
240
- contextKey.set('');
239
+ const editors = getAvailableEditorIds(editor, editorResolverService);
240
+ contextKey.set(editors.join(','));
241
+ }
242
+ function getAvailableEditorIds(editor, editorResolverService) {
243
+ if (editor.resource?.scheme === Schemas.untitled && editor.editorId !== DEFAULT_EDITOR_ASSOCIATION.id) {
244
+ return [];
245
+ }
246
+ if (editor instanceof DiffEditorInput) {
247
+ const original = getAvailableEditorIds(editor.original, editorResolverService);
248
+ const modified = ( new Set(getAvailableEditorIds(editor.modified, editorResolverService)));
249
+ return original.filter(editor => ( modified.has(editor)));
241
250
  }
242
- else {
243
- const editors = editorResource ? ( editorResolverService.getEditors(editorResource).map(editor => editor.id)) : [];
244
- contextKey.set(editors.join(','));
251
+ if (editor.resource) {
252
+ return ( editorResolverService.getEditors(editor.resource).map(editor => editor.id));
245
253
  }
254
+ return [];
246
255
  }
247
256
 
248
257
  export { ActiveAuxiliaryContext, ActiveCompareEditorCanSwapContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorCanRevertContext, ActiveEditorCanSplitInGroupContext, ActiveEditorCanToggleReadonlyContext, ActiveEditorContext, ActiveEditorDirtyContext, ActiveEditorFirstInGroupContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorGroupLockedContext, ActiveEditorLastInGroupContext, ActiveEditorPinnedContext, ActiveEditorReadonlyContext, ActiveEditorStickyContext, ActivePanelContext, ActiveViewletContext, AuxiliaryBarFocusContext, AuxiliaryBarMaximizedContext, AuxiliaryBarVisibleContext, BannerFocused, DirtyWorkingCopiesContext, EditorGroupEditorsCountContext, EditorPartMaximizedEditorGroupContext, EditorPartMultipleEditorGroupsContext, EditorTabsVisibleContext, EditorsVisibleContext, EmbedderIdentifierContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, FocusedViewContext, HasWebFileSystemAccess, InEditorZenModeContext, IsAuxiliaryWindowContext, IsAuxiliaryWindowFocusedContext, IsCompactTitleBarContext, IsMainEditorCenteredLayoutContext, IsMainWindowFullscreenContext, IsSandboxWorkspaceContext, MainEditorAreaVisibleContext, MultipleEditorGroupsContext, MultipleEditorsSelectedInGroupContext, NotificationFocusedContext, NotificationsCenterVisibleContext, NotificationsToastsVisibleContext, OpenFolderWorkspaceSupportContext, PanelAlignmentContext, PanelFocusContext, PanelMaximizedContext, PanelPositionContext, PanelVisibleContext, RemoteNameContext, ResourceContextKey, SelectedEditorsInGroupFileOrUntitledResourceContextKey, SideBarVisibleContext, SideBySideEditorActiveContext, SidebarFocusContext, SplitEditorsVertically, StatusBarFocused, TemporaryWorkspaceContext, TextCompareEditorActiveContext, TextCompareEditorVisibleContext, TitleBarStyleContext, TitleBarVisibleContext, TwoEditorsSelectedInGroupContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, applyAvailableEditorIds, getVisbileViewContextKey };
@@ -0,0 +1,32 @@
1
+ import { AbstractSideBySideEditorInputSerializer, SideBySideEditorInput } from "./sideBySideEditorInput.js";
2
+ import { EditorInput, IUntypedEditorOptions } from "./editorInput.js";
3
+ import { EditorModel } from "./editorModel.js";
4
+ import { Verbosity, IEditorDescriptor, IEditorPane, IResourceDiffEditorInput, IUntypedEditorInput, IDiffEditorInput, IResourceSideBySideEditorInput, EditorInputCapabilities } from "../editor.js";
5
+ import { IInstantiationService } from "../../../platform/instantiation/common/instantiation.js";
6
+ import { IEditorService } from "../../services/editor/common/editorService.service.js";
7
+ export declare class DiffEditorInput extends SideBySideEditorInput implements IDiffEditorInput {
8
+ readonly original: EditorInput;
9
+ readonly modified: EditorInput;
10
+ private readonly forceOpenAsBinary;
11
+ static readonly ID: string;
12
+ get typeId(): string;
13
+ get editorId(): string | undefined;
14
+ get capabilities(): EditorInputCapabilities;
15
+ private cachedModel;
16
+ private readonly labels;
17
+ constructor(preferredName: string | undefined, preferredDescription: string | undefined, original: EditorInput, modified: EditorInput, forceOpenAsBinary: boolean | undefined, editorService: IEditorService);
18
+ private computeLabels;
19
+ private computeLabel;
20
+ getName(): string;
21
+ getDescription(verbosity?: Verbosity): string | undefined;
22
+ getTitle(verbosity?: Verbosity): string;
23
+ resolve(): Promise<EditorModel>;
24
+ prefersEditorPane<T extends IEditorDescriptor<IEditorPane>>(editorPanes: T[]): T | undefined;
25
+ private createModel;
26
+ toUntyped(options?: IUntypedEditorOptions): (IResourceDiffEditorInput & IResourceSideBySideEditorInput) | undefined;
27
+ matches(otherInput: EditorInput | IUntypedEditorInput): boolean;
28
+ dispose(): void;
29
+ }
30
+ export declare class DiffEditorInputSerializer extends AbstractSideBySideEditorInputSerializer {
31
+ protected createEditorInput(instantiationService: IInstantiationService, name: string | undefined, description: string | undefined, secondaryInput: EditorInput, primaryInput: EditorInput): EditorInput;
32
+ }
@@ -0,0 +1,180 @@
1
+
2
+ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
3
+ import { localize } from '../../../nls.js';
4
+ import { SideBySideEditorInput, AbstractSideBySideEditorInputSerializer } from './sideBySideEditorInput.js';
5
+ import { EditorInputCapabilities, Verbosity, BINARY_DIFF_EDITOR_ID, TEXT_DIFF_EDITOR_ID, isResourceDiffEditorInput } from '../editor.js';
6
+ import { BaseTextEditorModel } from './textEditorModel.js';
7
+ import { DiffEditorModel } from './diffEditorModel.js';
8
+ import { TextDiffEditorModel } from './textDiffEditorModel.js';
9
+ import { IEditorService } from '../../services/editor/common/editorService.service.js';
10
+ import { shorten } from '../../../base/common/labels.js';
11
+ import { isResolvedEditorModel } from '../../../platform/editor/common/editor.js';
12
+
13
+ var DiffEditorInput_1;
14
+ let DiffEditorInput = class DiffEditorInput extends SideBySideEditorInput {
15
+ static { DiffEditorInput_1 = this; }
16
+ static { this.ID = 'workbench.editors.diffEditorInput'; }
17
+ get typeId() {
18
+ return DiffEditorInput_1.ID;
19
+ }
20
+ get editorId() {
21
+ return this.modified.editorId === this.original.editorId ? this.modified.editorId : undefined;
22
+ }
23
+ get capabilities() {
24
+ let capabilities = super.capabilities;
25
+ if (this.labels.forceDescription) {
26
+ capabilities |= EditorInputCapabilities.ForceDescription;
27
+ }
28
+ return capabilities;
29
+ }
30
+ constructor(preferredName, preferredDescription, original, modified, forceOpenAsBinary, editorService) {
31
+ super(preferredName, preferredDescription, original, modified, editorService);
32
+ this.original = original;
33
+ this.modified = modified;
34
+ this.forceOpenAsBinary = forceOpenAsBinary;
35
+ this.cachedModel = undefined;
36
+ this.labels = this.computeLabels();
37
+ }
38
+ computeLabels() {
39
+ let name;
40
+ let forceDescription = false;
41
+ if (this.preferredName) {
42
+ name = this.preferredName;
43
+ }
44
+ else {
45
+ const originalName = this.original.getName();
46
+ const modifiedName = this.modified.getName();
47
+ name = ( localize(3942, "{0} ↔ {1}", originalName, modifiedName));
48
+ forceDescription = originalName === modifiedName;
49
+ }
50
+ let shortDescription;
51
+ let mediumDescription;
52
+ let longDescription;
53
+ if (this.preferredDescription) {
54
+ shortDescription = this.preferredDescription;
55
+ mediumDescription = this.preferredDescription;
56
+ longDescription = this.preferredDescription;
57
+ }
58
+ else {
59
+ shortDescription = this.computeLabel(this.original.getDescription(Verbosity.SHORT), this.modified.getDescription(Verbosity.SHORT));
60
+ longDescription = this.computeLabel(this.original.getDescription(Verbosity.LONG), this.modified.getDescription(Verbosity.LONG));
61
+ const originalMediumDescription = this.original.getDescription(Verbosity.MEDIUM);
62
+ const modifiedMediumDescription = this.modified.getDescription(Verbosity.MEDIUM);
63
+ if ((typeof originalMediumDescription === 'string' && typeof modifiedMediumDescription === 'string') &&
64
+ (originalMediumDescription || modifiedMediumDescription)
65
+ ) {
66
+ const [shortenedOriginalMediumDescription, shortenedModifiedMediumDescription] = shorten([originalMediumDescription, modifiedMediumDescription]);
67
+ mediumDescription = this.computeLabel(shortenedOriginalMediumDescription, shortenedModifiedMediumDescription);
68
+ }
69
+ }
70
+ let shortTitle = this.computeLabel(this.original.getTitle(Verbosity.SHORT) ?? this.original.getName(), this.modified.getTitle(Verbosity.SHORT) ?? this.modified.getName(), ' ↔ ');
71
+ let mediumTitle = this.computeLabel(this.original.getTitle(Verbosity.MEDIUM) ?? this.original.getName(), this.modified.getTitle(Verbosity.MEDIUM) ?? this.modified.getName(), ' ↔ ');
72
+ let longTitle = this.computeLabel(this.original.getTitle(Verbosity.LONG) ?? this.original.getName(), this.modified.getTitle(Verbosity.LONG) ?? this.modified.getName(), ' ↔ ');
73
+ const preferredTitle = this.getPreferredTitle();
74
+ if (preferredTitle) {
75
+ shortTitle = `${preferredTitle} (${shortTitle})`;
76
+ mediumTitle = `${preferredTitle} (${mediumTitle})`;
77
+ longTitle = `${preferredTitle} (${longTitle})`;
78
+ }
79
+ return { name, shortDescription, mediumDescription, longDescription, forceDescription, shortTitle, mediumTitle, longTitle };
80
+ }
81
+ computeLabel(originalLabel, modifiedLabel, separator = ' - ') {
82
+ if (!originalLabel || !modifiedLabel) {
83
+ return undefined;
84
+ }
85
+ if (originalLabel === modifiedLabel) {
86
+ return modifiedLabel;
87
+ }
88
+ return `${originalLabel}${separator}${modifiedLabel}`;
89
+ }
90
+ getName() {
91
+ return this.labels.name;
92
+ }
93
+ getDescription(verbosity = Verbosity.MEDIUM) {
94
+ switch (verbosity) {
95
+ case Verbosity.SHORT:
96
+ return this.labels.shortDescription;
97
+ case Verbosity.LONG:
98
+ return this.labels.longDescription;
99
+ case Verbosity.MEDIUM:
100
+ default:
101
+ return this.labels.mediumDescription;
102
+ }
103
+ }
104
+ getTitle(verbosity) {
105
+ switch (verbosity) {
106
+ case Verbosity.SHORT:
107
+ return this.labels.shortTitle;
108
+ case Verbosity.LONG:
109
+ return this.labels.longTitle;
110
+ default:
111
+ case Verbosity.MEDIUM:
112
+ return this.labels.mediumTitle;
113
+ }
114
+ }
115
+ async resolve() {
116
+ const resolvedModel = await this.createModel();
117
+ this.cachedModel?.dispose();
118
+ this.cachedModel = resolvedModel;
119
+ return this.cachedModel;
120
+ }
121
+ prefersEditorPane(editorPanes) {
122
+ if (this.forceOpenAsBinary) {
123
+ return editorPanes.find(editorPane => editorPane.typeId === BINARY_DIFF_EDITOR_ID);
124
+ }
125
+ return editorPanes.find(editorPane => editorPane.typeId === TEXT_DIFF_EDITOR_ID);
126
+ }
127
+ async createModel() {
128
+ const [originalEditorModel, modifiedEditorModel] = await Promise.all([
129
+ this.original.resolve(),
130
+ this.modified.resolve()
131
+ ]);
132
+ if (modifiedEditorModel instanceof BaseTextEditorModel && originalEditorModel instanceof BaseTextEditorModel) {
133
+ return ( new TextDiffEditorModel(originalEditorModel, modifiedEditorModel));
134
+ }
135
+ return ( new DiffEditorModel(
136
+ isResolvedEditorModel(originalEditorModel) ? originalEditorModel : undefined,
137
+ isResolvedEditorModel(modifiedEditorModel) ? modifiedEditorModel : undefined
138
+ ));
139
+ }
140
+ toUntyped(options) {
141
+ const untyped = super.toUntyped(options);
142
+ if (untyped) {
143
+ return {
144
+ ...untyped,
145
+ modified: untyped.primary,
146
+ original: untyped.secondary
147
+ };
148
+ }
149
+ return undefined;
150
+ }
151
+ matches(otherInput) {
152
+ if (this === otherInput) {
153
+ return true;
154
+ }
155
+ if (otherInput instanceof DiffEditorInput_1) {
156
+ return this.modified.matches(otherInput.modified) && this.original.matches(otherInput.original) && otherInput.forceOpenAsBinary === this.forceOpenAsBinary;
157
+ }
158
+ if (isResourceDiffEditorInput(otherInput)) {
159
+ return this.modified.matches(otherInput.modified) && this.original.matches(otherInput.original);
160
+ }
161
+ return false;
162
+ }
163
+ dispose() {
164
+ if (this.cachedModel) {
165
+ this.cachedModel.dispose();
166
+ this.cachedModel = undefined;
167
+ }
168
+ super.dispose();
169
+ }
170
+ };
171
+ DiffEditorInput = DiffEditorInput_1 = ( __decorate([
172
+ ( __param(5, IEditorService))
173
+ ], DiffEditorInput));
174
+ class DiffEditorInputSerializer extends AbstractSideBySideEditorInputSerializer {
175
+ createEditorInput(instantiationService, name, description, secondaryInput, primaryInput) {
176
+ return instantiationService.createInstance(DiffEditorInput, name, description, secondaryInput, primaryInput, undefined);
177
+ }
178
+ }
179
+
180
+ export { DiffEditorInput, DiffEditorInputSerializer };
@@ -0,0 +1,12 @@
1
+ import { EditorModel } from "./editorModel.js";
2
+ import { IResolvableEditorModel } from "../../../platform/editor/common/editor.js";
3
+ export declare class DiffEditorModel extends EditorModel {
4
+ protected readonly _originalModel: IResolvableEditorModel | undefined;
5
+ get originalModel(): IResolvableEditorModel | undefined;
6
+ protected readonly _modifiedModel: IResolvableEditorModel | undefined;
7
+ get modifiedModel(): IResolvableEditorModel | undefined;
8
+ constructor(originalModel: IResolvableEditorModel | undefined, modifiedModel: IResolvableEditorModel | undefined);
9
+ resolve(): Promise<void>;
10
+ isResolved(): boolean;
11
+ dispose(): void;
12
+ }
@@ -0,0 +1,26 @@
1
+
2
+ import { EditorModel } from './editorModel.js';
3
+
4
+ class DiffEditorModel extends EditorModel {
5
+ get originalModel() { return this._originalModel; }
6
+ get modifiedModel() { return this._modifiedModel; }
7
+ constructor(originalModel, modifiedModel) {
8
+ super();
9
+ this._originalModel = originalModel;
10
+ this._modifiedModel = modifiedModel;
11
+ }
12
+ async resolve() {
13
+ await Promise.all([
14
+ this._originalModel?.resolve(),
15
+ this._modifiedModel?.resolve()
16
+ ]);
17
+ }
18
+ isResolved() {
19
+ return !!(this._originalModel?.isResolved() && this._modifiedModel?.isResolved());
20
+ }
21
+ dispose() {
22
+ super.dispose();
23
+ }
24
+ }
25
+
26
+ export { DiffEditorModel };
@@ -1,7 +1,7 @@
1
1
  import { Emitter } from "../../../base/common/event.js";
2
2
  import { URI } from "../../../base/common/uri.js";
3
3
  import { EditorInputCapabilities, Verbosity, GroupIdentifier, ISaveOptions, IRevertOptions, IMoveResult, IEditorDescriptor, IEditorPane, IUntypedEditorInput, AbstractEditorInput, IEditorIdentifier } from "../editor.js";
4
- import { ConfirmResult } from "@codingame/monaco-vscode-2726569c-a06b-5f25-b851-14311bef12fa-common/vscode/vs/platform/dialogs/common/dialogs";
4
+ import { ConfirmResult } from "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/platform/dialogs/common/dialogs";
5
5
  import { IMarkdownString } from "../../../base/common/htmlContent.js";
6
6
  import { IDisposable } from "../../../base/common/lifecycle.js";
7
7
  import { ThemeIcon } from "../../../base/common/themables.js";
@@ -0,0 +1,10 @@
1
+ import { Disposable } from "../../../base/common/lifecycle.js";
2
+ export declare class EditorModel extends Disposable {
3
+ private readonly _onWillDispose;
4
+ readonly onWillDispose: import("../../../base/common/event.js").Event<void>;
5
+ private resolved;
6
+ resolve(): Promise<void>;
7
+ isResolved(): boolean;
8
+ isDisposed(): boolean;
9
+ dispose(): void;
10
+ }
@@ -0,0 +1,27 @@
1
+
2
+ import { Emitter } from '../../../base/common/event.js';
3
+ import { Disposable } from '../../../base/common/lifecycle.js';
4
+
5
+ class EditorModel extends Disposable {
6
+ constructor() {
7
+ super(...arguments);
8
+ this._onWillDispose = this._register(( new Emitter()));
9
+ this.onWillDispose = this._onWillDispose.event;
10
+ this.resolved = false;
11
+ }
12
+ async resolve() {
13
+ this.resolved = true;
14
+ }
15
+ isResolved() {
16
+ return this.resolved;
17
+ }
18
+ isDisposed() {
19
+ return this._store.isDisposed;
20
+ }
21
+ dispose() {
22
+ this._onWillDispose.fire();
23
+ super.dispose();
24
+ }
25
+ }
26
+
27
+ export { EditorModel };
@@ -0,0 +1,51 @@
1
+ import { IMarkdownString } from "../../../base/common/htmlContent.js";
2
+ import { URI } from "../../../base/common/uri.js";
3
+ import { IInstantiationService } from "../../../platform/instantiation/common/instantiation.js";
4
+ import { EditorInputCapabilities, GroupIdentifier, ISaveOptions, IRevertOptions, IEditorSerializer, ISideBySideEditorInput, IUntypedEditorInput, IResourceSideBySideEditorInput, IMoveResult, Verbosity } from "../editor.js";
5
+ import { EditorInput, IUntypedEditorOptions } from "./editorInput.js";
6
+ import { IEditorService } from "../../services/editor/common/editorService.service.js";
7
+ export declare class SideBySideEditorInput extends EditorInput implements ISideBySideEditorInput {
8
+ protected readonly preferredName: string | undefined;
9
+ protected readonly preferredDescription: string | undefined;
10
+ readonly secondary: EditorInput;
11
+ readonly primary: EditorInput;
12
+ private readonly editorService;
13
+ static readonly ID: string;
14
+ get typeId(): string;
15
+ get capabilities(): EditorInputCapabilities;
16
+ get resource(): URI | undefined;
17
+ private hasIdenticalSides;
18
+ constructor(preferredName: string | undefined, preferredDescription: string | undefined, secondary: EditorInput, primary: EditorInput, editorService: IEditorService);
19
+ private registerListeners;
20
+ getName(): string;
21
+ getPreferredName(): string | undefined;
22
+ getDescription(verbosity?: Verbosity): string | undefined;
23
+ getPreferredDescription(): string | undefined;
24
+ getTitle(verbosity?: Verbosity): string;
25
+ protected getPreferredTitle(): string | undefined;
26
+ getLabelExtraClasses(): string[];
27
+ getAriaLabel(): string;
28
+ getTelemetryDescriptor(): {
29
+ [key: string]: unknown;
30
+ };
31
+ isDirty(): boolean;
32
+ isSaving(): boolean;
33
+ save(group: GroupIdentifier, options?: ISaveOptions): Promise<EditorInput | IUntypedEditorInput | undefined>;
34
+ saveAs(group: GroupIdentifier, options?: ISaveOptions): Promise<EditorInput | IUntypedEditorInput | undefined>;
35
+ private saveResultToEditor;
36
+ revert(group: GroupIdentifier, options?: IRevertOptions): Promise<void>;
37
+ rename(group: GroupIdentifier, target: URI): Promise<IMoveResult | undefined>;
38
+ isReadonly(): boolean | IMarkdownString;
39
+ toUntyped(options?: IUntypedEditorOptions): IResourceSideBySideEditorInput | undefined;
40
+ matches(otherInput: EditorInput | IUntypedEditorInput): boolean;
41
+ }
42
+ export declare abstract class AbstractSideBySideEditorInputSerializer implements IEditorSerializer {
43
+ canSerialize(editorInput: EditorInput): boolean;
44
+ serialize(editorInput: EditorInput): string | undefined;
45
+ deserialize(instantiationService: IInstantiationService, serializedEditorInput: string): EditorInput | undefined;
46
+ private getSerializers;
47
+ protected abstract createEditorInput(instantiationService: IInstantiationService, name: string | undefined, description: string | undefined, secondaryInput: EditorInput, primaryInput: EditorInput): EditorInput;
48
+ }
49
+ export declare class SideBySideEditorInputSerializer extends AbstractSideBySideEditorInputSerializer {
50
+ protected createEditorInput(instantiationService: IInstantiationService, name: string | undefined, description: string | undefined, secondaryInput: EditorInput, primaryInput: EditorInput): EditorInput;
51
+ }