@codingame/monaco-vscode-api 13.1.7 → 14.0.1

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 (792) hide show
  1. package/extensions.d.ts +3 -2
  2. package/missing-services.js +177 -63
  3. package/monaco.d.ts +2 -1
  4. package/package.json +8 -8
  5. package/services.d.ts +2 -2
  6. package/services.js +2 -3
  7. package/vscode/src/vs/base/browser/cssValue.js +1 -1
  8. package/vscode/src/vs/base/browser/dom.js +4 -1
  9. package/vscode/src/vs/base/browser/markdownRenderer.js +12 -0
  10. package/vscode/src/vs/base/browser/touch.js +2 -1
  11. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css.js +1 -1
  12. package/vscode/src/vs/base/browser/ui/button/button.d.ts +2 -1
  13. package/vscode/src/vs/base/browser/ui/button/button.js +10 -6
  14. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
  15. package/vscode/src/vs/base/browser/ui/findinput/replaceInput.d.ts +2 -1
  16. package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +2 -2
  17. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
  18. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +1 -1
  19. package/vscode/src/vs/base/browser/ui/list/listView.d.ts +10 -0
  20. package/vscode/src/vs/base/browser/ui/list/listView.js +102 -6
  21. package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +1 -0
  22. package/vscode/src/vs/base/browser/ui/menu/menu.js +4 -1
  23. package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +1 -1
  24. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +6 -6
  25. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.d.ts +1 -2
  26. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +18 -8
  27. package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +2 -2
  28. package/vscode/src/vs/base/common/actions.d.ts +1 -1
  29. package/vscode/src/vs/base/common/arrays.d.ts +1 -2
  30. package/vscode/src/vs/base/common/arrays.js +2 -2
  31. package/vscode/src/vs/base/common/assert.d.ts +1 -1
  32. package/vscode/src/vs/base/common/assert.js +5 -2
  33. package/vscode/src/vs/base/common/async.js +16 -2
  34. package/vscode/src/vs/base/common/codicons.d.ts +1 -0
  35. package/vscode/src/vs/base/common/codiconsLibrary.d.ts +1 -0
  36. package/vscode/src/vs/base/common/codiconsLibrary.js +1 -0
  37. package/vscode/src/vs/base/common/color.d.ts +2 -2
  38. package/vscode/src/vs/base/common/color.js +4 -4
  39. package/vscode/src/vs/base/common/decorators.d.ts +1 -0
  40. package/vscode/src/vs/base/common/decorators.js +2 -0
  41. package/vscode/src/vs/base/common/errors.d.ts +2 -0
  42. package/vscode/src/vs/base/common/errors.js +10 -2
  43. package/vscode/src/vs/base/common/event.d.ts +3 -3
  44. package/vscode/src/vs/base/common/event.js +2 -2
  45. package/vscode/src/vs/base/common/filters.js +1 -1
  46. package/vscode/src/vs/base/common/iterator.d.ts +1 -1
  47. package/vscode/src/vs/base/common/iterator.js +8 -2
  48. package/vscode/src/vs/base/common/lifecycle.d.ts +7 -0
  49. package/vscode/src/vs/base/common/map.d.ts +8 -16
  50. package/vscode/src/vs/base/common/map.js +43 -30
  51. package/vscode/src/vs/base/common/network.d.ts +2 -2
  52. package/vscode/src/vs/base/common/network.js +4 -4
  53. package/vscode/src/vs/base/common/numbers.d.ts +1 -0
  54. package/vscode/src/vs/base/common/observableInternal/autorun.d.ts +2 -2
  55. package/vscode/src/vs/base/common/observableInternal/autorun.js +14 -1
  56. package/vscode/src/vs/base/common/observableInternal/base.d.ts +13 -9
  57. package/vscode/src/vs/base/common/observableInternal/base.js +7 -1
  58. package/vscode/src/vs/base/common/observableInternal/derived.d.ts +5 -3
  59. package/vscode/src/vs/base/common/observableInternal/derived.js +31 -4
  60. package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
  61. package/vscode/src/vs/base/common/observableInternal/lazyObservableValue.js +5 -2
  62. package/vscode/src/vs/base/common/observableInternal/logging.d.ts +10 -4
  63. package/vscode/src/vs/base/common/observableInternal/logging.js +310 -1
  64. package/vscode/src/vs/base/common/observableInternal/utils.d.ts +9 -9
  65. package/vscode/src/vs/base/common/observableInternal/utils.js +13 -4
  66. package/vscode/src/vs/base/common/path.js +1 -2
  67. package/vscode/src/vs/base/common/product.d.ts +5 -0
  68. package/vscode/src/vs/base/common/stream.d.ts +1 -1
  69. package/vscode/src/vs/base/common/stream.js +13 -5
  70. package/vscode/src/vs/base/common/strings.d.ts +1 -0
  71. package/vscode/src/vs/base/common/strings.js +19 -9
  72. package/vscode/src/vs/base/common/types.d.ts +2 -1
  73. package/vscode/src/vs/base/common/types.js +9 -4
  74. package/vscode/src/vs/base/common/uuid.js +1 -50
  75. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +2 -1
  76. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +26 -12
  77. package/vscode/src/vs/editor/browser/editorDom.js +3 -3
  78. package/vscode/src/vs/editor/browser/editorExtensions.js +15 -0
  79. package/vscode/src/vs/editor/browser/gpu/atlas/atlas.d.ts +7 -2
  80. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.d.ts +1 -1
  81. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +34 -27
  82. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.d.ts +1 -1
  83. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.js +8 -8
  84. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasSlabAllocator.js +3 -3
  85. package/vscode/src/vs/editor/browser/gpu/contentSegmenter.d.ts +7 -0
  86. package/vscode/src/vs/editor/browser/gpu/contentSegmenter.js +49 -0
  87. package/vscode/src/vs/editor/browser/gpu/{decorationCssRuleExtractor.d.ts → css/decorationCssRuleExtractor.d.ts} +1 -1
  88. package/vscode/src/vs/editor/browser/gpu/{decorationCssRuleExtractor.js → css/decorationCssRuleExtractor.js} +2 -2
  89. package/vscode/src/vs/editor/browser/gpu/css/decorationStyleCache.d.ts +15 -0
  90. package/vscode/src/vs/editor/browser/gpu/css/decorationStyleCache.js +37 -0
  91. package/vscode/src/vs/editor/browser/gpu/{media → css/media}/decorationCssRuleExtractor.css.js +1 -1
  92. package/vscode/src/vs/editor/browser/gpu/gpu.d.ts +6 -2
  93. package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.d.ts +5 -2
  94. package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +57 -14
  95. package/vscode/src/vs/editor/browser/gpu/raster/raster.d.ts +2 -1
  96. package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.d.ts +4 -1
  97. package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.js +5 -1
  98. package/vscode/src/vs/editor/browser/gpu/renderStrategy/baseRenderStrategy.d.ts +25 -0
  99. package/vscode/src/vs/editor/browser/gpu/renderStrategy/baseRenderStrategy.js +16 -0
  100. package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.d.ts → renderStrategy/fullFileRenderStrategy.d.ts} +14 -13
  101. package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.js → renderStrategy/fullFileRenderStrategy.js} +100 -57
  102. package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.wgsl.js → renderStrategy/fullFileRenderStrategy.wgsl.js} +3 -3
  103. package/vscode/src/vs/editor/browser/gpu/renderStrategy/viewportRenderStrategy.d.ts +40 -0
  104. package/vscode/src/vs/editor/browser/gpu/renderStrategy/viewportRenderStrategy.js +287 -0
  105. package/vscode/src/vs/editor/browser/gpu/taskQueue.d.ts +4 -3
  106. package/vscode/src/vs/editor/browser/gpu/taskQueue.js +17 -2
  107. package/vscode/src/vs/editor/browser/gpu/viewGpuContext.d.ts +8 -9
  108. package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +45 -34
  109. package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +28 -21
  110. package/vscode/src/vs/editor/browser/observableCodeEditor.js +68 -2
  111. package/vscode/src/vs/editor/browser/point.d.ts +9 -0
  112. package/vscode/src/vs/editor/browser/point.js +22 -0
  113. package/vscode/src/vs/editor/browser/rect.d.ts +30 -0
  114. package/vscode/src/vs/editor/browser/rect.js +131 -0
  115. package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +1 -1
  116. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +1 -1
  117. package/vscode/src/vs/editor/browser/view/viewLayer.d.ts +1 -1
  118. package/vscode/src/vs/editor/browser/view/viewLayer.js +8 -1
  119. package/vscode/src/vs/editor/browser/view.d.ts +1 -0
  120. package/vscode/src/vs/editor/browser/view.js +9 -5
  121. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +1 -1
  122. package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.d.ts +7 -3
  123. package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +140 -56
  124. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +1 -0
  125. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +5 -0
  126. package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.d.ts +2 -1
  127. package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +8 -1
  128. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.d.ts +1 -0
  129. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +14 -9
  130. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.d.ts +12 -10
  131. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +12 -5
  132. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.d.ts +1 -1
  133. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.d.ts +4 -2
  134. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +29 -7
  135. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.d.ts +28 -28
  136. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.d.ts +2 -2
  137. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +0 -1
  138. package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.d.ts +1 -1
  139. package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.d.ts +2 -2
  140. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.d.ts +2 -2
  141. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +3 -6
  142. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +3 -10
  143. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +8 -6
  144. package/vscode/src/vs/editor/common/config/editorOptions.js +409 -392
  145. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
  146. package/vscode/src/vs/editor/common/core/offsetEdit.d.ts +3 -0
  147. package/vscode/src/vs/editor/common/core/offsetEdit.js +9 -0
  148. package/vscode/src/vs/editor/common/core/offsetRange.d.ts +1 -0
  149. package/vscode/src/vs/editor/common/core/offsetRange.js +3 -0
  150. package/vscode/src/vs/editor/common/core/position.js +1 -1
  151. package/vscode/src/vs/editor/common/core/positionToOffset.d.ts +1 -0
  152. package/vscode/src/vs/editor/common/core/positionToOffset.js +20 -1
  153. package/vscode/src/vs/editor/common/core/range.d.ts +1 -0
  154. package/vscode/src/vs/editor/common/core/range.js +3 -0
  155. package/vscode/src/vs/editor/common/core/textEdit.d.ts +0 -6
  156. package/vscode/src/vs/editor/common/core/textEdit.js +0 -1
  157. package/vscode/src/vs/editor/common/core/textLength.js +1 -1
  158. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +10 -7
  159. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.d.ts +2 -1
  160. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +6 -6
  161. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.d.ts +1 -0
  162. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +20 -0
  163. package/vscode/src/vs/editor/common/diff/linesDiffComputer.d.ts +1 -0
  164. package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +1 -1
  165. package/vscode/src/vs/editor/common/diff/rangeMapping.js +1 -22
  166. package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
  167. package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +1 -1
  168. package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +5 -5
  169. package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
  170. package/vscode/src/vs/editor/common/languages.d.ts +21 -25
  171. package/vscode/src/vs/editor/common/languages.js +27 -27
  172. package/vscode/src/vs/editor/common/model/editStack.js +1 -1
  173. package/vscode/src/vs/editor/common/model/textModel.d.ts +1 -0
  174. package/vscode/src/vs/editor/common/model/textModel.js +6 -3
  175. package/vscode/src/vs/editor/common/model/textModelTokens.d.ts +2 -2
  176. package/vscode/src/vs/editor/common/model/textModelTokens.js +11 -18
  177. package/vscode/src/vs/editor/common/model/tokenStore.d.ts +59 -0
  178. package/vscode/src/vs/editor/common/model/tokenStore.js +384 -0
  179. package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.d.ts +5 -5
  180. package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +10 -15
  181. package/vscode/src/vs/editor/common/model/tokens.d.ts +2 -2
  182. package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.d.ts +44 -0
  183. package/vscode/src/vs/editor/common/model/treeSitterTokenStoreService.js +114 -0
  184. package/vscode/src/vs/editor/common/model/treeSitterTokens.d.ts +4 -5
  185. package/vscode/src/vs/editor/common/model/treeSitterTokens.js +18 -10
  186. package/vscode/src/vs/editor/common/services/editorSimpleWorker.d.ts +1 -1
  187. package/vscode/src/vs/editor/common/services/editorWorker.d.ts +1 -1
  188. package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +1 -2
  189. package/vscode/src/vs/editor/common/services/languageFeaturesService.d.ts +1 -2
  190. package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -1
  191. package/vscode/src/vs/editor/common/services/treeSitterParserService.d.ts +18 -5
  192. package/vscode/src/vs/editor/common/standaloneStrings.d.ts +3 -0
  193. package/vscode/src/vs/editor/common/standaloneStrings.js +54 -38
  194. package/vscode/src/vs/editor/common/tokenizationTextModelPart.d.ts +1 -13
  195. package/vscode/src/vs/editor/common/tokenizationTextModelPart.js +1 -13
  196. package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +1 -0
  197. package/vscode/src/vs/editor/common/tokens/lineTokens.js +3 -0
  198. package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +5 -0
  199. package/vscode/src/vs/editor/common/tokens/tokenArray.js +24 -0
  200. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  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 +17 -17
  206. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  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 +1 -0
  212. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  213. package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +1 -1
  214. package/vscode/src/vs/editor/contrib/codelens/browser/codelens.d.ts +1 -1
  215. package/vscode/src/vs/editor/contrib/codelens/browser/codelens.js +7 -5
  216. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  217. package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css.js +1 -1
  218. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  219. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  220. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPicker.d.ts +2 -0
  221. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPicker.js +12 -0
  222. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.d.ts +1 -2
  223. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.js +2 -9
  224. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +3 -5
  225. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  226. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.d.ts +12 -8
  227. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +41 -41
  228. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.d.ts +2 -0
  229. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.js +13 -8
  230. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
  231. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  232. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  233. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  234. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +32 -33
  235. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  236. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  237. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  238. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  239. package/vscode/src/vs/editor/contrib/find/browser/findController.d.ts +1 -0
  240. package/vscode/src/vs/editor/contrib/find/browser/findController.js +20 -17
  241. package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +2 -1
  242. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +32 -30
  243. package/vscode/src/vs/editor/contrib/find/browser/replaceWidgetHistory.d.ts +21 -0
  244. package/vscode/src/vs/editor/contrib/find/browser/replaceWidgetHistory.js +76 -0
  245. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
  246. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  247. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  248. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  249. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.d.ts +1 -1
  250. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +40 -36
  251. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  252. package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +56 -30
  253. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.d.ts +1 -1
  254. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +43 -41
  255. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +3 -2
  256. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +5 -4
  257. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  258. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  259. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  260. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  261. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +5 -5
  262. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.d.ts +1 -3
  263. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +54 -59
  264. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.d.ts +1 -0
  265. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +47 -16
  266. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.d.ts +4 -0
  267. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +27 -15
  268. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +10 -1
  269. package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverWidget.js +2 -1
  270. package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +1 -1
  271. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.d.ts +4 -4
  272. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  273. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.d.ts +1 -0
  274. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +4 -3
  275. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.d.ts +4 -0
  276. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +38 -25
  277. package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +2 -1
  278. package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.js +1 -0
  279. package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.d.ts +4 -1
  280. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.d.ts +3 -1
  281. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +65 -33
  282. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  283. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  284. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  285. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  286. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +2 -2
  287. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +38 -24
  288. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.d.ts +1 -0
  289. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -10
  290. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +7 -3
  291. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +50 -7
  292. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +8 -7
  293. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  294. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.d.ts +2 -2
  295. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.d.ts +2 -0
  296. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.js +1 -1
  297. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +18 -19
  298. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +55 -27
  299. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +22 -7
  300. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +199 -21
  301. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +3 -0
  302. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +5 -1
  303. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +38 -15
  304. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -1
  305. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.d.ts +1 -0
  306. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +10 -10
  307. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +16 -3
  308. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +65 -30
  309. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.d.ts +6 -5
  310. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +7 -6
  311. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/deletionView.d.ts +29 -0
  312. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/deletionView.js +141 -0
  313. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorMenu.d.ts +19 -0
  314. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorMenu.js +143 -0
  315. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorView.d.ts +37 -0
  316. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/gutterIndicatorView.js +259 -0
  317. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{inlineEditsIndicatorView.d.ts → indicatorView.d.ts} +1 -2
  318. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{inlineEditsIndicatorView.js → indicatorView.js} +9 -8
  319. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineDiffView.d.ts +5 -2
  320. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineDiffView.js +39 -19
  321. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/insertionView.d.ts +32 -0
  322. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/insertionView.js +204 -0
  323. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/sideBySideDiff.d.ts +71 -0
  324. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/sideBySideDiff.js +584 -0
  325. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils.d.ts +123 -12
  326. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils.js +348 -20
  327. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css.js +6 -0
  328. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.d.ts +41 -0
  329. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.js +365 -0
  330. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/{inlineEditsViewAndDiffProducer.d.ts → viewAndDiffProducer.d.ts} +7 -13
  331. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/viewAndDiffProducer.js +92 -0
  332. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/wordReplacementView.d.ts +58 -0
  333. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/wordReplacementView.js +520 -0
  334. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  335. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
  336. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  337. package/vscode/src/vs/editor/contrib/links/browser/getLinks.d.ts +1 -0
  338. package/vscode/src/vs/editor/contrib/links/browser/getLinks.js +16 -12
  339. package/vscode/src/vs/editor/contrib/links/browser/links.d.ts +1 -0
  340. package/vscode/src/vs/editor/contrib/links/browser/links.js +13 -10
  341. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  342. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  343. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  344. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +5 -5
  345. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +1 -2
  346. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -26
  347. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  348. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  349. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
  350. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  351. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  352. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
  353. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  354. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +1 -1
  355. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.d.ts +2 -3
  356. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +19 -15
  357. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.d.ts +14 -0
  358. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +48 -19
  359. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +7 -0
  360. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +25 -6
  361. package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css.js +1 -1
  362. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  363. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  364. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +20 -20
  365. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +9 -7
  366. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.d.ts +0 -1
  367. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +3 -7
  368. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +5 -1
  369. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  370. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  371. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  372. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
  373. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  374. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  375. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  376. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  377. package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.d.ts +2 -2
  378. package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +8 -3
  379. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.d.ts +4 -0
  380. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -0
  381. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +2 -1
  382. package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.d.ts +3 -7
  383. package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.js +1 -1
  384. package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +3 -2
  385. package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +1 -0
  386. package/vscode/src/vs/platform/accessibility/browser/accessibleViewRegistry.d.ts +4 -4
  387. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +52 -52
  388. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  389. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
  390. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  391. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.d.ts +39 -0
  392. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +145 -0
  393. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +1 -0
  394. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +6 -6
  395. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
  396. package/vscode/src/vs/platform/actions/common/actions.d.ts +4 -1
  397. package/vscode/src/vs/platform/actions/common/actions.js +9 -6
  398. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  399. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  400. package/vscode/src/vs/platform/commands/common/commands.js +2 -2
  401. package/vscode/src/vs/platform/configuration/common/configuration.d.ts +4 -1
  402. package/vscode/src/vs/platform/configuration/common/configuration.js +3 -0
  403. package/vscode/src/vs/platform/configuration/common/configurationModels.d.ts +2 -2
  404. package/vscode/src/vs/platform/configuration/common/configurationModels.js +39 -21
  405. package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +9 -4
  406. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +25 -15
  407. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  408. package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
  409. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  410. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  411. package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -2
  412. package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
  413. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  414. package/vscode/src/vs/platform/environment/common/argv.d.ts +2 -0
  415. package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -1
  416. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +5 -3
  417. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +17 -6
  418. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +5 -5
  419. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.d.ts +2 -1
  420. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +10 -1
  421. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  422. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.d.ts +3 -5
  423. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +8 -13
  424. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.service.d.ts +2 -2
  425. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +20 -14
  426. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +127 -125
  427. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.service.d.ts +8 -9
  428. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
  429. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +56 -25
  430. package/vscode/src/vs/platform/extensions/common/extensions.js +8 -1
  431. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +11 -8
  432. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +12 -9
  433. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  434. package/vscode/src/vs/platform/files/common/files.js +6 -6
  435. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  436. package/vscode/src/vs/platform/instantiation/common/extensions.d.ts +3 -2
  437. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  438. package/vscode/src/vs/platform/label/common/label.service.d.ts +2 -1
  439. package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
  440. package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -0
  441. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  442. package/vscode/src/vs/platform/log/common/log.d.ts +6 -0
  443. package/vscode/src/vs/platform/log/common/log.js +18 -9
  444. package/vscode/src/vs/platform/markers/common/markers.js +3 -3
  445. package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css.js +1 -1
  446. package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +5 -0
  447. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +19 -9
  448. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
  449. package/vscode/src/vs/platform/quickinput/browser/quickInputController.d.ts +11 -1
  450. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +241 -12
  451. package/vscode/src/vs/platform/quickinput/browser/quickInputService.d.ts +4 -0
  452. package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +3 -0
  453. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
  454. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  455. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +2 -1
  456. package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +4 -0
  457. package/vscode/src/vs/platform/request/common/request.d.ts +2 -2
  458. package/vscode/src/vs/platform/request/common/request.js +171 -112
  459. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.d.ts +2 -0
  460. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +3 -1
  461. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -2
  462. package/vscode/src/vs/platform/terminal/common/terminal.js +5 -1
  463. package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +1 -1
  464. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  465. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  466. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  467. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +96 -96
  468. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
  469. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  470. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  471. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  472. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
  473. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  474. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  475. package/vscode/src/vs/platform/theme/common/iconRegistry.d.ts +7 -0
  476. package/vscode/src/vs/platform/theme/common/iconRegistry.js +17 -7
  477. package/vscode/src/vs/platform/theme/common/theme.d.ts +6 -0
  478. package/vscode/src/vs/platform/theme/common/theme.js +8 -1
  479. package/vscode/src/vs/platform/theme/common/themeService.d.ts +12 -3
  480. package/vscode/src/vs/platform/theme/common/themeService.js +5 -5
  481. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  482. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  483. package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +7 -5
  484. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  485. package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +3 -3
  486. package/vscode/src/vs/platform/window/common/window.d.ts +6 -1
  487. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  488. package/vscode/src/vs/platform/workspaces/common/workspaces.service.d.ts +2 -2
  489. package/vscode/src/vs/workbench/api/browser/statusBarService.d.ts +3 -2
  490. package/vscode/src/vs/workbench/api/browser/statusBarService.js +3 -2
  491. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +10 -14
  492. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +18 -11
  493. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -20
  494. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -0
  495. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +37 -10
  496. package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +4 -18
  497. package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +2 -2
  498. package/vscode/src/vs/workbench/api/common/extHostCommands.js +1 -1
  499. package/vscode/src/vs/workbench/api/common/extHostComments.js +3 -5
  500. package/vscode/src/vs/workbench/api/common/extHostConfiguration.d.ts +16 -0
  501. package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +4 -0
  502. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  503. package/vscode/src/vs/workbench/api/common/extHostDialogs.d.ts +1 -2
  504. package/vscode/src/vs/workbench/api/common/extHostDialogs.js +1 -5
  505. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  506. package/vscode/src/vs/workbench/api/common/extHostLabelService.d.ts +1 -1
  507. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +0 -2
  508. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +29 -65
  509. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +3 -2
  510. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +33 -13
  511. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +3 -2
  512. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  513. package/vscode/src/vs/workbench/api/common/extHostMemento.js +6 -1
  514. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  515. package/vscode/src/vs/workbench/api/common/extHostSCM.js +2 -1
  516. package/vscode/src/vs/workbench/api/common/extHostStatusBar.d.ts +10 -2
  517. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +47 -7
  518. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +12 -8
  519. package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +3 -1
  520. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +66 -5
  521. package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +1 -0
  522. package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +18 -1
  523. package/vscode/src/vs/workbench/api/common/extHostTimeline.js +2 -2
  524. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
  525. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  526. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +4 -13
  527. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +7 -61
  528. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +24 -3
  529. package/vscode/src/vs/workbench/api/common/extHostTypes.js +37 -5
  530. package/vscode/src/vs/workbench/api/common/extHostVariableResolverService.js +22 -2
  531. package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +1 -1
  532. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +3 -2
  533. package/vscode/src/vs/workbench/api/common/extensionHostMain.js +17 -8
  534. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
  535. package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
  536. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  537. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.d.ts +12 -0
  538. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +247 -0
  539. package/vscode/src/vs/workbench/common/activity.d.ts +2 -0
  540. package/vscode/src/vs/workbench/common/activity.js +6 -0
  541. package/vscode/src/vs/workbench/common/configuration.js +12 -12
  542. package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
  543. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
  544. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
  545. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +166 -0
  546. package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
  547. package/vscode/src/vs/workbench/common/editor.js +4 -4
  548. package/vscode/src/vs/workbench/common/theme.js +159 -164
  549. package/vscode/src/vs/workbench/common/views.js +4 -4
  550. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +2 -1
  551. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +152 -142
  552. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +14 -14
  553. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.d.ts +1 -0
  554. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +16 -1
  555. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +28 -0
  556. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +521 -0
  557. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.d.ts +3 -0
  558. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +20 -0
  559. package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +136 -0
  560. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +51 -0
  561. package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +3 -3
  562. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
  563. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +8 -0
  564. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.js +6 -0
  565. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.d.ts +4 -0
  566. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.js +15 -0
  567. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.d.ts +23 -0
  568. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +309 -0
  569. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.d.ts +81 -0
  570. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +681 -0
  571. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.d.ts +57 -0
  572. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +169 -0
  573. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorOverlay.d.ts +20 -0
  574. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorOverlay.js +296 -0
  575. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.d.ts +41 -0
  576. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.js +198 -0
  577. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.service.d.ts +1 -1
  578. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.d.ts +3 -0
  579. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.js +15 -0
  580. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorController.css.js +6 -0
  581. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorOverlay.css.js +6 -0
  582. package/vscode/src/vs/workbench/contrib/chat/common/annotations.d.ts +20 -0
  583. package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +134 -0
  584. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +16 -4
  585. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +48 -5
  586. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +4 -0
  587. package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.service.d.ts +1 -2
  588. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +15 -3
  589. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +61 -29
  590. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +19 -3
  591. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +17 -2
  592. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +3 -4
  593. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +444 -0
  594. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +991 -0
  595. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +112 -0
  596. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +181 -0
  597. package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.d.ts +35 -0
  598. package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +5 -0
  599. package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +6 -1
  600. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +1 -2
  601. package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +3 -3
  602. package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -1
  603. package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -2
  604. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.d.ts +234 -0
  605. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +375 -0
  606. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
  607. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.d.ts +8 -0
  608. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +38 -0
  609. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.d.ts +12 -0
  610. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +42 -0
  611. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +3 -0
  612. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +1 -0
  613. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +10 -5
  614. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +7 -7
  615. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +9 -0
  616. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +27 -0
  617. package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +34 -0
  618. package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +168 -0
  619. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
  620. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  621. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.d.ts +2 -2
  622. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  623. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  624. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  625. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +1 -1
  626. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  627. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  628. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  629. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  630. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  631. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -19
  632. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
  633. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.d.ts +2 -2
  634. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  635. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.d.ts +1 -0
  636. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +14 -10
  637. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  638. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +4 -0
  639. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
  640. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.service.d.ts +1 -1
  641. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +167 -0
  642. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +85 -0
  643. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -2
  644. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  645. package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +2 -2
  646. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  647. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  648. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  649. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +2 -2
  650. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  651. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +10 -0
  652. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +4 -3
  653. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  654. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  655. package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.service.d.ts +0 -1
  656. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
  657. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditContext.d.ts +2 -0
  658. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditContext.js +7 -0
  659. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.service.d.ts +1 -1
  660. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.d.ts +602 -0
  661. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +143 -0
  662. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +2 -2
  663. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +6 -4
  664. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +2 -0
  665. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.d.ts +60 -0
  666. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +316 -0
  667. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
  668. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
  669. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
  670. package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.d.ts +13 -0
  671. package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +73 -0
  672. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.d.ts +36 -0
  673. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.js +11 -0
  674. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +3 -3
  675. package/vscode/src/vs/workbench/contrib/notebook/common/notebookSynchronizerService.service.d.ts +1 -1
  676. package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffModel.service.d.ts +8 -0
  677. package/vscode/src/vs/workbench/contrib/scm/browser/{diff.service.js → quickDiffModel.service.js} +2 -2
  678. package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +5 -1
  679. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.d.ts +30 -1
  680. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +95 -0
  681. package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +17 -0
  682. package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +82 -0
  683. package/vscode/src/vs/workbench/contrib/scm/common/scm.service.d.ts +1 -1
  684. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  685. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  686. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  687. package/vscode/src/vs/workbench/contrib/speech/common/speechService.d.ts +2 -1
  688. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +30 -29
  689. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  690. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +3 -3
  691. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -0
  692. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +3 -2
  693. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +2 -2
  694. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  695. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.d.ts +1 -1
  696. package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.service.d.ts +1 -1
  697. package/vscode/src/vs/workbench/contrib/testing/common/testId.d.ts +1 -0
  698. package/vscode/src/vs/workbench/contrib/testing/common/testId.js +3 -0
  699. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  700. package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
  701. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
  702. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.d.ts +1 -0
  703. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
  704. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.d.ts +1 -0
  705. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +26 -15
  706. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  707. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +5 -1
  708. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +10 -4
  709. package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
  710. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.d.ts +1 -1
  711. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.service.d.ts +1 -1
  712. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +3 -2
  713. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +83 -83
  714. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
  715. package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
  716. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +63 -0
  717. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +164 -0
  718. package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +1 -1
  719. package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
  720. package/vscode/src/vs/workbench/services/log/common/logConstants.d.ts +2 -0
  721. package/vscode/src/vs/workbench/services/log/common/logConstants.js +3 -1
  722. package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
  723. package/vscode/src/vs/workbench/services/output/common/output.d.ts +51 -8
  724. package/vscode/src/vs/workbench/services/output/common/output.js +30 -4
  725. package/vscode/src/vs/workbench/services/output/common/output.service.d.ts +8 -1
  726. package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.d.ts +1 -1
  727. package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +2 -2
  728. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  729. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  730. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  731. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +9 -4
  732. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +5 -1
  733. package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +1 -1
  734. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  735. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +15 -21
  736. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.d.ts +21 -2
  737. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.d.ts +3 -3
  738. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
  739. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
  740. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
  741. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
  742. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
  743. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
  744. package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +1 -1
  745. package/vscode-dts/vscode.d.ts +375 -32
  746. package/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts +1 -1
  747. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +11 -0
  748. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +9 -0
  749. package/vscode-dts/vscode.proposed.chatProvider.d.ts +4 -0
  750. package/vscode-dts/vscode.proposed.chatReadonlyPromptReference.d.ts +17 -0
  751. package/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts +5 -0
  752. package/vscode-dts/vscode.proposed.d.ts +132 -131
  753. package/vscode-dts/vscode.proposed.externalUriOpener.d.ts +3 -3
  754. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +2 -0
  755. package/vscode-dts/vscode.proposed.inlineEdit.d.ts +14 -3
  756. package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +21 -1
  757. package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +3 -3
  758. package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +1 -1
  759. package/vscode-dts/vscode.proposed.resolvers.d.ts +3 -3
  760. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -2
  761. package/vscode-dts/vscode.proposed.statusBarItemTooltip.d.ts +19 -0
  762. package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +10 -0
  763. package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +2 -2
  764. package/vscode-dts/vscode.proposed.terminalShellEnv.d.ts +18 -0
  765. package/vscode-dts/vscode.proposed.terminalShellType.d.ts +40 -0
  766. package/vscode/src/vs/base/common/observableInternal/index.js +0 -8
  767. package/vscode/src/vs/base/common/observableInternal/promise.d.ts +0 -28
  768. package/vscode/src/vs/base/common/observableInternal/promise.js +0 -65
  769. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.css.js +0 -6
  770. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +0 -45
  771. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +0 -426
  772. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewAndDiffProducer.js +0 -116
  773. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.service.d.ts +0 -6
  774. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.service.js +0 -6
  775. package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.d.ts +0 -1
  776. package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.js +0 -24
  777. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.d.ts +0 -8
  778. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.js +0 -6
  779. package/vscode/src/vs/workbench/contrib/scm/browser/diff.service.d.ts +0 -9
  780. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.d.ts +0 -22
  781. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +0 -66
  782. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.d.ts +0 -155
  783. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +0 -1454
  784. package/vscode/src/vs/workbench/contrib/scm/browser/media/dirtydiffDecorator.css.js +0 -6
  785. package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +0 -164
  786. package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +0 -74
  787. package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.d.ts +0 -8
  788. package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +0 -93
  789. package/vscode-dts/vscode.proposed.documentPaste.d.ts +0 -316
  790. package/vscode-dts/vscode.proposed.fileComments.d.ts +0 -42
  791. package/vscode-dts/vscode.proposed.showLocal.d.ts +0 -19
  792. /package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.wgsl.d.ts → renderStrategy/fullFileRenderStrategy.wgsl.d.ts} +0 -0
@@ -0,0 +1,143 @@
1
+
2
+ import { NOTEBOOK_EDITOR_ID } from '../common/notebookCommon.js';
3
+ import { isCompositeNotebookEditorInput } from '../common/notebookEditorInput.js';
4
+ import { cellRangesToIndexes, reduceCellRanges } from '../common/notebookRange.js';
5
+
6
+ const EXPAND_CELL_INPUT_COMMAND_ID = 'notebook.cell.expandCellInput';
7
+ const EXECUTE_CELL_COMMAND_ID = 'notebook.cell.execute';
8
+ const DETECT_CELL_LANGUAGE = 'notebook.cell.detectLanguage';
9
+ const CHANGE_CELL_LANGUAGE = 'notebook.cell.changeLanguage';
10
+ const QUIT_EDIT_CELL_COMMAND_ID = 'notebook.cell.quitEdit';
11
+ const EXPAND_CELL_OUTPUT_COMMAND_ID = 'notebook.cell.expandCellOutput';
12
+ const IPYNB_VIEW_TYPE = 'jupyter-notebook';
13
+ const JUPYTER_EXTENSION_ID = 'ms-toolsai.jupyter';
14
+ const KERNEL_EXTENSIONS = ( new Map([
15
+ [IPYNB_VIEW_TYPE, JUPYTER_EXTENSION_ID],
16
+ ]));
17
+ const KERNEL_RECOMMENDATIONS = ( new Map());
18
+ KERNEL_RECOMMENDATIONS.set(IPYNB_VIEW_TYPE, ( new Map()));
19
+ KERNEL_RECOMMENDATIONS.get(IPYNB_VIEW_TYPE)?.set('python', {
20
+ extensionIds: [
21
+ 'ms-python.python',
22
+ JUPYTER_EXTENSION_ID
23
+ ],
24
+ displayName: 'Python + Jupyter',
25
+ });
26
+ var RenderOutputType;
27
+ (function (RenderOutputType) {
28
+ RenderOutputType[RenderOutputType["Html"] = 0] = "Html";
29
+ RenderOutputType[RenderOutputType["Extension"] = 1] = "Extension";
30
+ })(RenderOutputType || (RenderOutputType = {}));
31
+ var ScrollToRevealBehavior;
32
+ (function (ScrollToRevealBehavior) {
33
+ ScrollToRevealBehavior[ScrollToRevealBehavior["fullCell"] = 0] = "fullCell";
34
+ ScrollToRevealBehavior[ScrollToRevealBehavior["firstLine"] = 1] = "firstLine";
35
+ })(ScrollToRevealBehavior || (ScrollToRevealBehavior = {}));
36
+ var CellLayoutState;
37
+ (function (CellLayoutState) {
38
+ CellLayoutState[CellLayoutState["Uninitialized"] = 0] = "Uninitialized";
39
+ CellLayoutState[CellLayoutState["Estimated"] = 1] = "Estimated";
40
+ CellLayoutState[CellLayoutState["FromCache"] = 2] = "FromCache";
41
+ CellLayoutState[CellLayoutState["Measured"] = 3] = "Measured";
42
+ })(CellLayoutState || (CellLayoutState = {}));
43
+ var CellLayoutContext;
44
+ (function (CellLayoutContext) {
45
+ CellLayoutContext[CellLayoutContext["Fold"] = 0] = "Fold";
46
+ })(CellLayoutContext || (CellLayoutContext = {}));
47
+ var NotebookOverviewRulerLane;
48
+ (function (NotebookOverviewRulerLane) {
49
+ NotebookOverviewRulerLane[NotebookOverviewRulerLane["Left"] = 1] = "Left";
50
+ NotebookOverviewRulerLane[NotebookOverviewRulerLane["Center"] = 2] = "Center";
51
+ NotebookOverviewRulerLane[NotebookOverviewRulerLane["Right"] = 4] = "Right";
52
+ NotebookOverviewRulerLane[NotebookOverviewRulerLane["Full"] = 7] = "Full";
53
+ })(NotebookOverviewRulerLane || (NotebookOverviewRulerLane = {}));
54
+ var CellRevealType;
55
+ (function (CellRevealType) {
56
+ CellRevealType[CellRevealType["Default"] = 1] = "Default";
57
+ CellRevealType[CellRevealType["Top"] = 2] = "Top";
58
+ CellRevealType[CellRevealType["Center"] = 3] = "Center";
59
+ CellRevealType[CellRevealType["CenterIfOutsideViewport"] = 4] = "CenterIfOutsideViewport";
60
+ CellRevealType[CellRevealType["NearTopIfOutsideViewport"] = 5] = "NearTopIfOutsideViewport";
61
+ CellRevealType[CellRevealType["FirstLineIfOutsideViewport"] = 6] = "FirstLineIfOutsideViewport";
62
+ })(CellRevealType || (CellRevealType = {}));
63
+ var CellRevealRangeType;
64
+ (function (CellRevealRangeType) {
65
+ CellRevealRangeType[CellRevealRangeType["Default"] = 1] = "Default";
66
+ CellRevealRangeType[CellRevealRangeType["Center"] = 2] = "Center";
67
+ CellRevealRangeType[CellRevealRangeType["CenterIfOutsideViewport"] = 3] = "CenterIfOutsideViewport";
68
+ })(CellRevealRangeType || (CellRevealRangeType = {}));
69
+ var CellEditState;
70
+ (function (CellEditState) {
71
+ CellEditState[CellEditState["Preview"] = 0] = "Preview";
72
+ CellEditState[CellEditState["Editing"] = 1] = "Editing";
73
+ })(CellEditState || (CellEditState = {}));
74
+ var CellFocusMode;
75
+ (function (CellFocusMode) {
76
+ CellFocusMode[CellFocusMode["Container"] = 0] = "Container";
77
+ CellFocusMode[CellFocusMode["Editor"] = 1] = "Editor";
78
+ CellFocusMode[CellFocusMode["Output"] = 2] = "Output";
79
+ CellFocusMode[CellFocusMode["ChatInput"] = 3] = "ChatInput";
80
+ })(CellFocusMode || (CellFocusMode = {}));
81
+ var CursorAtBoundary;
82
+ (function (CursorAtBoundary) {
83
+ CursorAtBoundary[CursorAtBoundary["None"] = 0] = "None";
84
+ CursorAtBoundary[CursorAtBoundary["Top"] = 1] = "Top";
85
+ CursorAtBoundary[CursorAtBoundary["Bottom"] = 2] = "Bottom";
86
+ CursorAtBoundary[CursorAtBoundary["Both"] = 3] = "Both";
87
+ })(CursorAtBoundary || (CursorAtBoundary = {}));
88
+ var CursorAtLineBoundary;
89
+ (function (CursorAtLineBoundary) {
90
+ CursorAtLineBoundary[CursorAtLineBoundary["None"] = 0] = "None";
91
+ CursorAtLineBoundary[CursorAtLineBoundary["Start"] = 1] = "Start";
92
+ CursorAtLineBoundary[CursorAtLineBoundary["End"] = 2] = "End";
93
+ CursorAtLineBoundary[CursorAtLineBoundary["Both"] = 3] = "Both";
94
+ })(CursorAtLineBoundary || (CursorAtLineBoundary = {}));
95
+ function getNotebookEditorFromEditorPane(editorPane) {
96
+ if (!editorPane) {
97
+ return;
98
+ }
99
+ if (editorPane.getId() === NOTEBOOK_EDITOR_ID) {
100
+ return editorPane.getControl();
101
+ }
102
+ const input = editorPane.input;
103
+ const isCompositeNotebook = input && isCompositeNotebookEditorInput(input);
104
+ if (isCompositeNotebook) {
105
+ return editorPane.getControl()?.notebookEditor;
106
+ }
107
+ return undefined;
108
+ }
109
+ function expandCellRangesWithHiddenCells(editor, ranges) {
110
+ const indexes = cellRangesToIndexes(ranges);
111
+ const modelRanges = [];
112
+ indexes.forEach(index => {
113
+ const viewCell = editor.cellAt(index);
114
+ if (!viewCell) {
115
+ return;
116
+ }
117
+ const viewIndex = editor.getViewIndexByModelIndex(index);
118
+ if (viewIndex < 0) {
119
+ return;
120
+ }
121
+ const nextViewIndex = viewIndex + 1;
122
+ const range = editor.getCellRangeFromViewRange(viewIndex, nextViewIndex);
123
+ if (range) {
124
+ modelRanges.push(range);
125
+ }
126
+ });
127
+ return reduceCellRanges(modelRanges);
128
+ }
129
+ function cellRangeToViewCells(editor, ranges) {
130
+ const cells = [];
131
+ reduceCellRanges(ranges).forEach(range => {
132
+ cells.push(...editor.getCellsInRange(range));
133
+ });
134
+ return cells;
135
+ }
136
+ var CellFoldingState;
137
+ (function (CellFoldingState) {
138
+ CellFoldingState[CellFoldingState["None"] = 0] = "None";
139
+ CellFoldingState[CellFoldingState["Expanded"] = 1] = "Expanded";
140
+ CellFoldingState[CellFoldingState["Collapsed"] = 2] = "Collapsed";
141
+ })(CellFoldingState || (CellFoldingState = {}));
142
+
143
+ export { CHANGE_CELL_LANGUAGE, CellEditState, CellFocusMode, CellFoldingState, CellLayoutContext, CellLayoutState, CellRevealRangeType, CellRevealType, CursorAtBoundary, CursorAtLineBoundary, DETECT_CELL_LANGUAGE, EXECUTE_CELL_COMMAND_ID, EXPAND_CELL_INPUT_COMMAND_ID, EXPAND_CELL_OUTPUT_COMMAND_ID, IPYNB_VIEW_TYPE, JUPYTER_EXTENSION_ID, KERNEL_EXTENSIONS, KERNEL_RECOMMENDATIONS, NotebookOverviewRulerLane, QUIT_EDIT_CELL_COMMAND_ID, RenderOutputType, ScrollToRevealBehavior, cellRangeToViewCells, expandCellRangesWithHiddenCells, getNotebookEditorFromEditorPane };
@@ -3,8 +3,8 @@ import { CodeWindow } from "../../../../../base/browser/window.js";
3
3
  import { Event } from "../../../../../base/common/event.js";
4
4
  import { URI } from "../../../../../base/common/uri.js";
5
5
  import { type ServicesAccessor } from "../../../../../platform/instantiation/common/instantiation.js";
6
- import { NotebookEditorInput } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput";
7
- import { INotebookEditorCreationOptions, INotebookEditor } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/browser/notebookBrowser";
6
+ import { NotebookEditorInput } from "../../common/notebookEditorInput.js";
7
+ import { INotebookEditorCreationOptions, INotebookEditor } from "../notebookBrowser.js";
8
8
  import { NotebookEditorWidget } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/browser/notebookEditorWidget";
9
9
  import { IBorrowValue } from "./notebookEditorService.js";
10
10
  export declare const INotebookEditorService: import("../../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<INotebookEditorService>;
@@ -20,12 +20,12 @@ import { IFileReadLimits } from "../../../../platform/files/common/files.js";
20
20
  import { UndoRedoGroup } from "../../../../platform/undoRedo/common/undoRedo.js";
21
21
  import { IRevertOptions, ISaveOptions, IUntypedEditorInput } from "../../../common/editor.js";
22
22
  import { NotebookTextModel } from "@codingame/monaco-vscode-notebook-service-override/vscode/vs/workbench/contrib/notebook/common/model/notebookTextModel";
23
- import { ICellExecutionError } from "@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
23
+ import { ICellExecutionError } from "@codingame/monaco-vscode-af5ccfda-af82-504b-b365-92b4e654e5c5-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
24
24
  import { INotebookTextModelLike } from "./notebookKernelService.js";
25
- import { ICellRange } from "@codingame/monaco-vscode-271a23cd-c7d7-5761-ae35-a923a42987b8-common/vscode/vs/workbench/contrib/notebook/common/notebookRange";
25
+ import { ICellRange } from "./notebookRange.js";
26
26
  import { RegisteredEditorPriority } from "../../../services/editor/common/editorResolverService.js";
27
- import { IWorkingCopyBackupMeta, IWorkingCopySaveEvent } from "@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
28
- import { SnapshotContext } from "@codingame/monaco-vscode-9d05a43d-c330-5ff1-937e-fde4a3852931-common/vscode/vs/workbench/services/workingCopy/common/fileWorkingCopy";
27
+ import { IWorkingCopyBackupMeta, IWorkingCopySaveEvent } from "@codingame/monaco-vscode-ce8c4b18-4e75-55dd-9656-517347af9de7-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
28
+ import { SnapshotContext } from "@codingame/monaco-vscode-99f24462-c56d-5407-83fb-2ea9dd33cc8c-common/vscode/vs/workbench/services/workingCopy/common/fileWorkingCopy";
29
29
  export declare const NOTEBOOK_EDITOR_ID = "workbench.editor.notebook";
30
30
  export declare const NOTEBOOK_DIFF_EDITOR_ID = "workbench.editor.notebookTextDiffEditor";
31
31
  export declare const NOTEBOOK_MULTI_DIFF_EDITOR_ID = "workbench.editor.notebookMultiTextDiffEditor";
@@ -668,10 +668,12 @@ export declare const NotebookSetting: {
668
668
  readonly cellChat: "notebook.experimental.cellChat";
669
669
  readonly cellGenerate: "notebook.experimental.generate";
670
670
  readonly notebookVariablesView: "notebook.variablesView";
671
+ readonly notebookInlineValues: "notebook.inlineValues";
671
672
  readonly InteractiveWindowPromptToSave: "interactiveWindow.promptToSaveOnClose";
672
673
  readonly cellFailureDiagnostics: "notebook.cellFailureDiagnostics";
673
674
  readonly outputBackupSizeLimit: "notebook.backup.sizeLimit";
674
675
  readonly multiCursor: "notebook.multiCursor.enabled";
676
+ readonly markupFontFamily: "notebook.markup.fontFamily";
675
677
  };
676
678
  export declare enum CellStatusbarAlignment {
677
679
  Left = 1,
@@ -341,10 +341,12 @@ const NotebookSetting = {
341
341
  cellChat: 'notebook.experimental.cellChat',
342
342
  cellGenerate: 'notebook.experimental.generate',
343
343
  notebookVariablesView: 'notebook.variablesView',
344
+ notebookInlineValues: 'notebook.inlineValues',
344
345
  InteractiveWindowPromptToSave: 'interactiveWindow.promptToSaveOnClose',
345
346
  cellFailureDiagnostics: 'notebook.cellFailureDiagnostics',
346
347
  outputBackupSizeLimit: 'notebook.backup.sizeLimit',
347
348
  multiCursor: 'notebook.multiCursor.enabled',
349
+ markupFontFamily: 'notebook.markup.fontFamily',
348
350
  };
349
351
  var CellStatusbarAlignment;
350
352
  (function (CellStatusbarAlignment) {
@@ -0,0 +1,60 @@
1
+ import { GroupIdentifier, ISaveOptions, IMoveResult, IRevertOptions, EditorInputCapabilities, Verbosity, IUntypedEditorInput, IFileLimitedEditorInputOptions } from "../../../common/editor.js";
2
+ import { EditorInput } from "../../../common/editor/editorInput.js";
3
+ import { INotebookService } from "./notebookService.service.js";
4
+ import { URI } from "../../../../base/common/uri.js";
5
+ import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js";
6
+ import { IFileDialogService } from "../../../../platform/dialogs/common/dialogs.service.js";
7
+ import { INotebookEditorModelResolverService } from "./notebookEditorModelResolverService.service.js";
8
+ import { IReference } from "../../../../base/common/lifecycle.js";
9
+ import { IResolvedNotebookEditorModel } from "./notebookCommon.js";
10
+ import { ILabelService } from "../../../../platform/label/common/label.service.js";
11
+ import { IFileService } from "../../../../platform/files/common/files.service.js";
12
+ import { AbstractResourceEditorInput } from "../../../common/editor/resourceEditorInput.js";
13
+ import { IResourceEditorInput } from "../../../../platform/editor/common/editor.js";
14
+ import { IWorkingCopyIdentifier } from "@codingame/monaco-vscode-ce8c4b18-4e75-55dd-9656-517347af9de7-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
15
+ import { NotebookPerfMarks } from "@codingame/monaco-vscode-6f9bc782-77e0-5716-93bd-b05210c768c5-common/vscode/vs/workbench/contrib/notebook/common/notebookPerformance";
16
+ import { IFilesConfigurationService } from "../../../services/filesConfiguration/common/filesConfigurationService.service.js";
17
+ import { IExtensionService } from "../../../services/extensions/common/extensions.service.js";
18
+ import { IEditorService } from "../../../services/editor/common/editorService.service.js";
19
+ import { IMarkdownString } from "../../../../base/common/htmlContent.js";
20
+ import { ITextResourceConfigurationService } from "../../../../editor/common/services/textResourceConfiguration.js";
21
+ import { ICustomEditorLabelService } from "../../../services/editor/common/customEditorLabelService.service.js";
22
+ export interface NotebookEditorInputOptions {
23
+ startDirty?: boolean;
24
+ _backupId?: string;
25
+ _workingCopy?: IWorkingCopyIdentifier;
26
+ }
27
+ export declare class NotebookEditorInput extends AbstractResourceEditorInput {
28
+ readonly viewType: string;
29
+ readonly options: NotebookEditorInputOptions;
30
+ private readonly _notebookService;
31
+ private readonly _notebookModelResolverService;
32
+ private readonly _fileDialogService;
33
+ static getOrCreate(instantiationService: IInstantiationService, resource: URI, preferredResource: URI | undefined, viewType: string, options?: NotebookEditorInputOptions): NotebookEditorInput;
34
+ static readonly ID: string;
35
+ protected editorModelReference: IReference<IResolvedNotebookEditorModel> | null;
36
+ private _sideLoadedListener;
37
+ private _defaultDirtyState;
38
+ constructor(resource: URI, preferredResource: URI | undefined, viewType: string, options: NotebookEditorInputOptions, _notebookService: INotebookService, _notebookModelResolverService: INotebookEditorModelResolverService, _fileDialogService: IFileDialogService, labelService: ILabelService, fileService: IFileService, filesConfigurationService: IFilesConfigurationService, extensionService: IExtensionService, editorService: IEditorService, textResourceConfigurationService: ITextResourceConfigurationService, customEditorLabelService: ICustomEditorLabelService);
39
+ dispose(): void;
40
+ get typeId(): string;
41
+ get editorId(): string | undefined;
42
+ get capabilities(): EditorInputCapabilities;
43
+ getDescription(verbosity?: Verbosity): string | undefined;
44
+ isReadonly(): boolean | IMarkdownString;
45
+ isDirty(): boolean;
46
+ isSaving(): boolean;
47
+ save(group: GroupIdentifier, options?: ISaveOptions): Promise<EditorInput | IUntypedEditorInput | undefined>;
48
+ saveAs(group: GroupIdentifier, options?: ISaveOptions): Promise<IUntypedEditorInput | undefined>;
49
+ private _suggestName;
50
+ rename(group: GroupIdentifier, target: URI): Promise<IMoveResult | undefined>;
51
+ revert(_group: GroupIdentifier, options?: IRevertOptions): Promise<void>;
52
+ resolve(_options?: IFileLimitedEditorInputOptions, perf?: NotebookPerfMarks): Promise<IResolvedNotebookEditorModel | null>;
53
+ toUntyped(): IResourceEditorInput;
54
+ matches(otherInput: EditorInput | IUntypedEditorInput): boolean;
55
+ }
56
+ export interface ICompositeNotebookEditorInput {
57
+ readonly editorInputs: NotebookEditorInput[];
58
+ }
59
+ export declare function isCompositeNotebookEditorInput(thing: unknown): thing is ICompositeNotebookEditorInput;
60
+ export declare function isNotebookEditorInput(thing: EditorInput | undefined): thing is NotebookEditorInput;
@@ -0,0 +1,316 @@
1
+
2
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
3
+ import { isRelativePattern } from '../../../../base/common/glob.js';
4
+ import { EditorInputCapabilities, Verbosity, isResourceEditorInput } from '../../../common/editor.js';
5
+ import { SimpleNotebookProviderInfo } from './notebookService.js';
6
+ import { INotebookService } from './notebookService.service.js';
7
+ import { joinPath, isEqual } from '../../../../base/common/resources.js';
8
+ import { IFileDialogService } from '../../../../platform/dialogs/common/dialogs.service.js';
9
+ import { INotebookEditorModelResolverService } from './notebookEditorModelResolverService.service.js';
10
+ import { CellEditType, CellUri } from './notebookCommon.js';
11
+ import { ILabelService } from '../../../../platform/label/common/label.service.js';
12
+ import { Schemas } from '../../../../base/common/network.js';
13
+ import { IFileService } from '../../../../platform/files/common/files.service.js';
14
+ import { AbstractResourceEditorInput } from '../../../common/editor/resourceEditorInput.js';
15
+ import { onUnexpectedError } from '../../../../base/common/errors.js';
16
+ import { VSBuffer } from '../../../../base/common/buffer.js';
17
+ import { IFilesConfigurationService } from '../../../services/filesConfiguration/common/filesConfigurationService.service.js';
18
+ import { IExtensionService } from '../../../services/extensions/common/extensions.service.js';
19
+ import { localize } from '../../../../nls.js';
20
+ import { IEditorService } from '../../../services/editor/common/editorService.service.js';
21
+ import { ITextResourceConfigurationService } from '../../../../editor/common/services/textResourceConfiguration.js';
22
+ import { ICustomEditorLabelService } from '../../../services/editor/common/customEditorLabelService.service.js';
23
+
24
+ var NotebookEditorInput_1;
25
+ let NotebookEditorInput = class NotebookEditorInput extends AbstractResourceEditorInput {
26
+ static { NotebookEditorInput_1 = this; }
27
+ static getOrCreate(instantiationService, resource, preferredResource, viewType, options = {}) {
28
+ const editor = instantiationService.createInstance(NotebookEditorInput_1, resource, preferredResource, viewType, options);
29
+ if (preferredResource) {
30
+ editor.setPreferredResource(preferredResource);
31
+ }
32
+ return editor;
33
+ }
34
+ static { this.ID = 'workbench.input.notebook'; }
35
+ constructor(resource, preferredResource, viewType, options, _notebookService, _notebookModelResolverService, _fileDialogService, labelService, fileService, filesConfigurationService, extensionService, editorService, textResourceConfigurationService, customEditorLabelService) {
36
+ super(resource, preferredResource, labelService, fileService, filesConfigurationService, textResourceConfigurationService, customEditorLabelService);
37
+ this.viewType = viewType;
38
+ this.options = options;
39
+ this._notebookService = _notebookService;
40
+ this._notebookModelResolverService = _notebookModelResolverService;
41
+ this._fileDialogService = _fileDialogService;
42
+ this.editorModelReference = null;
43
+ this._defaultDirtyState = false;
44
+ this._defaultDirtyState = !!options.startDirty;
45
+ this._sideLoadedListener = _notebookService.onDidAddNotebookDocument(e => {
46
+ if (e.viewType === this.viewType && ( e.uri.toString()) === ( this.resource.toString())) {
47
+ this.resolve().catch(onUnexpectedError);
48
+ }
49
+ });
50
+ this._register(extensionService.onWillStop(e => {
51
+ if (!e.auto && !this.isDirty()) {
52
+ return;
53
+ }
54
+ const reason = e.auto
55
+ ? ( localize(
56
+ 7960,
57
+ "An extension provided notebook for '{0}' is still open that would close otherwise.",
58
+ this.getName()
59
+ ))
60
+ : ( localize(
61
+ 7961,
62
+ "An extension provided notebook for '{0}' could not be saved.",
63
+ this.getName()
64
+ ));
65
+ e.veto((async () => {
66
+ const editors = editorService.findEditors(this);
67
+ if (e.auto) {
68
+ return true;
69
+ }
70
+ if (editors.length > 0) {
71
+ const result = await editorService.save(editors[0]);
72
+ if (result.success) {
73
+ return false;
74
+ }
75
+ }
76
+ return true;
77
+ })(), reason);
78
+ }));
79
+ }
80
+ dispose() {
81
+ this._sideLoadedListener.dispose();
82
+ this.editorModelReference?.dispose();
83
+ this.editorModelReference = null;
84
+ super.dispose();
85
+ }
86
+ get typeId() {
87
+ return NotebookEditorInput_1.ID;
88
+ }
89
+ get editorId() {
90
+ return this.viewType;
91
+ }
92
+ get capabilities() {
93
+ let capabilities = EditorInputCapabilities.None;
94
+ if (this.resource.scheme === Schemas.untitled) {
95
+ capabilities |= EditorInputCapabilities.Untitled;
96
+ }
97
+ if (this.editorModelReference) {
98
+ if (this.editorModelReference.object.isReadonly()) {
99
+ capabilities |= EditorInputCapabilities.Readonly;
100
+ }
101
+ }
102
+ else {
103
+ if (this.filesConfigurationService.isReadonly(this.resource)) {
104
+ capabilities |= EditorInputCapabilities.Readonly;
105
+ }
106
+ }
107
+ if (!(capabilities & EditorInputCapabilities.Readonly)) {
108
+ capabilities |= EditorInputCapabilities.CanDropIntoEditor;
109
+ }
110
+ return capabilities;
111
+ }
112
+ getDescription(verbosity = Verbosity.MEDIUM) {
113
+ if (!this.hasCapability(EditorInputCapabilities.Untitled) || this.editorModelReference?.object.hasAssociatedFilePath()) {
114
+ return super.getDescription(verbosity);
115
+ }
116
+ return undefined;
117
+ }
118
+ isReadonly() {
119
+ if (!this.editorModelReference) {
120
+ return this.filesConfigurationService.isReadonly(this.resource);
121
+ }
122
+ return this.editorModelReference.object.isReadonly();
123
+ }
124
+ isDirty() {
125
+ if (!this.editorModelReference) {
126
+ return this._defaultDirtyState;
127
+ }
128
+ return this.editorModelReference.object.isDirty();
129
+ }
130
+ isSaving() {
131
+ const model = this.editorModelReference?.object;
132
+ if (!model || !model.isDirty() || model.hasErrorState || this.hasCapability(EditorInputCapabilities.Untitled)) {
133
+ return false;
134
+ }
135
+ return this.filesConfigurationService.hasShortAutoSaveDelay(this);
136
+ }
137
+ async save(group, options) {
138
+ if (this.editorModelReference) {
139
+ if (this.hasCapability(EditorInputCapabilities.Untitled)) {
140
+ return this.saveAs(group, options);
141
+ }
142
+ else {
143
+ await this.editorModelReference.object.save(options);
144
+ }
145
+ return this;
146
+ }
147
+ return undefined;
148
+ }
149
+ async saveAs(group, options) {
150
+ if (!this.editorModelReference) {
151
+ return undefined;
152
+ }
153
+ const provider = this._notebookService.getContributedNotebookType(this.viewType);
154
+ if (!provider) {
155
+ return undefined;
156
+ }
157
+ const pathCandidate = this.hasCapability(EditorInputCapabilities.Untitled) ? await this._suggestName(provider, this.labelService.getUriBasenameLabel(this.resource)) : this.editorModelReference.object.resource;
158
+ let target;
159
+ if (this.editorModelReference.object.hasAssociatedFilePath()) {
160
+ target = pathCandidate;
161
+ }
162
+ else {
163
+ target = await this._fileDialogService.pickFileToSave(pathCandidate, options?.availableFileSystems);
164
+ if (!target) {
165
+ return undefined;
166
+ }
167
+ }
168
+ if (!provider.matches(target)) {
169
+ const patterns = ( provider.selectors.map(pattern => {
170
+ if (typeof pattern === 'string') {
171
+ return pattern;
172
+ }
173
+ if (isRelativePattern(pattern)) {
174
+ return `${pattern} (base ${pattern.base})`;
175
+ }
176
+ if (pattern.exclude) {
177
+ return `${pattern.include} (exclude: ${pattern.exclude})`;
178
+ }
179
+ else {
180
+ return `${pattern.include}`;
181
+ }
182
+ })).join(', ');
183
+ throw ( new Error(
184
+ `File name ${target} is not supported by ${provider.providerDisplayName}.\n\nPlease make sure the file name matches following patterns:\n${patterns}`
185
+ ));
186
+ }
187
+ return await this.editorModelReference.object.saveAs(target);
188
+ }
189
+ async _suggestName(provider, suggestedFilename) {
190
+ const firstSelector = provider.selectors[0];
191
+ let selectorStr = firstSelector && typeof firstSelector === 'string' ? firstSelector : undefined;
192
+ if (!selectorStr && firstSelector) {
193
+ const include = firstSelector.include;
194
+ if (typeof include === 'string') {
195
+ selectorStr = include;
196
+ }
197
+ }
198
+ if (selectorStr) {
199
+ const matches = /^\*\.([A-Za-z_-]*)$/.exec(selectorStr);
200
+ if (matches && matches.length > 1) {
201
+ const fileExt = matches[1];
202
+ if (!suggestedFilename.endsWith(fileExt)) {
203
+ return joinPath(await this._fileDialogService.defaultFilePath(), suggestedFilename + '.' + fileExt);
204
+ }
205
+ }
206
+ }
207
+ return joinPath(await this._fileDialogService.defaultFilePath(), suggestedFilename);
208
+ }
209
+ async rename(group, target) {
210
+ if (this.editorModelReference) {
211
+ return { editor: { resource: target }, options: { override: this.viewType } };
212
+ }
213
+ return undefined;
214
+ }
215
+ async revert(_group, options) {
216
+ if (this.editorModelReference && this.editorModelReference.object.isDirty()) {
217
+ await this.editorModelReference.object.revert(options);
218
+ }
219
+ }
220
+ async resolve(_options, perf) {
221
+ if (!(await this._notebookService.canResolve(this.viewType))) {
222
+ return null;
223
+ }
224
+ perf?.mark('extensionActivated');
225
+ this._sideLoadedListener.dispose();
226
+ if (!this.editorModelReference) {
227
+ const scratchpad = this.capabilities & EditorInputCapabilities.Scratchpad ? true : false;
228
+ const ref = await this._notebookModelResolverService.resolve(this.resource, this.viewType, { limits: this.ensureLimits(_options), scratchpad, viewType: this.editorId });
229
+ if (this.editorModelReference) {
230
+ ref.dispose();
231
+ return this.editorModelReference.object;
232
+ }
233
+ this.editorModelReference = ref;
234
+ if (this.isDisposed()) {
235
+ this.editorModelReference.dispose();
236
+ this.editorModelReference = null;
237
+ return null;
238
+ }
239
+ this._register(this.editorModelReference.object.onDidChangeDirty(() => this._onDidChangeDirty.fire()));
240
+ this._register(this.editorModelReference.object.onDidChangeReadonly(() => this._onDidChangeCapabilities.fire()));
241
+ this._register(this.editorModelReference.object.onDidRevertUntitled(() => this.dispose()));
242
+ if (this.editorModelReference.object.isDirty()) {
243
+ this._onDidChangeDirty.fire();
244
+ }
245
+ }
246
+ else {
247
+ this.editorModelReference.object.load({ limits: this.ensureLimits(_options) });
248
+ }
249
+ if (this.options._backupId) {
250
+ const info = await this._notebookService.withNotebookDataProvider(this.editorModelReference.object.notebook.viewType);
251
+ if (!(info instanceof SimpleNotebookProviderInfo)) {
252
+ throw ( new Error('CANNOT open file notebook with this provider'));
253
+ }
254
+ const data = await info.serializer.dataToNotebook(VSBuffer.fromString(JSON.stringify({ __webview_backup: this.options._backupId })));
255
+ this.editorModelReference.object.notebook.applyEdits([
256
+ {
257
+ editType: CellEditType.Replace,
258
+ index: 0,
259
+ count: this.editorModelReference.object.notebook.length,
260
+ cells: data.cells
261
+ }
262
+ ], true, undefined, () => undefined, undefined, false);
263
+ if (this.options._workingCopy) {
264
+ this.options._backupId = undefined;
265
+ this.options._workingCopy = undefined;
266
+ this.options.startDirty = undefined;
267
+ }
268
+ }
269
+ return this.editorModelReference.object;
270
+ }
271
+ toUntyped() {
272
+ return {
273
+ resource: this.resource,
274
+ options: {
275
+ override: this.viewType
276
+ }
277
+ };
278
+ }
279
+ matches(otherInput) {
280
+ if (super.matches(otherInput)) {
281
+ return true;
282
+ }
283
+ if (otherInput instanceof NotebookEditorInput_1) {
284
+ return this.viewType === otherInput.viewType && isEqual(this.resource, otherInput.resource);
285
+ }
286
+ if (isResourceEditorInput(otherInput) && otherInput.resource.scheme === CellUri.scheme) {
287
+ return isEqual(this.resource, CellUri.parse(otherInput.resource)?.notebook);
288
+ }
289
+ return false;
290
+ }
291
+ };
292
+ NotebookEditorInput = NotebookEditorInput_1 = ( __decorate([
293
+ ( __param(4, INotebookService)),
294
+ ( __param(5, INotebookEditorModelResolverService)),
295
+ ( __param(6, IFileDialogService)),
296
+ ( __param(7, ILabelService)),
297
+ ( __param(8, IFileService)),
298
+ ( __param(9, IFilesConfigurationService)),
299
+ ( __param(10, IExtensionService)),
300
+ ( __param(11, IEditorService)),
301
+ ( __param(12, ITextResourceConfigurationService)),
302
+ ( __param(13, ICustomEditorLabelService))
303
+ ], NotebookEditorInput));
304
+ function isCompositeNotebookEditorInput(thing) {
305
+ return !!thing
306
+ && typeof thing === 'object'
307
+ && Array.isArray(thing.editorInputs)
308
+ && (thing.editorInputs.every(input => input instanceof NotebookEditorInput));
309
+ }
310
+ function isNotebookEditorInput(thing) {
311
+ return !!thing
312
+ && typeof thing === 'object'
313
+ && thing.typeId === NotebookEditorInput.ID;
314
+ }
315
+
316
+ export { NotebookEditorInput, isCompositeNotebookEditorInput, isNotebookEditorInput };
@@ -1,5 +1,5 @@
1
1
  import { IOutputDto, IOutputItemDto } from "./notebookCommon.js";
2
- import { INotebookCellExecution } from "@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
2
+ import { INotebookCellExecution } from "@codingame/monaco-vscode-af5ccfda-af82-504b-b365-92b4e654e5c5-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
3
3
  export declare enum CellExecutionUpdateType {
4
4
  Output = 1,
5
5
  OutputItems = 2,
@@ -1,6 +1,6 @@
1
1
  import { IDisposable } from "../../../../base/common/lifecycle.js";
2
2
  import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js";
3
- import { NotebookCellTextModel } from "@codingame/monaco-vscode-c465110a-57c0-59d7-a6b2-be0a4db7e517-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
3
+ import { NotebookCellTextModel } from "@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/notebook/common/model/notebookCellTextModel";
4
4
  import { INotebookTextModel } from "./notebookCommon.js";
5
5
  import { ICellExecutionParticipant } from "./notebookExecutionService.js";
6
6
  export declare const INotebookExecutionService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<INotebookExecutionService>;
@@ -1,6 +1,6 @@
1
1
  import { Event } from "../../../../base/common/event.js";
2
2
  import { URI } from "../../../../base/common/uri.js";
3
- import { ICellExecutionStateChangedEvent, IExecutionStateChangedEvent, INotebookFailStateChangedEvent, INotebookCellExecution, INotebookExecution } from "@codingame/monaco-vscode-972e8507-3a64-566d-8bc0-b78993998562-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
3
+ import { ICellExecutionStateChangedEvent, IExecutionStateChangedEvent, INotebookFailStateChangedEvent, INotebookCellExecution, INotebookExecution } from "@codingame/monaco-vscode-af5ccfda-af82-504b-b365-92b4e654e5c5-common/vscode/vs/workbench/contrib/notebook/common/notebookExecutionStateService";
4
4
  export declare const INotebookExecutionStateService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<INotebookExecutionStateService>;
5
5
  export interface INotebookExecutionStateService {
6
6
  _serviceBrand: undefined;
@@ -0,0 +1,13 @@
1
+ export interface ICellRange {
2
+ start: number;
3
+ end: number;
4
+ }
5
+ export declare function isICellRange(candidate: any): candidate is ICellRange;
6
+ export declare function cellIndexesToRanges(indexes: number[]): {
7
+ start: number;
8
+ end: number;
9
+ }[];
10
+ export declare function cellRangesToIndexes(ranges: ICellRange[]): number[];
11
+ export declare function reduceCellRanges(ranges: ICellRange[]): ICellRange[];
12
+ export declare function cellRangesEqual(a: ICellRange[], b: ICellRange[]): boolean;
13
+ export declare function cellRangeContains(range: ICellRange, other: ICellRange): boolean;