@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
@@ -2,10 +2,9 @@
2
2
  import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
3
3
  import { getActiveWindow } from '../../../../base/browser/dom.js';
4
4
  import { BugIndicatingError } from '../../../../base/common/errors.js';
5
- import { observableValue } from '../../../../base/common/observableInternal/base.js';
6
5
  import '../../../../base/common/arrays.js';
7
6
  import '../../../../base/common/event.js';
8
- import '../../../../base/common/lifecycle.js';
7
+ import { MutableDisposable } from '../../../../base/common/lifecycle.js';
9
8
  import { autorun } from '../../../../base/common/observableInternal/autorun.js';
10
9
  import '../../../../base/common/observableInternal/derived.js';
11
10
  import '../../../../base/common/cancellation.js';
@@ -16,7 +15,6 @@ import { EditorOption } from '../../../common/config/editorOptions.js';
16
15
  import { Position } from '../../../common/core/position.js';
17
16
  import { Range } from '../../../common/core/range.js';
18
17
  import { TextureAtlasPage } from '../../gpu/atlas/textureAtlasPage.js';
19
- import { FullFileRenderStrategy } from '../../gpu/fullFileRenderStrategy.js';
20
18
  import { BindingId } from '../../gpu/gpu.js';
21
19
  import { GPULifecycle } from '../../gpu/gpuDisposable.js';
22
20
  import { quadVertices } from '../../gpu/gpuUtils.js';
@@ -26,6 +24,10 @@ import { ViewPart } from '../../view/viewPart.js';
26
24
  import { ViewLineOptions } from '../viewLines/viewLineOptions.js';
27
25
  import { CursorColumns } from '../../../common/core/cursorColumns.js';
28
26
  import { TextureAtlas } from '../../gpu/atlas/textureAtlas.js';
27
+ import { createContentSegmenter } from '../../gpu/contentSegmenter.js';
28
+ import { ViewportRenderStrategy } from '../../gpu/renderStrategy/viewportRenderStrategy.js';
29
+ import { FullFileRenderStrategy } from '../../gpu/renderStrategy/fullFileRenderStrategy.js';
30
+ import { GlyphRasterizer } from '../../gpu/raster/glyphRasterizer.js';
29
31
 
30
32
  var GlyphStorageBufferInfo;
31
33
  (function (GlyphStorageBufferInfo) {
@@ -43,7 +45,8 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
43
45
  this._logService = _logService;
44
46
  this._atlasGpuTextureVersions = [];
45
47
  this._initialized = false;
46
- this._contentLeftObs = observableValue('contentLeft', 0);
48
+ this._glyphRasterizer = this._register(( new MutableDisposable()));
49
+ this._renderStrategy = this._register(( new MutableDisposable()));
47
50
  this.canvas = this._viewGpuContext.canvas.domNode;
48
51
  this._register(autorun(reader => {
49
52
  this._viewGpuContext.canvasDevicePixelDimensions.read(reader);
@@ -59,7 +62,7 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
59
62
  this.initWebgpu();
60
63
  }
61
64
  async initWebgpu() {
62
- this._device = await this._viewGpuContext.device;
65
+ this._device = ViewGpuContext.deviceSync || (await ViewGpuContext.device);
63
66
  if (this._store.isDisposed) {
64
67
  return;
65
68
  }
@@ -68,7 +71,7 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
68
71
  this._atlasGpuTextureVersions.length = 0;
69
72
  this._atlasGpuTextureVersions[0] = 0;
70
73
  this._atlasGpuTextureVersions[1] = 0;
71
- this._renderStrategy.reset();
74
+ this._renderStrategy.value.reset();
72
75
  }));
73
76
  const presentationFormat = navigator.gpu.getPreferredCanvasFormat();
74
77
  this._viewGpuContext.ctx.configure({
@@ -116,7 +119,7 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
116
119
  this._register(runOnChange(this._viewGpuContext.canvasDevicePixelDimensions, ({ width, height }) => {
117
120
  this._device.queue.writeBuffer(layoutInfoUniformBuffer, 0, updateBufferValues(width, height));
118
121
  }));
119
- this._register(runOnChange(this._contentLeftObs, () => {
122
+ this._register(runOnChange(this._viewGpuContext.contentLeft, () => {
120
123
  this._device.queue.writeBuffer(layoutInfoUniformBuffer, 0, updateBufferValues());
121
124
  }));
122
125
  }
@@ -140,7 +143,13 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
140
143
  return values;
141
144
  })).object;
142
145
  }
143
- this._renderStrategy = this._register(this._instantiationService.createInstance(FullFileRenderStrategy, this._context, this._viewGpuContext, this._device));
146
+ const fontFamily = this._context.configuration.options.get(EditorOption.fontFamily);
147
+ const fontSize = this._context.configuration.options.get(EditorOption.fontSize);
148
+ this._glyphRasterizer.value = this._register(( new GlyphRasterizer(fontSize, fontFamily, this._viewGpuContext.devicePixelRatio.get())));
149
+ this._register(runOnChange(this._viewGpuContext.devicePixelRatio, () => {
150
+ this._refreshGlyphRasterizer();
151
+ }));
152
+ this._renderStrategy.value = this._instantiationService.createInstance(FullFileRenderStrategy, this._context, this._viewGpuContext, this._device, this._glyphRasterizer);
144
153
  this._glyphStorageBuffer = this._register(GPULifecycle.createBuffer(this._device, {
145
154
  label: 'Monaco glyph storage buffer',
146
155
  size: TextureAtlas.maximumPageCount * (TextureAtlasPage.maximumGlyphCount * GlyphStorageBufferInfo.BytesPerEntry),
@@ -165,7 +174,7 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
165
174
  }, quadVertices)).object;
166
175
  const module = this._device.createShaderModule({
167
176
  label: 'Monaco shader module',
168
- code: this._renderStrategy.wgsl,
177
+ code: this._renderStrategy.value.wgsl,
169
178
  });
170
179
  this._pipeline = this._device.createRenderPipeline({
171
180
  label: 'Monaco render pipeline',
@@ -200,24 +209,27 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
200
209
  ],
201
210
  },
202
211
  });
203
- this._bindGroup = this._device.createBindGroup({
204
- label: 'Monaco bind group',
205
- layout: this._pipeline.getBindGroupLayout(0),
206
- entries: [
207
- { binding: BindingId.GlyphInfo, resource: { buffer: this._glyphStorageBuffer } },
208
- {
209
- binding: BindingId.TextureSampler, resource: this._device.createSampler({
210
- label: 'Monaco atlas sampler',
211
- magFilter: 'nearest',
212
- minFilter: 'nearest',
213
- })
214
- },
215
- { binding: BindingId.Texture, resource: this._atlasGpuTexture.createView() },
216
- { binding: BindingId.LayoutInfoUniform, resource: { buffer: layoutInfoUniformBuffer } },
217
- { binding: BindingId.AtlasDimensionsUniform, resource: { buffer: atlasInfoUniformBuffer } },
218
- ...this._renderStrategy.bindGroupEntries
219
- ],
220
- });
212
+ this._rebuildBindGroup = () => {
213
+ this._bindGroup = this._device.createBindGroup({
214
+ label: 'Monaco bind group',
215
+ layout: this._pipeline.getBindGroupLayout(0),
216
+ entries: [
217
+ { binding: BindingId.GlyphInfo, resource: { buffer: this._glyphStorageBuffer } },
218
+ {
219
+ binding: BindingId.TextureSampler, resource: this._device.createSampler({
220
+ label: 'Monaco atlas sampler',
221
+ magFilter: 'nearest',
222
+ minFilter: 'nearest',
223
+ })
224
+ },
225
+ { binding: BindingId.Texture, resource: this._atlasGpuTexture.createView() },
226
+ { binding: BindingId.LayoutInfoUniform, resource: { buffer: layoutInfoUniformBuffer } },
227
+ { binding: BindingId.AtlasDimensionsUniform, resource: { buffer: atlasInfoUniformBuffer } },
228
+ ...this._renderStrategy.value.bindGroupEntries
229
+ ],
230
+ });
231
+ };
232
+ this._rebuildBindGroup();
221
233
  this._initialized = true;
222
234
  if (this._initViewportData) {
223
235
  for (const viewportData of this._initViewportData) {
@@ -226,6 +238,28 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
226
238
  this._initViewportData = undefined;
227
239
  }
228
240
  }
241
+ _refreshRenderStrategy(viewportData) {
242
+ if (this._renderStrategy.value?.type === 'viewport') {
243
+ return;
244
+ }
245
+ if (viewportData.endLineNumber < FullFileRenderStrategy.maxSupportedLines && this._viewportMaxColumn(viewportData) < FullFileRenderStrategy.maxSupportedColumns) {
246
+ return;
247
+ }
248
+ this._logService.trace(`File is larger than ${FullFileRenderStrategy.maxSupportedLines} lines or ${FullFileRenderStrategy.maxSupportedColumns} columns, switching to viewport render strategy`);
249
+ const viewportRenderStrategy = this._instantiationService.createInstance(ViewportRenderStrategy, this._context, this._viewGpuContext, this._device, this._glyphRasterizer);
250
+ this._renderStrategy.value = viewportRenderStrategy;
251
+ this._register(viewportRenderStrategy.onDidChangeBindGroupEntries(() => this._rebuildBindGroup?.()));
252
+ this._rebuildBindGroup?.();
253
+ }
254
+ _viewportMaxColumn(viewportData) {
255
+ let maxColumn = 0;
256
+ let lineData;
257
+ for (let i = viewportData.startLineNumber; i <= viewportData.endLineNumber; i++) {
258
+ lineData = viewportData.getViewLineRenderingData(i);
259
+ maxColumn = Math.max(maxColumn, lineData.maxColumn);
260
+ }
261
+ return maxColumn;
262
+ }
229
263
  _updateAtlasStorageBufferAndTexture() {
230
264
  for (const [layerIndex, page] of ViewGpuContext.atlas.pages.entries()) {
231
265
  if (layerIndex >= TextureAtlas.maximumPageCount) {
@@ -276,6 +310,10 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
276
310
  render(ctx) {
277
311
  throw ( new BugIndicatingError('Should not be called'));
278
312
  }
313
+ onConfigurationChanged(e) {
314
+ this._refreshGlyphRasterizer();
315
+ return true;
316
+ }
279
317
  onCursorStateChanged(e) { return true; }
280
318
  onDecorationsChanged(e) { return true; }
281
319
  onFlushed(e) { return true; }
@@ -287,12 +325,23 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
287
325
  onScrollChanged(e) { return true; }
288
326
  onThemeChanged(e) { return true; }
289
327
  onZonesChanged(e) { return true; }
290
- onConfigurationChanged(e) {
291
- this._contentLeftObs.set(this._context.configuration.options.get(EditorOption.layoutInfo).contentLeft, undefined);
292
- return true;
328
+ _refreshGlyphRasterizer() {
329
+ const glyphRasterizer = this._glyphRasterizer.value;
330
+ if (!glyphRasterizer) {
331
+ return;
332
+ }
333
+ const fontFamily = this._context.configuration.options.get(EditorOption.fontFamily);
334
+ const fontSize = this._context.configuration.options.get(EditorOption.fontSize);
335
+ const devicePixelRatio = this._viewGpuContext.devicePixelRatio.get();
336
+ if (glyphRasterizer.fontFamily !== fontFamily ||
337
+ glyphRasterizer.fontSize !== fontSize ||
338
+ glyphRasterizer.devicePixelRatio !== devicePixelRatio) {
339
+ this._glyphRasterizer.value = ( new GlyphRasterizer(fontSize, fontFamily, devicePixelRatio));
340
+ }
293
341
  }
294
342
  renderText(viewportData) {
295
343
  if (this._initialized) {
344
+ this._refreshRenderStrategy(viewportData);
296
345
  return this._renderText(viewportData);
297
346
  }
298
347
  else {
@@ -303,22 +352,17 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
303
352
  _renderText(viewportData) {
304
353
  this._viewGpuContext.rectangleRenderer.draw(viewportData);
305
354
  const options = ( new ViewLineOptions(this._context.configuration, this._context.theme.type));
306
- const visibleObjectCount = this._renderStrategy.update(viewportData, options);
355
+ this._renderStrategy.value.update(viewportData, options);
307
356
  this._updateAtlasStorageBufferAndTexture();
308
357
  const encoder = this._device.createCommandEncoder({ label: 'Monaco command encoder' });
309
358
  this._renderPassColorAttachment.view = this._viewGpuContext.ctx.getCurrentTexture().createView({ label: 'Monaco canvas texture view' });
310
359
  const pass = encoder.beginRenderPass(this._renderPassDescriptor);
311
360
  pass.setPipeline(this._pipeline);
312
361
  pass.setVertexBuffer(0, this._vertexBuffer);
313
- const contentLeft = Math.ceil(this._contentLeftObs.get() * this._viewGpuContext.devicePixelRatio.get());
362
+ const contentLeft = Math.ceil(this._viewGpuContext.contentLeft.get() * this._viewGpuContext.devicePixelRatio.get());
314
363
  pass.setScissorRect(contentLeft, 0, this.canvas.width - contentLeft, this.canvas.height);
315
364
  pass.setBindGroup(0, this._bindGroup);
316
- if (this._renderStrategy?.draw) {
317
- this._renderStrategy.draw(pass, viewportData);
318
- }
319
- else {
320
- pass.draw(quadVertices.length / 2, visibleObjectCount);
321
- }
365
+ this._renderStrategy.value.draw(pass, viewportData);
322
366
  pass.end();
323
367
  const commandBuffer = encoder.finish();
324
368
  this._device.queue.submit([commandBuffer]);
@@ -387,9 +431,25 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
387
431
  }
388
432
  const lineData = viewportData.getViewLineRenderingData(lineNumber);
389
433
  const content = lineData.content;
434
+ let contentSegmenter;
435
+ if (!(lineData.isBasicASCII && viewLineOptions.useMonospaceOptimizations)) {
436
+ contentSegmenter = createContentSegmenter(lineData, viewLineOptions);
437
+ }
438
+ let chars = '';
390
439
  let resolvedStartColumn = 0;
440
+ let resolvedStartCssPixelOffset = 0;
391
441
  for (let x = 0; x < startColumn - 1; x++) {
392
- if (content[x] === '\t') {
442
+ if (lineData.isBasicASCII && viewLineOptions.useMonospaceOptimizations) {
443
+ chars = content.charAt(x);
444
+ }
445
+ else {
446
+ chars = contentSegmenter.getSegmentAtIndex(x);
447
+ if (chars === undefined) {
448
+ continue;
449
+ }
450
+ resolvedStartCssPixelOffset += (this._renderStrategy.value.glyphRasterizer.getTextMetrics(chars).width / getActiveWindow().devicePixelRatio) - viewLineOptions.spaceWidth;
451
+ }
452
+ if (chars === '\t') {
393
453
  resolvedStartColumn = CursorColumns.nextRenderTabStop(resolvedStartColumn, lineData.tabSize);
394
454
  }
395
455
  else {
@@ -397,8 +457,19 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
397
457
  }
398
458
  }
399
459
  let resolvedEndColumn = resolvedStartColumn;
460
+ let resolvedEndCssPixelOffset = 0;
400
461
  for (let x = startColumn - 1; x < endColumn - 1; x++) {
401
- if (content[x] === '\t') {
462
+ if (lineData.isBasicASCII && viewLineOptions.useMonospaceOptimizations) {
463
+ chars = content.charAt(x);
464
+ }
465
+ else {
466
+ chars = contentSegmenter.getSegmentAtIndex(x);
467
+ if (chars === undefined) {
468
+ continue;
469
+ }
470
+ resolvedEndCssPixelOffset += (this._renderStrategy.value.glyphRasterizer.getTextMetrics(chars).width / getActiveWindow().devicePixelRatio) - viewLineOptions.spaceWidth;
471
+ }
472
+ if (chars === '\t') {
402
473
  resolvedEndColumn = CursorColumns.nextRenderTabStop(resolvedEndColumn, lineData.tabSize);
403
474
  }
404
475
  else {
@@ -406,8 +477,8 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
406
477
  }
407
478
  }
408
479
  const result = ( new VisibleRanges(false, [( new FloatHorizontalRange(
409
- resolvedStartColumn * viewLineOptions.spaceWidth,
410
- (resolvedEndColumn - resolvedStartColumn) * viewLineOptions.spaceWidth
480
+ resolvedStartColumn * viewLineOptions.spaceWidth + resolvedStartCssPixelOffset,
481
+ (resolvedEndColumn - resolvedStartColumn) * viewLineOptions.spaceWidth + resolvedEndCssPixelOffset
411
482
  ))
412
483
  ]));
413
484
  return result;
@@ -443,26 +514,39 @@ let ViewLinesGpu = class ViewLinesGpu extends ViewPart {
443
514
  }
444
515
  const lineData = this._lastViewportData.getViewLineRenderingData(lineNumber);
445
516
  const content = lineData.content;
446
- let visualColumnTarget = Math.round(mouseContentHorizontalOffset / this._lastViewLineOptions.spaceWidth);
447
- let contentColumn = 0;
448
- let contentColumnWithTabStops = 0;
449
- while (visualColumnTarget > 0) {
450
- let columnWithTabStopsSize = 0;
451
- if (content[contentColumn] === '\t') {
452
- const tabStop = CursorColumns.nextRenderTabStop(contentColumnWithTabStops, lineData.tabSize);
453
- columnWithTabStopsSize = tabStop - contentColumnWithTabStops;
517
+ const dpr = getActiveWindow().devicePixelRatio;
518
+ const mouseContentHorizontalOffsetDevicePixels = mouseContentHorizontalOffset * dpr;
519
+ const spaceWidthDevicePixels = this._lastViewLineOptions.spaceWidth * dpr;
520
+ const contentSegmenter = createContentSegmenter(lineData, this._lastViewLineOptions);
521
+ let widthSoFar = 0;
522
+ let charWidth = 0;
523
+ let tabXOffset = 0;
524
+ let column = 0;
525
+ for (let x = 0; x < content.length; x++) {
526
+ const chars = contentSegmenter.getSegmentAtIndex(x);
527
+ if (chars === undefined) {
528
+ column++;
529
+ continue;
530
+ }
531
+ if (chars === '\t') {
532
+ const offsetBefore = x + tabXOffset;
533
+ tabXOffset = CursorColumns.nextRenderTabStop(x + tabXOffset, lineData.tabSize);
534
+ charWidth = spaceWidthDevicePixels * (tabXOffset - offsetBefore);
535
+ tabXOffset -= x + 1;
536
+ }
537
+ else if (lineData.isBasicASCII && this._lastViewLineOptions.useMonospaceOptimizations) {
538
+ charWidth = spaceWidthDevicePixels;
454
539
  }
455
540
  else {
456
- columnWithTabStopsSize = 1;
541
+ charWidth = this._renderStrategy.value.glyphRasterizer.getTextMetrics(chars).width;
457
542
  }
458
- if (visualColumnTarget - columnWithTabStopsSize / 2 < 0) {
543
+ if (mouseContentHorizontalOffsetDevicePixels < widthSoFar + charWidth / 2) {
459
544
  break;
460
545
  }
461
- visualColumnTarget -= columnWithTabStopsSize;
462
- contentColumn++;
463
- contentColumnWithTabStops += columnWithTabStopsSize;
546
+ widthSoFar += charWidth;
547
+ column++;
464
548
  }
465
- return ( new Position(lineNumber, Math.floor(contentColumn) + 1));
549
+ return ( new Position(lineNumber, column + 1));
466
550
  }
467
551
  };
468
552
  ViewLinesGpu = ( __decorate([
@@ -316,6 +316,7 @@ export interface ICodeEditorWidgetOptions {
316
316
  contributions?: IEditorContributionDescription[];
317
317
  telemetryData?: object;
318
318
  contextMenuId?: MenuId;
319
+ contextKeyValues?: Record<string, ContextKeyValue>;
319
320
  }
320
321
  declare class ModelData {
321
322
  readonly model: ITextModel;
@@ -188,6 +188,11 @@ let CodeEditorWidget = class CodeEditorWidget extends Disposable {
188
188
  }
189
189
  }));
190
190
  this._contextKeyService = this._register(contextKeyService.createScoped(this._domElement));
191
+ if (codeEditorWidgetOptions.contextKeyValues) {
192
+ for (const [key, value] of Object.entries(codeEditorWidgetOptions.contextKeyValues)) {
193
+ this._contextKeyService.createKey(key, value);
194
+ }
195
+ }
191
196
  this._notificationService = notificationService;
192
197
  this._codeEditorService = codeEditorService;
193
198
  this._commandService = commandService;
@@ -7,7 +7,7 @@ import { ILanguageFeaturesService } from "../../../common/services/languageFeatu
7
7
  import { IAccessibilityService } from "../../../../platform/accessibility/common/accessibility.service.js";
8
8
  import { ICommandService } from "../../../../platform/commands/common/commands.service.js";
9
9
  import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js";
10
- import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js";
10
+ import { IInstantiationService, ServicesAccessor } from "../../../../platform/instantiation/common/instantiation.js";
11
11
  import { INotificationService } from "../../../../platform/notification/common/notification.service.js";
12
12
  import { IThemeService } from "../../../../platform/theme/common/themeService.service.js";
13
13
  export declare class EmbeddedCodeEditorWidget extends CodeEditorWidget {
@@ -18,3 +18,4 @@ export declare class EmbeddedCodeEditorWidget extends CodeEditorWidget {
18
18
  private _onParentConfigurationChanged;
19
19
  updateOptions(newOptions: IEditorOptions): void;
20
20
  }
21
+ export declare function getOuterEditor(accessor: ServicesAccessor): ICodeEditor | null;
@@ -43,5 +43,12 @@ EmbeddedCodeEditorWidget = ( __decorate([
43
43
  ( __param(11, ILanguageConfigurationService)),
44
44
  ( __param(12, ILanguageFeaturesService))
45
45
  ], EmbeddedCodeEditorWidget));
46
+ function getOuterEditor(accessor) {
47
+ const editor = accessor.get(ICodeEditorService).getFocusedCodeEditor();
48
+ if (editor instanceof EmbeddedCodeEditorWidget) {
49
+ return editor.getParentEditor();
50
+ }
51
+ return editor;
52
+ }
46
53
 
47
- export { EmbeddedCodeEditorWidget };
54
+ export { EmbeddedCodeEditorWidget, getOuterEditor };
@@ -49,3 +49,4 @@ export declare class AccessibleDiffViewerPrev extends Action2 {
49
49
  }
50
50
  export declare function findDiffEditor(accessor: ServicesAccessor, originalUri: URI, modifiedUri: URI): IDiffEditor | null;
51
51
  export declare function findFocusedDiffEditor(accessor: ServicesAccessor): IDiffEditor | null;
52
+ export declare function findDiffEditorContainingCodeEditor(accessor: ServicesAccessor, editor: ICodeEditor): IDiffEditor | null;
@@ -12,6 +12,7 @@ import { IConfigurationService } from '../../../../platform/configuration/common
12
12
  import { ContextKeyExpr } from '../../../../platform/contextkey/common/contextkey.js';
13
13
  import { KeybindingWeight } from '../../../../platform/keybinding/common/keybindingsRegistry.js';
14
14
  import './registrations.contribution.js';
15
+ import { EditorOption } from '../../../common/config/editorOptions.js';
15
16
 
16
17
  class ToggleCollapseUnchangedRegions extends Action2 {
17
18
  constructor() {
@@ -221,22 +222,26 @@ function findFocusedDiffEditor(accessor) {
221
222
  if (activeElement) {
222
223
  for (const d of diffEditors) {
223
224
  const container = d.getContainerDomNode();
224
- if (isElementOrParentOf(container, activeElement)) {
225
+ if (container.contains(activeElement)) {
225
226
  return d;
226
227
  }
227
228
  }
228
229
  }
229
230
  return null;
230
231
  }
231
- function isElementOrParentOf(elementOrParent, element) {
232
- let e = element;
233
- while (e) {
234
- if (e === elementOrParent) {
235
- return true;
232
+ function findDiffEditorContainingCodeEditor(accessor, editor) {
233
+ if (!editor.getOption(EditorOption.inDiffEditor)) {
234
+ return null;
235
+ }
236
+ const codeEditorService = accessor.get(ICodeEditorService);
237
+ for (const diffEditor of codeEditorService.listDiffEditors()) {
238
+ const originalEditor = diffEditor.getOriginalEditor();
239
+ const modifiedEditor = diffEditor.getModifiedEditor();
240
+ if (originalEditor === editor || modifiedEditor === editor) {
241
+ return diffEditor;
236
242
  }
237
- e = e.parentElement;
238
243
  }
239
- return false;
244
+ return null;
240
245
  }
241
246
 
242
- export { AccessibleDiffViewerNext, AccessibleDiffViewerPrev, CollapseAllUnchangedRegions, ExitCompareMove, RevertHunkOrSelection, ShowAllUnchangedRegions, SwitchSide, ToggleCollapseUnchangedRegions, ToggleShowMovedCodeBlocks, ToggleUseInlineViewWhenSpaceIsLimited, findDiffEditor, findFocusedDiffEditor };
247
+ export { AccessibleDiffViewerNext, AccessibleDiffViewerPrev, CollapseAllUnchangedRegions, ExitCompareMove, RevertHunkOrSelection, ShowAllUnchangedRegions, SwitchSide, ToggleCollapseUnchangedRegions, ToggleShowMovedCodeBlocks, ToggleUseInlineViewWhenSpaceIsLimited, findDiffEditor, findDiffEditorContainingCodeEditor, findFocusedDiffEditor };
@@ -7,30 +7,32 @@ import { IContentSizeChangedEvent } from "../../../../common/editorCommon.js";
7
7
  import { IInstantiationService } from "../../../../../platform/instantiation/common/instantiation.js";
8
8
  import { IKeybindingService } from "../../../../../platform/keybinding/common/keybinding.service.js";
9
9
  import { DiffEditorOptions } from "../diffEditorOptions.js";
10
+ import { IContextKeyService } from "../../../../../platform/contextkey/common/contextkey.service.js";
10
11
  export declare class DiffEditorEditors extends Disposable {
11
12
  private readonly originalEditorElement;
12
13
  private readonly modifiedEditorElement;
13
14
  private readonly _options;
14
15
  private _argCodeEditorWidgetOptions;
15
16
  private readonly _createInnerEditor;
17
+ private readonly _contextKeyService;
16
18
  private readonly _instantiationService;
17
19
  private readonly _keybindingService;
18
20
  readonly original: CodeEditorWidget;
19
21
  readonly modified: CodeEditorWidget;
20
22
  private readonly _onDidContentSizeChange;
21
23
  get onDidContentSizeChange(): import("../../../../../base/common/event.js").Event<IContentSizeChangedEvent>;
22
- readonly modifiedScrollTop: import("../../../../../base/common/observable.js").IObservable<number, unknown>;
23
- readonly modifiedScrollHeight: import("../../../../../base/common/observable.js").IObservable<number, unknown>;
24
+ readonly modifiedScrollTop: import("../../../../../base/common/observable.js").IObservable<number>;
25
+ readonly modifiedScrollHeight: import("../../../../../base/common/observable.js").IObservable<number>;
24
26
  readonly modifiedObs: import("../../../observableCodeEditor.js").ObservableCodeEditor;
25
27
  readonly originalObs: import("../../../observableCodeEditor.js").ObservableCodeEditor;
26
- readonly modifiedModel: import("../../../../../base/common/observable.js").IObservable<import("../../../../common/model.js").ITextModel | null, unknown>;
27
- readonly modifiedSelections: import("../../../../../base/common/observable.js").IObservable<import("../../../../common/core/selection.js").Selection[], unknown>;
28
- readonly modifiedCursor: import("../../../../../base/common/observable.js").IObservable<Position, unknown>;
29
- readonly originalCursor: import("../../../../../base/common/observable.js").IObservable<Position, unknown>;
30
- readonly isOriginalFocused: import("../../../../../base/common/observable.js").IObservable<boolean, unknown>;
31
- readonly isModifiedFocused: import("../../../../../base/common/observable.js").IObservable<boolean, unknown>;
32
- readonly isFocused: import("../../../../../base/common/observable.js").IObservable<boolean, unknown>;
33
- constructor(originalEditorElement: HTMLElement, modifiedEditorElement: HTMLElement, _options: DiffEditorOptions, _argCodeEditorWidgetOptions: IDiffCodeEditorWidgetOptions, _createInnerEditor: (instantiationService: IInstantiationService, container: HTMLElement, options: Readonly<IEditorOptions>, editorWidgetOptions: ICodeEditorWidgetOptions) => CodeEditorWidget, _instantiationService: IInstantiationService, _keybindingService: IKeybindingService);
28
+ readonly modifiedModel: import("../../../../../base/common/observable.js").IObservable<import("../../../../common/model.js").ITextModel | null>;
29
+ readonly modifiedSelections: import("../../../../../base/common/observable.js").IObservable<import("../../../../common/core/selection.js").Selection[]>;
30
+ readonly modifiedCursor: import("../../../../../base/common/observable.js").IObservable<Position>;
31
+ readonly originalCursor: import("../../../../../base/common/observable.js").IObservable<Position>;
32
+ readonly isOriginalFocused: import("../../../../../base/common/observable.js").IObservable<boolean>;
33
+ readonly isModifiedFocused: import("../../../../../base/common/observable.js").IObservable<boolean>;
34
+ readonly isFocused: import("../../../../../base/common/observable.js").IObservable<boolean>;
35
+ constructor(originalEditorElement: HTMLElement, modifiedEditorElement: HTMLElement, _options: DiffEditorOptions, _argCodeEditorWidgetOptions: IDiffCodeEditorWidgetOptions, _createInnerEditor: (instantiationService: IInstantiationService, container: HTMLElement, options: Readonly<IEditorOptions>, editorWidgetOptions: ICodeEditorWidgetOptions) => CodeEditorWidget, _contextKeyService: IContextKeyService, _instantiationService: IInstantiationService, _keybindingService: IKeybindingService);
34
36
  private _createLeftHandSideEditor;
35
37
  private _createRightHandSideEditor;
36
38
  private _constructInnerEditor;
@@ -14,16 +14,18 @@ import { Position } from '../../../../common/core/position.js';
14
14
  import { localize } from '../../../../../nls.js';
15
15
  import { IInstantiationService } from '../../../../../platform/instantiation/common/instantiation.js';
16
16
  import { IKeybindingService } from '../../../../../platform/keybinding/common/keybinding.service.js';
17
+ import { IContextKeyService } from '../../../../../platform/contextkey/common/contextkey.service.js';
17
18
 
18
19
  let DiffEditorEditors = class DiffEditorEditors extends Disposable {
19
20
  get onDidContentSizeChange() { return this._onDidContentSizeChange.event; }
20
- constructor(originalEditorElement, modifiedEditorElement, _options, _argCodeEditorWidgetOptions, _createInnerEditor, _instantiationService, _keybindingService) {
21
+ constructor(originalEditorElement, modifiedEditorElement, _options, _argCodeEditorWidgetOptions, _createInnerEditor, _contextKeyService, _instantiationService, _keybindingService) {
21
22
  super();
22
23
  this.originalEditorElement = originalEditorElement;
23
24
  this.modifiedEditorElement = modifiedEditorElement;
24
25
  this._options = _options;
25
26
  this._argCodeEditorWidgetOptions = _argCodeEditorWidgetOptions;
26
27
  this._createInnerEditor = _createInnerEditor;
28
+ this._contextKeyService = _contextKeyService;
27
29
  this._instantiationService = _instantiationService;
28
30
  this._keybindingService = _keybindingService;
29
31
  this.original = this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(), this._argCodeEditorWidgetOptions.originalEditor || {}));
@@ -59,13 +61,17 @@ let DiffEditorEditors = class DiffEditorEditors extends Disposable {
59
61
  _createLeftHandSideEditor(options, codeEditorWidgetOptions) {
60
62
  const leftHandSideOptions = this._adjustOptionsForLeftHandSide(undefined, options);
61
63
  const editor = this._constructInnerEditor(this._instantiationService, this.originalEditorElement, leftHandSideOptions, codeEditorWidgetOptions);
62
- editor.setContextValue('isInDiffLeftEditor', true);
64
+ const isInDiffLeftEditorKey = this._contextKeyService.createKey('isInDiffLeftEditor', editor.hasWidgetFocus());
65
+ this._register(editor.onDidFocusEditorWidget(() => isInDiffLeftEditorKey.set(true)));
66
+ this._register(editor.onDidBlurEditorWidget(() => isInDiffLeftEditorKey.set(false)));
63
67
  return editor;
64
68
  }
65
69
  _createRightHandSideEditor(options, codeEditorWidgetOptions) {
66
70
  const rightHandSideOptions = this._adjustOptionsForRightHandSide(undefined, options);
67
71
  const editor = this._constructInnerEditor(this._instantiationService, this.modifiedEditorElement, rightHandSideOptions, codeEditorWidgetOptions);
68
- editor.setContextValue('isInDiffRightEditor', true);
72
+ const isInDiffRightEditorKey = this._contextKeyService.createKey('isInDiffRightEditor', editor.hasWidgetFocus());
73
+ this._register(editor.onDidFocusEditorWidget(() => isInDiffRightEditorKey.set(true)));
74
+ this._register(editor.onDidBlurEditorWidget(() => isInDiffRightEditorKey.set(false)));
69
75
  return editor;
70
76
  }
71
77
  _constructInnerEditor(instantiationService, container, options, editorWidgetOptions) {
@@ -159,8 +165,9 @@ let DiffEditorEditors = class DiffEditorEditors extends Disposable {
159
165
  }
160
166
  };
161
167
  DiffEditorEditors = ( __decorate([
162
- ( __param(5, IInstantiationService)),
163
- ( __param(6, IKeybindingService))
168
+ ( __param(5, IContextKeyService)),
169
+ ( __param(6, IInstantiationService)),
170
+ ( __param(7, IKeybindingService))
164
171
  ], DiffEditorEditors));
165
172
 
166
173
  export { DiffEditorEditors };
@@ -29,5 +29,5 @@ export declare class DiffEditorSash extends Disposable {
29
29
  constructor(_domNode: HTMLElement, _dimensions: {
30
30
  height: IObservable<number>;
31
31
  width: IObservable<number>;
32
- }, _enabled: IObservable<boolean>, _boundarySashes: IObservable<IBoundarySashes | undefined, void>, sashLeft: ISettableObservable<number>, _resetSash: () => void);
32
+ }, _enabled: IObservable<boolean>, _boundarySashes: IObservable<IBoundarySashes | undefined>, sashLeft: ISettableObservable<number>, _resetSash: () => void);
33
33
  }
@@ -4,7 +4,7 @@ import { FontInfo } from "../../../../../common/config/fontInfo.js";
4
4
  import { ModelLineProjectionData } from "../../../../../common/modelLineProjectionData.js";
5
5
  import { LineTokens } from "../../../../../common/tokens/lineTokens.js";
6
6
  import { InlineDecoration } from "../../../../../common/viewModel.js";
7
- export declare function renderLines(source: LineSource, options: RenderOptions, decorations: InlineDecoration[], domNode: HTMLElement): RenderLinesResult;
7
+ export declare function renderLines(source: LineSource, options: RenderOptions, decorations: InlineDecoration[], domNode: HTMLElement, noExtra?: boolean): RenderLinesResult;
8
8
  export declare class LineSource {
9
9
  readonly lineTokens: LineTokens[];
10
10
  readonly lineBreakData: (ModelLineProjectionData | null)[];
@@ -24,8 +24,10 @@ export declare class RenderOptions {
24
24
  readonly renderWhitespace: FindComputedEditorOptionValueById<EditorOption.renderWhitespace>;
25
25
  readonly renderControlCharacters: boolean;
26
26
  readonly fontLigatures: FindComputedEditorOptionValueById<EditorOption.fontLigatures>;
27
+ readonly setWidth: boolean;
27
28
  static fromEditor(editor: ICodeEditor): RenderOptions;
28
- constructor(tabSize: number, fontInfo: FontInfo, disableMonospaceOptimizations: boolean, typicalHalfwidthCharacterWidth: number, scrollBeyondLastColumn: number, lineHeight: number, lineDecorationsWidth: number, stopRenderingLineAfter: number, renderWhitespace: FindComputedEditorOptionValueById<EditorOption.renderWhitespace>, renderControlCharacters: boolean, fontLigatures: FindComputedEditorOptionValueById<EditorOption.fontLigatures>);
29
+ constructor(tabSize: number, fontInfo: FontInfo, disableMonospaceOptimizations: boolean, typicalHalfwidthCharacterWidth: number, scrollBeyondLastColumn: number, lineHeight: number, lineDecorationsWidth: number, stopRenderingLineAfter: number, renderWhitespace: FindComputedEditorOptionValueById<EditorOption.renderWhitespace>, renderControlCharacters: boolean, fontLigatures: FindComputedEditorOptionValueById<EditorOption.fontLigatures>, setWidth?: boolean);
30
+ withSetWidth(setWidth: boolean): RenderOptions;
29
31
  }
30
32
  export interface RenderLinesResult {
31
33
  minWidthInPx: number;