@codingame/monaco-vscode-api 13.1.6 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (794) hide show
  1. package/extensions.d.ts +3 -2
  2. package/missing-services.js +177 -63
  3. package/monaco.d.ts +1 -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 +3 -3
  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/nls.js +1 -1
  385. package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +3 -2
  386. package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +1 -0
  387. package/vscode/src/vs/platform/accessibility/browser/accessibleViewRegistry.d.ts +4 -4
  388. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +52 -52
  389. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  390. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
  391. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  392. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.d.ts +39 -0
  393. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +145 -0
  394. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +1 -0
  395. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +6 -6
  396. package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
  397. package/vscode/src/vs/platform/actions/common/actions.d.ts +4 -1
  398. package/vscode/src/vs/platform/actions/common/actions.js +9 -6
  399. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  400. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  401. package/vscode/src/vs/platform/commands/common/commands.js +2 -2
  402. package/vscode/src/vs/platform/configuration/common/configuration.d.ts +4 -1
  403. package/vscode/src/vs/platform/configuration/common/configuration.js +3 -0
  404. package/vscode/src/vs/platform/configuration/common/configurationModels.d.ts +2 -2
  405. package/vscode/src/vs/platform/configuration/common/configurationModels.js +39 -21
  406. package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +9 -4
  407. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +25 -15
  408. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
  409. package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
  410. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
  411. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  412. package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -2
  413. package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
  414. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  415. package/vscode/src/vs/platform/environment/common/argv.d.ts +2 -0
  416. package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -1
  417. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +5 -3
  418. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +17 -6
  419. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +5 -5
  420. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.d.ts +2 -1
  421. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +10 -1
  422. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  423. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.d.ts +3 -5
  424. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +8 -13
  425. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.service.d.ts +2 -2
  426. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +20 -14
  427. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +127 -125
  428. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.service.d.ts +8 -9
  429. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
  430. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +56 -25
  431. package/vscode/src/vs/platform/extensions/common/extensions.js +8 -1
  432. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +11 -8
  433. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +12 -9
  434. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  435. package/vscode/src/vs/platform/files/common/files.js +6 -6
  436. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  437. package/vscode/src/vs/platform/instantiation/common/extensions.d.ts +3 -2
  438. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  439. package/vscode/src/vs/platform/label/common/label.service.d.ts +2 -1
  440. package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
  441. package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -0
  442. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  443. package/vscode/src/vs/platform/log/common/log.d.ts +6 -0
  444. package/vscode/src/vs/platform/log/common/log.js +18 -9
  445. package/vscode/src/vs/platform/markers/common/markers.js +3 -3
  446. package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css.js +1 -1
  447. package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +5 -0
  448. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +19 -9
  449. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
  450. package/vscode/src/vs/platform/quickinput/browser/quickInputController.d.ts +11 -1
  451. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +241 -12
  452. package/vscode/src/vs/platform/quickinput/browser/quickInputService.d.ts +4 -0
  453. package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +3 -0
  454. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
  455. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  456. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +2 -1
  457. package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +4 -0
  458. package/vscode/src/vs/platform/request/common/request.d.ts +2 -2
  459. package/vscode/src/vs/platform/request/common/request.js +171 -112
  460. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.d.ts +2 -0
  461. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +3 -1
  462. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -2
  463. package/vscode/src/vs/platform/terminal/common/terminal.js +5 -1
  464. package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +1 -1
  465. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  466. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  467. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  468. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +96 -96
  469. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
  470. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  471. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  472. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  473. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
  474. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  475. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  476. package/vscode/src/vs/platform/theme/common/iconRegistry.d.ts +7 -0
  477. package/vscode/src/vs/platform/theme/common/iconRegistry.js +17 -7
  478. package/vscode/src/vs/platform/theme/common/theme.d.ts +6 -0
  479. package/vscode/src/vs/platform/theme/common/theme.js +8 -1
  480. package/vscode/src/vs/platform/theme/common/themeService.d.ts +12 -3
  481. package/vscode/src/vs/platform/theme/common/themeService.js +5 -5
  482. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  483. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  484. package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +7 -5
  485. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  486. package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +3 -3
  487. package/vscode/src/vs/platform/window/common/window.d.ts +6 -1
  488. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  489. package/vscode/src/vs/platform/workspaces/common/workspaces.service.d.ts +2 -2
  490. package/vscode/src/vs/workbench/api/browser/statusBarService.d.ts +3 -2
  491. package/vscode/src/vs/workbench/api/browser/statusBarService.js +3 -2
  492. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +10 -14
  493. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +18 -11
  494. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -20
  495. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -0
  496. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +37 -10
  497. package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +4 -18
  498. package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +2 -2
  499. package/vscode/src/vs/workbench/api/common/extHostCommands.js +1 -1
  500. package/vscode/src/vs/workbench/api/common/extHostComments.js +3 -5
  501. package/vscode/src/vs/workbench/api/common/extHostConfiguration.d.ts +16 -0
  502. package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +4 -0
  503. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +1 -1
  504. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  505. package/vscode/src/vs/workbench/api/common/extHostDialogs.d.ts +1 -2
  506. package/vscode/src/vs/workbench/api/common/extHostDialogs.js +1 -5
  507. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  508. package/vscode/src/vs/workbench/api/common/extHostLabelService.d.ts +1 -1
  509. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +0 -2
  510. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +29 -65
  511. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +3 -2
  512. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +33 -13
  513. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +3 -2
  514. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  515. package/vscode/src/vs/workbench/api/common/extHostMemento.js +6 -1
  516. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  517. package/vscode/src/vs/workbench/api/common/extHostSCM.js +2 -1
  518. package/vscode/src/vs/workbench/api/common/extHostStatusBar.d.ts +10 -2
  519. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +47 -7
  520. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +12 -8
  521. package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +3 -1
  522. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +67 -6
  523. package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +1 -0
  524. package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +18 -1
  525. package/vscode/src/vs/workbench/api/common/extHostTimeline.js +2 -2
  526. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
  527. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
  528. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +4 -13
  529. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +7 -61
  530. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +24 -3
  531. package/vscode/src/vs/workbench/api/common/extHostTypes.js +37 -5
  532. package/vscode/src/vs/workbench/api/common/extHostVariableResolverService.js +22 -2
  533. package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +1 -1
  534. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +3 -2
  535. package/vscode/src/vs/workbench/api/common/extensionHostMain.js +17 -8
  536. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
  537. package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
  538. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  539. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.d.ts +12 -0
  540. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +247 -0
  541. package/vscode/src/vs/workbench/common/activity.d.ts +2 -0
  542. package/vscode/src/vs/workbench/common/activity.js +6 -0
  543. package/vscode/src/vs/workbench/common/configuration.js +12 -12
  544. package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
  545. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
  546. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
  547. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +166 -0
  548. package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
  549. package/vscode/src/vs/workbench/common/editor.js +4 -4
  550. package/vscode/src/vs/workbench/common/theme.js +159 -164
  551. package/vscode/src/vs/workbench/common/views.js +4 -4
  552. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +2 -1
  553. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +152 -142
  554. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +14 -14
  555. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.d.ts +1 -0
  556. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +16 -1
  557. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +28 -0
  558. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +521 -0
  559. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.d.ts +3 -0
  560. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +20 -0
  561. package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +136 -0
  562. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +51 -0
  563. package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +3 -3
  564. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
  565. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +8 -0
  566. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.js +6 -0
  567. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.d.ts +4 -0
  568. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.js +15 -0
  569. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.d.ts +23 -0
  570. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorActions.js +309 -0
  571. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.d.ts +81 -0
  572. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorController.js +681 -0
  573. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.d.ts +57 -0
  574. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +169 -0
  575. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorOverlay.d.ts +20 -0
  576. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorOverlay.js +296 -0
  577. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.d.ts +41 -0
  578. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.js +198 -0
  579. package/vscode/src/vs/workbench/contrib/chat/browser/chatQuotasService.service.d.ts +1 -1
  580. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.d.ts +3 -0
  581. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/screenshot.js +15 -0
  582. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorController.css.js +6 -0
  583. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorOverlay.css.js +6 -0
  584. package/vscode/src/vs/workbench/contrib/chat/common/annotations.d.ts +20 -0
  585. package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +134 -0
  586. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +16 -4
  587. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +48 -5
  588. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +4 -0
  589. package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.service.d.ts +1 -2
  590. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +15 -3
  591. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +61 -29
  592. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +19 -3
  593. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +17 -2
  594. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +3 -4
  595. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +444 -0
  596. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +991 -0
  597. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +112 -0
  598. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +181 -0
  599. package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.d.ts +35 -0
  600. package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +5 -0
  601. package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +6 -1
  602. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +1 -2
  603. package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +3 -3
  604. package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -1
  605. package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -2
  606. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.d.ts +234 -0
  607. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +375 -0
  608. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
  609. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.d.ts +8 -0
  610. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +38 -0
  611. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.d.ts +12 -0
  612. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +42 -0
  613. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +3 -0
  614. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +1 -0
  615. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +10 -5
  616. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +7 -7
  617. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +9 -0
  618. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +27 -0
  619. package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +34 -0
  620. package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +168 -0
  621. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
  622. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  623. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.d.ts +2 -2
  624. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  625. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  626. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  627. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +1 -1
  628. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  629. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  630. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  631. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  632. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  633. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -19
  634. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
  635. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.d.ts +2 -2
  636. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  637. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.d.ts +1 -0
  638. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +14 -10
  639. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  640. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +4 -0
  641. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
  642. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.service.d.ts +1 -1
  643. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +167 -0
  644. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +85 -0
  645. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -2
  646. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  647. package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +2 -2
  648. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  649. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  650. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  651. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +2 -2
  652. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  653. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +10 -0
  654. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +4 -3
  655. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  656. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  657. package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.service.d.ts +0 -1
  658. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
  659. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditContext.d.ts +2 -0
  660. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookChatEditContext.js +7 -0
  661. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chatEdit/notebookSynchronizer.service.d.ts +1 -1
  662. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.d.ts +602 -0
  663. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +143 -0
  664. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +2 -2
  665. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +6 -4
  666. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +2 -0
  667. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.d.ts +60 -0
  668. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +316 -0
  669. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
  670. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
  671. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
  672. package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.d.ts +13 -0
  673. package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +73 -0
  674. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.d.ts +36 -0
  675. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.js +11 -0
  676. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +3 -3
  677. package/vscode/src/vs/workbench/contrib/notebook/common/notebookSynchronizerService.service.d.ts +1 -1
  678. package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffModel.service.d.ts +8 -0
  679. package/vscode/src/vs/workbench/contrib/scm/browser/{diff.service.js → quickDiffModel.service.js} +2 -2
  680. package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +5 -1
  681. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.d.ts +30 -1
  682. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +95 -0
  683. package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +17 -0
  684. package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +82 -0
  685. package/vscode/src/vs/workbench/contrib/scm/common/scm.service.d.ts +1 -1
  686. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  687. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  688. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  689. package/vscode/src/vs/workbench/contrib/speech/common/speechService.d.ts +2 -1
  690. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +30 -29
  691. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  692. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +3 -3
  693. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -0
  694. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +3 -2
  695. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +2 -2
  696. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  697. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.d.ts +1 -1
  698. package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.service.d.ts +1 -1
  699. package/vscode/src/vs/workbench/contrib/testing/common/testId.d.ts +1 -0
  700. package/vscode/src/vs/workbench/contrib/testing/common/testId.js +3 -0
  701. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  702. package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
  703. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
  704. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.d.ts +1 -0
  705. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
  706. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.d.ts +1 -0
  707. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +26 -15
  708. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  709. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +5 -1
  710. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +10 -4
  711. package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
  712. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.d.ts +1 -1
  713. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.service.d.ts +1 -1
  714. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +3 -2
  715. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +83 -83
  716. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
  717. package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
  718. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +63 -0
  719. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +164 -0
  720. package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +1 -1
  721. package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
  722. package/vscode/src/vs/workbench/services/log/common/logConstants.d.ts +2 -0
  723. package/vscode/src/vs/workbench/services/log/common/logConstants.js +3 -1
  724. package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
  725. package/vscode/src/vs/workbench/services/output/common/output.d.ts +51 -8
  726. package/vscode/src/vs/workbench/services/output/common/output.js +30 -4
  727. package/vscode/src/vs/workbench/services/output/common/output.service.d.ts +8 -1
  728. package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.d.ts +1 -1
  729. package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +2 -2
  730. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  731. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  732. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  733. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +9 -4
  734. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +5 -1
  735. package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +1 -1
  736. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  737. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +15 -21
  738. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.d.ts +21 -2
  739. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.d.ts +3 -3
  740. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +11 -11
  741. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
  742. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
  743. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
  744. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
  745. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
  746. package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +1 -1
  747. package/vscode-dts/vscode.d.ts +375 -32
  748. package/vscode-dts/vscode.proposed.aiRelatedInformation.d.ts +1 -1
  749. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +11 -0
  750. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +9 -0
  751. package/vscode-dts/vscode.proposed.chatProvider.d.ts +4 -0
  752. package/vscode-dts/vscode.proposed.chatReadonlyPromptReference.d.ts +17 -0
  753. package/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts +5 -0
  754. package/vscode-dts/vscode.proposed.d.ts +132 -131
  755. package/vscode-dts/vscode.proposed.externalUriOpener.d.ts +3 -3
  756. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +2 -0
  757. package/vscode-dts/vscode.proposed.inlineEdit.d.ts +14 -3
  758. package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +21 -1
  759. package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +3 -3
  760. package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +1 -1
  761. package/vscode-dts/vscode.proposed.resolvers.d.ts +3 -3
  762. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -2
  763. package/vscode-dts/vscode.proposed.statusBarItemTooltip.d.ts +19 -0
  764. package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +10 -0
  765. package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +2 -2
  766. package/vscode-dts/vscode.proposed.terminalShellEnv.d.ts +18 -0
  767. package/vscode-dts/vscode.proposed.terminalShellType.d.ts +40 -0
  768. package/vscode/src/vs/base/common/observableInternal/index.js +0 -8
  769. package/vscode/src/vs/base/common/observableInternal/promise.d.ts +0 -28
  770. package/vscode/src/vs/base/common/observableInternal/promise.js +0 -65
  771. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.css.js +0 -6
  772. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +0 -45
  773. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +0 -426
  774. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewAndDiffProducer.js +0 -116
  775. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.service.d.ts +0 -6
  776. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.service.js +0 -6
  777. package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.d.ts +0 -1
  778. package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.js +0 -24
  779. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.d.ts +0 -8
  780. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.js +0 -6
  781. package/vscode/src/vs/workbench/contrib/scm/browser/diff.service.d.ts +0 -9
  782. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.d.ts +0 -22
  783. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +0 -66
  784. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.d.ts +0 -155
  785. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +0 -1454
  786. package/vscode/src/vs/workbench/contrib/scm/browser/media/dirtydiffDecorator.css.js +0 -6
  787. package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +0 -164
  788. package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +0 -74
  789. package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.d.ts +0 -8
  790. package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +0 -93
  791. package/vscode-dts/vscode.proposed.documentPaste.d.ts +0 -316
  792. package/vscode-dts/vscode.proposed.fileComments.d.ts +0 -42
  793. package/vscode-dts/vscode.proposed.showLocal.d.ts +0 -19
  794. /package/vscode/src/vs/editor/browser/gpu/{fullFileRenderStrategy.wgsl.d.ts → renderStrategy/fullFileRenderStrategy.wgsl.d.ts} +0 -0
@@ -19,7 +19,6 @@ import { Range } from '../../../../../common/core/range.js';
19
19
  import { StringBuilder } from '../../../../../common/core/stringBuilder.js';
20
20
  import { ILanguageService } from '../../../../../common/languages/language.js';
21
21
  import { InjectedTextCursorStops, PositionAffinity } from '../../../../../common/model.js';
22
- import { LineEditWithAdditionalLines } from '../../../../../common/tokenizationTextModelPart.js';
23
22
  import { LineTokens } from '../../../../../common/tokens/lineTokens.js';
24
23
  import { LineDecoration } from '../../../../../common/viewLayout/lineDecorations.js';
25
24
  import { renderViewLine, RenderLineInput } from '../../../../../common/viewLayout/viewLineRenderer.js';
@@ -29,14 +28,24 @@ import { ColumnRange } from '../../utils.js';
29
28
  import './ghostTextView.css.js';
30
29
 
31
30
  let GhostTextView = class GhostTextView extends Disposable {
32
- constructor(_editor, _model, _languageService) {
31
+ constructor(_editor, _model, _options, _shouldKeepCursorStable, _languageService) {
33
32
  super();
34
33
  this._editor = _editor;
35
34
  this._model = _model;
35
+ this._options = _options;
36
+ this._shouldKeepCursorStable = _shouldKeepCursorStable;
36
37
  this._languageService = _languageService;
37
38
  this._isDisposed = observableValue(this, false);
38
39
  this._editorObs = observableCodeEditor(this._editor);
39
- this._useSyntaxHighlighting = ( this._editorObs.getOption(EditorOption.inlineSuggest).map(v => v.syntaxHighlightingEnabled));
40
+ this._useSyntaxHighlighting = ( this._options.map(o => o.syntaxHighlightingEnabled));
41
+ this._extraClassNames = derived(this, reader => {
42
+ const extraClasses = [...(this._options.read(reader).extraClasses ?? [])];
43
+ if (this._useSyntaxHighlighting.read(reader)) {
44
+ extraClasses.push('syntax-highlighted');
45
+ }
46
+ const extraClassNames = ( extraClasses.map(c => ` ${c}`)).join('');
47
+ return extraClassNames;
48
+ });
40
49
  this.uiState = derived(this, reader => {
41
50
  if (this._isDisposed.read(reader)) {
42
51
  return undefined;
@@ -51,16 +60,17 @@ let GhostTextView = class GhostTextView extends Disposable {
51
60
  }
52
61
  const replacedRange = ghostText instanceof GhostTextReplacement ? ghostText.columnRange : undefined;
53
62
  const syntaxHighlightingEnabled = this._useSyntaxHighlighting.read(reader);
54
- const extraClassName = syntaxHighlightingEnabled ? ' syntax-highlighted' : '';
55
- const { inlineTexts, additionalLines, hiddenRange } = computeGhostTextViewData(ghostText, textModel, 'ghost-text' + extraClassName);
63
+ const extraClassNames = this._extraClassNames.read(reader);
64
+ const { inlineTexts, additionalLines, hiddenRange } = computeGhostTextViewData(ghostText, textModel, 'ghost-text' + extraClassNames);
65
+ const currentLine = textModel.getLineContent(ghostText.lineNumber);
56
66
  const edit = ( new OffsetEdit(( inlineTexts.map(t => SingleOffsetEdit.insert(t.column - 1, t.text)))));
57
- const tokens = syntaxHighlightingEnabled ? textModel.tokenization.tokenizeLineWithEdit(ghostText.lineNumber, ( new LineEditWithAdditionalLines(edit, ( additionalLines.map(l => l.content))))) : undefined;
67
+ const tokens = syntaxHighlightingEnabled ? textModel.tokenization.tokenizeLinesAt(ghostText.lineNumber, [edit.apply(currentLine), ...( additionalLines.map(l => l.content))]) : undefined;
58
68
  const newRanges = edit.getNewTextRanges();
59
69
  const inlineTextsWithTokens = ( inlineTexts.map(
60
- (t, idx) => ({ ...t, tokens: tokens?.mainLineTokens?.getTokensInRange(newRanges[idx]) })
70
+ (t, idx) => ({ ...t, tokens: tokens?.[0]?.getTokensInRange(newRanges[idx]) })
61
71
  ));
62
72
  const tokenizedAdditionalLines = ( additionalLines.map((l, idx) => ({
63
- content: tokens?.additionalLines?.[idx] ?? LineTokens.createEmpty(l.content, this._languageService.languageIdCodec),
73
+ content: tokens?.[idx + 1] ?? LineTokens.createEmpty(l.content, this._languageService.languageIdCodec),
64
74
  decorations: l.decorations,
65
75
  })));
66
76
  return {
@@ -80,11 +90,11 @@ let GhostTextView = class GhostTextView extends Disposable {
80
90
  return [];
81
91
  }
82
92
  const decorations = [];
83
- const extraClassName = uiState.syntaxHighlightingEnabled ? ' syntax-highlighted' : '';
93
+ const extraClassNames = this._extraClassNames.read(reader);
84
94
  if (uiState.replacedRange) {
85
95
  decorations.push({
86
96
  range: uiState.replacedRange.toRange(uiState.lineNumber),
87
- options: { inlineClassName: 'inline-completion-text-to-replace' + extraClassName, description: 'GhostTextReplacement' }
97
+ options: { inlineClassName: 'inline-completion-text-to-replace' + extraClassNames, description: 'GhostTextReplacement' }
88
98
  });
89
99
  }
90
100
  if (uiState.hiddenRange) {
@@ -101,7 +111,7 @@ let GhostTextView = class GhostTextView extends Disposable {
101
111
  after: {
102
112
  content: p.text,
103
113
  tokens: p.tokens,
104
- inlineClassName: p.preview ? 'ghost-text-decoration-preview' : 'ghost-text-decoration' + extraClassName,
114
+ inlineClassName: p.preview ? 'ghost-text-decoration-preview' : 'ghost-text-decoration' + extraClassNames,
105
115
  cursorStops: InjectedTextCursorStops.Left
106
116
  },
107
117
  showIfCollapsed: true,
@@ -118,7 +128,11 @@ let GhostTextView = class GhostTextView extends Disposable {
118
128
  minReservedLineCount: uiState.additionalReservedLineCount,
119
129
  targetTextModel: uiState.targetTextModel,
120
130
  } : undefined;
121
- }))));
131
+ }), this._shouldKeepCursorStable)));
132
+ this.height = derived(this, reader => {
133
+ const lineHeight = this._editorObs.getOption(EditorOption.lineHeight).read(reader);
134
+ return lineHeight + (this.additionalLinesWidget.viewZoneHeight.read(reader) ?? 0);
135
+ });
122
136
  this._register(toDisposable(() => { this._isDisposed.set(true, undefined); }));
123
137
  this._register(this._editorObs.setDecorations(this.decorations));
124
138
  }
@@ -127,7 +141,7 @@ let GhostTextView = class GhostTextView extends Disposable {
127
141
  }
128
142
  };
129
143
  GhostTextView = ( __decorate([
130
- ( __param(2, ILanguageService))
144
+ ( __param(4, ILanguageService))
131
145
  ], GhostTextView));
132
146
  function computeGhostTextViewData(ghostText, textModel, ghostTextClassName) {
133
147
  const inlineTexts = [];
@@ -184,12 +198,14 @@ function computeGhostTextViewData(ghostText, textModel, ghostTextClassName) {
184
198
  };
185
199
  }
186
200
  class AdditionalLinesWidget extends Disposable {
187
- get viewZoneId() { return this._viewZoneId; }
188
- constructor(editor, lines) {
201
+ get viewZoneId() { return this._viewZoneInfo?.viewZoneId; }
202
+ get viewZoneHeight() { return this._viewZoneHeight; }
203
+ constructor(editor, lines, shouldKeepCursorStable) {
189
204
  super();
190
205
  this.editor = editor;
191
206
  this.lines = lines;
192
- this._viewZoneId = undefined;
207
+ this.shouldKeepCursorStable = shouldKeepCursorStable;
208
+ this._viewZoneHeight = observableValue('viewZoneHeight', undefined);
193
209
  this.editorOptionsChanged = observableSignalFromEvent('editorOptionChanged', Event.filter(this.editor.onDidChangeConfiguration, e => e.hasChanged(EditorOption.disableMonospaceOptimizations)
194
210
  || e.hasChanged(EditorOption.stopRenderingLineAfter)
195
211
  || e.hasChanged(EditorOption.renderWhitespace)
@@ -214,10 +230,7 @@ class AdditionalLinesWidget extends Disposable {
214
230
  }
215
231
  clear() {
216
232
  this.editor.changeViewZones((changeAccessor) => {
217
- if (this._viewZoneId) {
218
- changeAccessor.removeZone(this._viewZoneId);
219
- this._viewZoneId = undefined;
220
- }
233
+ this.removeActiveViewZone(changeAccessor);
221
234
  });
222
235
  }
223
236
  updateLines(lineNumber, additionalLines, minReservedLineCount) {
@@ -227,23 +240,45 @@ class AdditionalLinesWidget extends Disposable {
227
240
  }
228
241
  const { tabSize } = textModel.getOptions();
229
242
  this.editor.changeViewZones((changeAccessor) => {
230
- if (this._viewZoneId) {
231
- changeAccessor.removeZone(this._viewZoneId);
232
- this._viewZoneId = undefined;
233
- }
243
+ this.removeActiveViewZone(changeAccessor);
234
244
  const heightInLines = Math.max(additionalLines.length, minReservedLineCount);
235
245
  if (heightInLines > 0) {
236
246
  const domNode = document.createElement('div');
237
247
  renderLines(domNode, tabSize, additionalLines, this.editor.getOptions());
238
- this._viewZoneId = changeAccessor.addZone({
239
- afterLineNumber: lineNumber,
240
- heightInLines: heightInLines,
241
- domNode,
242
- afterColumnAffinity: PositionAffinity.Right
243
- });
248
+ this.addViewZone(changeAccessor, lineNumber, heightInLines, domNode);
244
249
  }
245
250
  });
246
251
  }
252
+ addViewZone(changeAccessor, afterLineNumber, heightInLines, domNode) {
253
+ const id = changeAccessor.addZone({
254
+ afterLineNumber: afterLineNumber,
255
+ heightInLines: heightInLines,
256
+ domNode,
257
+ afterColumnAffinity: PositionAffinity.Right,
258
+ onComputedHeight: (height) => {
259
+ this._viewZoneHeight.set(height, undefined);
260
+ }
261
+ });
262
+ this.keepCursorStable(afterLineNumber, heightInLines);
263
+ this._viewZoneInfo = { viewZoneId: id, heightInLines, lineNumber: afterLineNumber };
264
+ }
265
+ removeActiveViewZone(changeAccessor) {
266
+ if (this._viewZoneInfo) {
267
+ changeAccessor.removeZone(this._viewZoneInfo.viewZoneId);
268
+ this.keepCursorStable(this._viewZoneInfo.lineNumber, -this._viewZoneInfo.heightInLines);
269
+ this._viewZoneInfo = undefined;
270
+ this._viewZoneHeight.set(undefined, undefined);
271
+ }
272
+ }
273
+ keepCursorStable(lineNumber, heightInLines) {
274
+ if (!this.shouldKeepCursorStable) {
275
+ return;
276
+ }
277
+ const cursorLineNumber = this.editor.getSelection()?.getStartPosition()?.lineNumber;
278
+ if (cursorLineNumber !== undefined && lineNumber < cursorLineNumber) {
279
+ this.editor.setScrollTop(this.editor.getScrollTop() + heightInLines * this.editor.getOption(EditorOption.lineHeight));
280
+ }
281
+ }
247
282
  }
248
283
  function renderLines(domNode, tabSize, lines, opts) {
249
284
  const disableMonospaceOptimizations = opts.get(EditorOption.disableMonospaceOptimizations);
@@ -1,21 +1,22 @@
1
1
  import { Disposable } from "../../../../../base/common/lifecycle.js";
2
- import { IObservable } from "../../../../../base/common/observable.js";
2
+ import { IObservable, ISettableObservable } from "../../../../../base/common/observable.js";
3
3
  import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js";
4
4
  import { ICodeEditor } from "../../../../browser/editorBrowser.js";
5
5
  import { InlineCompletionsModel } from "../model/inlineCompletionsModel.js";
6
- import { InlineEditsViewAndDiffProducer } from "./inlineEdits/inlineEditsViewAndDiffProducer.js";
6
+ import { InlineEditsViewAndDiffProducer } from "./inlineEdits/viewAndDiffProducer.js";
7
7
  export declare class InlineCompletionsView extends Disposable {
8
8
  private readonly _editor;
9
9
  private readonly _model;
10
+ private readonly _focusIsInMenu;
10
11
  private readonly _instantiationService;
11
12
  private readonly _ghostTexts;
12
13
  private readonly _stablizedGhostTexts;
14
+ private readonly _editorObs;
13
15
  private readonly _ghostTextWidgets;
14
16
  private readonly _inlineEdit;
15
17
  private readonly _everHadInlineEdit;
16
- protected readonly _inlineEditWidget: IObservable<InlineEditsViewAndDiffProducer | undefined, unknown>;
17
- private readonly _editorObs;
18
+ protected readonly _inlineEditWidget: IObservable<InlineEditsViewAndDiffProducer | undefined>;
18
19
  private readonly _fontFamily;
19
- constructor(_editor: ICodeEditor, _model: IObservable<InlineCompletionsModel | undefined>, _instantiationService: IInstantiationService);
20
+ constructor(_editor: ICodeEditor, _model: IObservable<InlineCompletionsModel | undefined>, _focusIsInMenu: ISettableObservable<boolean>, _instantiationService: IInstantiationService);
20
21
  shouldShowHoverAtViewZone(viewZoneId: string): boolean;
21
22
  }
@@ -15,34 +15,35 @@ import { EditorOption } from '../../../../common/config/editorOptions.js';
15
15
  import { InlineCompletionsHintsWidget } from '../hintsWidget/inlineCompletionsHintsWidget.js';
16
16
  import { convertItemsToStableObservables } from '../utils.js';
17
17
  import { GhostTextView } from './ghostText/ghostTextView.js';
18
- import { InlineEditsViewAndDiffProducer } from './inlineEdits/inlineEditsViewAndDiffProducer.js';
18
+ import { InlineEditsViewAndDiffProducer } from './inlineEdits/viewAndDiffProducer.js';
19
19
 
20
20
  let InlineCompletionsView = class InlineCompletionsView extends Disposable {
21
- constructor(_editor, _model, _instantiationService) {
21
+ constructor(_editor, _model, _focusIsInMenu, _instantiationService) {
22
22
  super();
23
23
  this._editor = _editor;
24
24
  this._model = _model;
25
+ this._focusIsInMenu = _focusIsInMenu;
25
26
  this._instantiationService = _instantiationService;
26
27
  this._ghostTexts = derived(this, (reader) => {
27
28
  const model = this._model.read(reader);
28
29
  return model?.ghostTexts.read(reader) ?? [];
29
30
  });
30
31
  this._stablizedGhostTexts = convertItemsToStableObservables(this._ghostTexts, this._store);
32
+ this._editorObs = observableCodeEditor(this._editor);
31
33
  this._ghostTextWidgets = mapObservableArrayCached(this, this._stablizedGhostTexts, (ghostText, store) => derivedDisposable((reader) => this._instantiationService.createInstance(readHotReloadableExport(GhostTextView), this._editor, {
32
34
  ghostText: ghostText,
33
35
  minReservedLineCount: constObservable(0),
34
36
  targetTextModel: ( this._model.map(v => v?.textModel)),
35
- })).recomputeInitiallyAndOnChange(store)).recomputeInitiallyAndOnChange(this._store);
37
+ }, ( this._editorObs.getOption(EditorOption.inlineSuggest).map(v => ({ syntaxHighlightingEnabled: v.syntaxHighlightingEnabled }))), false)).recomputeInitiallyAndOnChange(store)).recomputeInitiallyAndOnChange(this._store);
36
38
  this._inlineEdit = derived(this, reader => this._model.read(reader)?.inlineEditState.read(reader)?.inlineEdit);
37
39
  this._everHadInlineEdit = derivedObservableWithCache(this, (reader, last) => last || !!this._inlineEdit.read(reader));
38
40
  this._inlineEditWidget = derivedDisposable(reader => {
39
41
  if (!this._everHadInlineEdit.read(reader)) {
40
42
  return undefined;
41
43
  }
42
- return this._instantiationService.createInstance(InlineEditsViewAndDiffProducer.hot.read(reader), this._editor, this._inlineEdit, this._model);
44
+ return this._instantiationService.createInstance(InlineEditsViewAndDiffProducer.hot.read(reader), this._editor, this._inlineEdit, this._model, this._focusIsInMenu);
43
45
  })
44
46
  .recomputeInitiallyAndOnChange(this._store);
45
- this._editorObs = observableCodeEditor(this._editor);
46
47
  this._fontFamily = ( this._editorObs.getOption(EditorOption.inlineSuggest).map(val => val.fontFamily));
47
48
  this._register(createStyleSheetFromObservable(derived(reader => {
48
49
  const fontFamily = this._fontFamily.read(reader);
@@ -63,7 +64,7 @@ let InlineCompletionsView = class InlineCompletionsView extends Disposable {
63
64
  }
64
65
  };
65
66
  InlineCompletionsView = ( __decorate([
66
- ( __param(2, IInstantiationService))
67
+ ( __param(3, IInstantiationService))
67
68
  ], InlineCompletionsView));
68
69
 
69
70
  export { InlineCompletionsView };
@@ -0,0 +1,29 @@
1
+ import { Disposable } from "../../../../../../base/common/lifecycle.js";
2
+ import { IObservable } from "../../../../../../base/common/observable.js";
3
+ import { ICodeEditor } from "../../../../../browser/editorBrowser.js";
4
+ import { LineRange } from "../../../../../common/core/lineRange.js";
5
+ import { Range } from "../../../../../common/core/range.js";
6
+ import { IInlineEditsView } from "./sideBySideDiff.js";
7
+ import { InlineEditWithChanges } from "./viewAndDiffProducer.js";
8
+ export declare class InlineEditsDeletionView extends Disposable implements IInlineEditsView {
9
+ private readonly _editor;
10
+ private readonly _edit;
11
+ private readonly _uiState;
12
+ private readonly _editorObs;
13
+ constructor(_editor: ICodeEditor, _edit: IObservable<InlineEditWithChanges | undefined>, _uiState: IObservable<{
14
+ originalRange: LineRange;
15
+ deletions: Range[];
16
+ } | undefined>);
17
+ private readonly _display;
18
+ private readonly _originalStartPosition;
19
+ private readonly _originalEndPosition;
20
+ private readonly _originalVerticalStartPosition;
21
+ private readonly _originalVerticalEndPosition;
22
+ private readonly _originalDisplayRange;
23
+ private readonly _editorMaxContentWidthInRange;
24
+ private readonly _maxPrefixTrim;
25
+ private readonly _editorLayoutInfo;
26
+ private readonly _foregroundSvg;
27
+ private readonly _nonOverflowView;
28
+ readonly isHovered: IObservable<boolean>;
29
+ }
@@ -0,0 +1,141 @@
1
+
2
+ import { Disposable } from '../../../../../../base/common/lifecycle.js';
3
+ import '../../../../../../base/common/arrays.js';
4
+ import '../../../../../../base/common/event.js';
5
+ import '../../../../../../base/common/observableInternal/autorun.js';
6
+ import { derived } from '../../../../../../base/common/observableInternal/derived.js';
7
+ import '../../../../../../base/common/cancellation.js';
8
+ import { constObservable, derivedObservableWithCache } from '../../../../../../base/common/observableInternal/utils.js';
9
+ import { observableCodeEditor } from '../../../../../browser/observableCodeEditor.js';
10
+ import { Point } from '../../../../../browser/point.js';
11
+ import { Position } from '../../../../../common/core/position.js';
12
+ import { maxContentWidthInRange, getPrefixTrim, n, mapOutFalsy, createRectangle } from './utils.js';
13
+
14
+ class InlineEditsDeletionView extends Disposable {
15
+ constructor(_editor, _edit, _uiState) {
16
+ super();
17
+ this._editor = _editor;
18
+ this._edit = _edit;
19
+ this._uiState = _uiState;
20
+ this._editorObs = observableCodeEditor(this._editor);
21
+ this._display = derived(this, reader => !!this._uiState.read(reader) ? 'block' : 'none');
22
+ this._originalStartPosition = derived(this, (reader) => {
23
+ const inlineEdit = this._edit.read(reader);
24
+ return inlineEdit ? ( new Position(inlineEdit.originalLineRange.startLineNumber, 1)) : null;
25
+ });
26
+ this._originalEndPosition = derived(this, (reader) => {
27
+ const inlineEdit = this._edit.read(reader);
28
+ return inlineEdit ? ( new Position(inlineEdit.originalLineRange.endLineNumberExclusive, 1)) : null;
29
+ });
30
+ this._originalVerticalStartPosition = ( this._editorObs.observePosition(this._originalStartPosition, this._store).map(p => p?.y));
31
+ this._originalVerticalEndPosition = ( this._editorObs.observePosition(this._originalEndPosition, this._store).map(p => p?.y));
32
+ this._originalDisplayRange = ( this._uiState.map(s => s?.originalRange));
33
+ this._editorMaxContentWidthInRange = ( derived(this, reader => {
34
+ const originalDisplayRange = this._originalDisplayRange.read(reader);
35
+ if (!originalDisplayRange) {
36
+ return constObservable(0);
37
+ }
38
+ this._editorObs.versionId.read(reader);
39
+ return derivedObservableWithCache(this, (reader, lastValue) => {
40
+ const maxWidth = maxContentWidthInRange(this._editorObs, originalDisplayRange, reader);
41
+ return Math.max(maxWidth, lastValue ?? 0);
42
+ });
43
+ }).map((v, r) => v.read(r)));
44
+ this._maxPrefixTrim = derived(reader => {
45
+ const state = this._uiState.read(reader);
46
+ if (!state) {
47
+ return { prefixTrim: 0, prefixLeftOffset: 0 };
48
+ }
49
+ return getPrefixTrim(state.deletions, state.originalRange, [], this._editor);
50
+ });
51
+ this._editorLayoutInfo = derived(this, (reader) => {
52
+ const inlineEdit = this._edit.read(reader);
53
+ if (!inlineEdit) {
54
+ return null;
55
+ }
56
+ const state = this._uiState.read(reader);
57
+ if (!state) {
58
+ return null;
59
+ }
60
+ const editorLayout = this._editorObs.layoutInfo.read(reader);
61
+ const horizontalScrollOffset = this._editorObs.scrollLeft.read(reader);
62
+ const left = editorLayout.contentLeft + this._editorMaxContentWidthInRange.read(reader) - horizontalScrollOffset;
63
+ const range = inlineEdit.originalLineRange;
64
+ const selectionTop = this._originalVerticalStartPosition.read(reader) ?? this._editor.getTopForLineNumber(range.startLineNumber) - this._editorObs.scrollTop.read(reader);
65
+ const selectionBottom = this._originalVerticalEndPosition.read(reader) ?? this._editor.getTopForLineNumber(range.endLineNumberExclusive) - this._editorObs.scrollTop.read(reader);
66
+ const codeLeft = editorLayout.contentLeft + this._maxPrefixTrim.read(reader).prefixLeftOffset;
67
+ if (left <= codeLeft) {
68
+ return null;
69
+ }
70
+ const code1 = ( new Point(left, selectionTop));
71
+ const codeStart1 = ( new Point(codeLeft, selectionTop));
72
+ const code2 = ( new Point(left, selectionBottom));
73
+ const codeStart2 = ( new Point(codeLeft, selectionBottom));
74
+ const codeHeight = selectionBottom - selectionTop;
75
+ return {
76
+ code1,
77
+ codeStart1,
78
+ code2,
79
+ codeStart2,
80
+ codeHeight,
81
+ horizontalScrollOffset,
82
+ padding: 3,
83
+ borderRadius: 4,
84
+ };
85
+ }).recomputeInitiallyAndOnChange(this._store);
86
+ this._foregroundSvg = n.svg({
87
+ transform: 'translate(-0.5 -0.5)',
88
+ style: { overflow: 'visible', pointerEvents: 'none', position: 'absolute' },
89
+ }, derived(reader => {
90
+ const layoutInfoObs = mapOutFalsy(this._editorLayoutInfo).read(reader);
91
+ if (!layoutInfoObs) {
92
+ return undefined;
93
+ }
94
+ const layoutInfo = layoutInfoObs.read(reader);
95
+ const rectangleOverlay = createRectangle({
96
+ topLeft: layoutInfo.codeStart1,
97
+ width: layoutInfo.code1.x - layoutInfo.codeStart1.x + 1,
98
+ height: layoutInfo.code2.y - layoutInfo.code1.y + 1,
99
+ }, layoutInfo.padding, layoutInfo.borderRadius, { hideLeft: layoutInfo.horizontalScrollOffset !== 0 });
100
+ return [
101
+ n.svgElem('path', {
102
+ class: 'originalOverlay',
103
+ d: rectangleOverlay,
104
+ style: {
105
+ fill: 'var(--vscode-inlineEdit-originalBackground, transparent)',
106
+ stroke: 'var(--vscode-inlineEdit-originalBorder)',
107
+ strokeWidth: '1px',
108
+ }
109
+ }),
110
+ ];
111
+ })).keepUpdated(this._store);
112
+ this._nonOverflowView = n.div({
113
+ class: 'inline-edits-view',
114
+ style: {
115
+ position: 'absolute',
116
+ overflow: 'visible',
117
+ top: '0px',
118
+ left: '0px',
119
+ zIndex: '0',
120
+ display: this._display,
121
+ },
122
+ }, [
123
+ [this._foregroundSvg],
124
+ ]).keepUpdated(this._store);
125
+ this.isHovered = constObservable(false);
126
+ this._register(this._editorObs.createOverlayWidget({
127
+ domNode: this._nonOverflowView.element,
128
+ position: constObservable(null),
129
+ allowEditorOverflow: false,
130
+ minContentWidthInPx: derived(reader => {
131
+ const info = this._editorLayoutInfo.read(reader);
132
+ if (info === null) {
133
+ return 0;
134
+ }
135
+ return info.code1.x - info.codeStart1.x;
136
+ }),
137
+ }));
138
+ }
139
+ }
140
+
141
+ export { InlineEditsDeletionView };
@@ -0,0 +1,19 @@
1
+ import { IObservable } from "../../../../../../base/common/observable.js";
2
+ import { ICommandService } from "../../../../../../platform/commands/common/commands.service.js";
3
+ import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js";
4
+ import { IKeybindingService } from "../../../../../../platform/keybinding/common/keybinding.service.js";
5
+ import { Command } from "../../../../../common/languages.js";
6
+ import { LiveElement } from "./utils.js";
7
+ export declare class GutterIndicatorMenuContent {
8
+ private readonly _menuTitle;
9
+ private readonly _tabAction;
10
+ private readonly _close;
11
+ private readonly _extensionCommands;
12
+ private readonly _contextKeyService;
13
+ private readonly _keybindingService;
14
+ private readonly _commandService;
15
+ constructor(_menuTitle: IObservable<string>, _tabAction: IObservable<"jump" | "accept" | "inactive">, _close: (focusEditor: boolean) => void, _extensionCommands: IObservable<readonly Command[] | undefined>, _contextKeyService: IContextKeyService, _keybindingService: IKeybindingService, _commandService: ICommandService);
16
+ toDisposableLiveElement(): LiveElement;
17
+ private _createHoverContent;
18
+ private _getKeybinding;
19
+ }
@@ -0,0 +1,143 @@
1
+
2
+ import { __decorate, __param } from '../../../../../../../../../external/tslib/tslib.es6.js';
3
+ import { renderIcon } from '../../../../../../base/browser/ui/iconLabel/iconLabels.js';
4
+ import { KeybindingLabel, unthemedKeybindingLabelOptions } from '../../../../../../base/browser/ui/keybindingLabel/keybindingLabel.js';
5
+ import { Codicon } from '../../../../../../base/common/codicons.js';
6
+ import { observableValue } from '../../../../../../base/common/observableInternal/base.js';
7
+ import '../../../../../../base/common/arrays.js';
8
+ import '../../../../../../base/common/event.js';
9
+ import '../../../../../../base/common/lifecycle.js';
10
+ import { autorun } from '../../../../../../base/common/observableInternal/autorun.js';
11
+ import { derived, derivedWithStore } from '../../../../../../base/common/observableInternal/derived.js';
12
+ import '../../../../../../base/common/cancellation.js';
13
+ import { constObservable, observableFromEvent } from '../../../../../../base/common/observableInternal/utils.js';
14
+ import { OS } from '../../../../../../base/common/platform.js';
15
+ import { ThemeIcon } from '../../../../../../base/common/themables.js';
16
+ import { localize } from '../../../../../../nls.js';
17
+ import { ICommandService } from '../../../../../../platform/commands/common/commands.service.js';
18
+ import { IContextKeyService } from '../../../../../../platform/contextkey/common/contextkey.service.js';
19
+ import { IKeybindingService } from '../../../../../../platform/keybinding/common/keybinding.service.js';
20
+ import { AcceptInlineCompletion, JumpToNextInlineEdit, HideInlineCompletion } from '../../controller/commands.js';
21
+ import { n } from './utils.js';
22
+
23
+ let GutterIndicatorMenuContent = class GutterIndicatorMenuContent {
24
+ constructor(_menuTitle, _tabAction, _close, _extensionCommands, _contextKeyService, _keybindingService, _commandService) {
25
+ this._menuTitle = _menuTitle;
26
+ this._tabAction = _tabAction;
27
+ this._close = _close;
28
+ this._extensionCommands = _extensionCommands;
29
+ this._contextKeyService = _contextKeyService;
30
+ this._keybindingService = _keybindingService;
31
+ this._commandService = _commandService;
32
+ }
33
+ toDisposableLiveElement() {
34
+ return this._createHoverContent().toDisposableLiveElement();
35
+ }
36
+ _createHoverContent() {
37
+ const activeElement = observableValue('active', undefined);
38
+ const createOptionArgs = (options) => {
39
+ return {
40
+ title: options.title,
41
+ icon: options.icon,
42
+ keybinding: typeof options.commandId === 'string' ? this._getKeybinding(options.commandArgs ? undefined : options.commandId) : derived(reader => typeof options.commandId === 'string' ? undefined : this._getKeybinding(options.commandArgs ? undefined : options.commandId.read(reader)).read(reader)),
43
+ isActive: ( activeElement.map(v => v === options.id)),
44
+ onHoverChange: v => activeElement.set(v ? options.id : undefined, undefined),
45
+ onAction: () => {
46
+ this._close(true);
47
+ return this._commandService.executeCommand(typeof options.commandId === 'string' ? options.commandId : options.commandId.get(), ...(options.commandArgs ?? []));
48
+ },
49
+ };
50
+ };
51
+ return hoverContent([
52
+ header(this._menuTitle),
53
+ option(createOptionArgs({ id: 'gotoAndAccept', title: `${( localize(1232, "Go To"))} / ${( localize(1233, "Accept"))}`, icon: ( this._tabAction.map(action => action === 'accept' ? Codicon.check : Codicon.arrowRight)), commandId: ( this._tabAction.map(action => action === 'accept' ? ( new AcceptInlineCompletion()).id : ( new JumpToNextInlineEdit()).id)) })),
54
+ option(createOptionArgs({ id: 'reject', title: ( localize(1234, "Reject")), icon: Codicon.close, commandId: ( new HideInlineCompletion()).id })),
55
+ separator(),
56
+ this._extensionCommands?.map(c => c && c.length > 0 ? [
57
+ ...( c.map(
58
+ c => option(createOptionArgs({ id: c.id, title: c.title, icon: Codicon.symbolEvent, commandId: c.id, commandArgs: c.arguments }))
59
+ )),
60
+ separator()
61
+ ] : []),
62
+ option(createOptionArgs({ id: 'settings', title: ( localize(1235, "Settings")), icon: Codicon.gear, commandId: 'workbench.action.openSettings', commandArgs: ['@tag:nextEditSuggestions'] })),
63
+ ]);
64
+ }
65
+ _getKeybinding(commandId) {
66
+ if (!commandId) {
67
+ return constObservable(undefined);
68
+ }
69
+ return observableFromEvent(this._contextKeyService.onDidChangeContext, () => this._keybindingService.lookupKeybinding(commandId));
70
+ }
71
+ };
72
+ GutterIndicatorMenuContent = ( __decorate([
73
+ ( __param(4, IContextKeyService)),
74
+ ( __param(5, IKeybindingService)),
75
+ ( __param(6, ICommandService))
76
+ ], GutterIndicatorMenuContent));
77
+ function hoverContent(content) {
78
+ return n.div({
79
+ class: 'content',
80
+ style: {
81
+ margin: 4,
82
+ minWidth: 150,
83
+ }
84
+ }, content);
85
+ }
86
+ function header(title) {
87
+ return n.div({
88
+ class: 'header',
89
+ style: {
90
+ color: 'var(--vscode-descriptionForeground)',
91
+ fontSize: '12px',
92
+ fontWeight: '600',
93
+ padding: '0 10px',
94
+ lineHeight: 26,
95
+ }
96
+ }, [title]);
97
+ }
98
+ function option(props) {
99
+ return derivedWithStore((_reader, store) => n.div({
100
+ class: ['monaco-menu-option', props.isActive?.map(v => v && 'active')],
101
+ onmouseenter: () => props.onHoverChange?.(true),
102
+ onmouseleave: () => props.onHoverChange?.(false),
103
+ onclick: props.onAction,
104
+ onkeydown: e => {
105
+ if (e.key === 'Enter') {
106
+ props.onAction?.();
107
+ }
108
+ },
109
+ tabIndex: 0,
110
+ }, [
111
+ n.elem('span', {
112
+ style: {
113
+ fontSize: 16,
114
+ display: 'flex',
115
+ }
116
+ }, [ThemeIcon.isThemeIcon(props.icon) ? renderIcon(props.icon) : ( props.icon.map(icon => renderIcon(icon)))]),
117
+ n.elem('span', {}, [props.title]),
118
+ n.div({
119
+ style: { marginLeft: 'auto', opacity: '0.6' },
120
+ ref: elem => {
121
+ const keybindingLabel = store.add(( new KeybindingLabel(elem, OS, { disableTitle: true, ...unthemedKeybindingLabelOptions })));
122
+ store.add(autorun(reader => {
123
+ keybindingLabel.set(props.keybinding.read(reader));
124
+ }));
125
+ }
126
+ })
127
+ ]));
128
+ }
129
+ function separator() {
130
+ return n.div({
131
+ class: 'menu-separator',
132
+ style: {
133
+ color: 'var(--vscode-editorActionList-foreground)',
134
+ padding: '2px 0',
135
+ }
136
+ }, n.div({
137
+ style: {
138
+ borderBottom: '1px solid var(--vscode-editorHoverWidget-border)',
139
+ }
140
+ }));
141
+ }
142
+
143
+ export { GutterIndicatorMenuContent };
@@ -0,0 +1,37 @@
1
+ import { Disposable } from "../../../../../../base/common/lifecycle.js";
2
+ import { IObservable, ISettableObservable } from "../../../../../../base/common/observable.js";
3
+ import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js";
4
+ import { ObservableCodeEditor } from "../../../../../browser/observableCodeEditor.js";
5
+ import { HoverService } from "../../../../../browser/services/hoverService/hoverService.js";
6
+ import { LineRange } from "../../../../../common/core/lineRange.js";
7
+ import { InlineCompletionsModel } from "../../model/inlineCompletionsModel.js";
8
+ import { IAccessibilityService } from "../../../../../../platform/accessibility/common/accessibility.service.js";
9
+ export declare const inlineEditIndicatorPrimaryForeground: string;
10
+ export declare const inlineEditIndicatorPrimaryBackground: string;
11
+ export declare const inlineEditIndicatorSecondaryForeground: string;
12
+ export declare const inlineEditIndicatorSecondaryBackground: string;
13
+ export declare const inlineEditIndicatorsuccessfulForeground: string;
14
+ export declare const inlineEditIndicatorsuccessfulBackground: string;
15
+ export declare const inlineEditIndicatorBackground: string;
16
+ export declare class InlineEditsGutterIndicator extends Disposable {
17
+ private readonly _editorObs;
18
+ private readonly _originalRange;
19
+ private readonly _verticalOffset;
20
+ private readonly _model;
21
+ private readonly _isHoveringOverInlineEdit;
22
+ private readonly _focusIsInMenu;
23
+ private readonly _hoverService;
24
+ private readonly _instantiationService;
25
+ constructor(_editorObs: ObservableCodeEditor, _originalRange: IObservable<LineRange | undefined>, _verticalOffset: IObservable<number>, _model: IObservable<InlineCompletionsModel | undefined>, _isHoveringOverInlineEdit: IObservable<boolean>, _focusIsInMenu: ISettableObservable<boolean>, _hoverService: HoverService, _instantiationService: IInstantiationService, accessibilityService: IAccessibilityService);
26
+ private readonly _originalRangeObs;
27
+ private readonly _state;
28
+ private readonly _stickyScrollController;
29
+ private readonly _stickyScrollHeight;
30
+ private readonly _layout;
31
+ private readonly _tabAction;
32
+ private readonly _iconRef;
33
+ private _hoverVisible;
34
+ private readonly _isHoveredOverIcon;
35
+ private _showHover;
36
+ private readonly _indicator;
37
+ }