@codingame/monaco-vscode-api 10.1.4 → 11.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2020) hide show
  1. package/_virtual/semver.js +2 -0
  2. package/_virtual/semver2.js +1 -0
  3. package/api.js +15 -8
  4. package/assets.js +2 -0
  5. package/extensions.d.ts +1 -1
  6. package/extensions.js +4 -2
  7. package/external/rollup-plugin-styles/dist/runtime/inject-css.js +1 -0
  8. package/external/tslib/tslib.es6.js +1 -0
  9. package/external/vscode-semver/semver.js +2 -0
  10. package/l10n.js +2 -0
  11. package/lifecycle.js +2 -0
  12. package/localExtensionHost.js +2 -1
  13. package/missing-services.js +69 -4
  14. package/monaco.js +4 -2
  15. package/override/vs/workbench/browser/parts/editor/textEditor.js +2 -0
  16. package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +1 -0
  17. package/package.json +9 -9
  18. package/service-override/terminal.d.ts +2 -0
  19. package/service-override/tools/editor.js +4 -2
  20. package/service-override/tools/url.js +1 -0
  21. package/service-override/tools/views.js +2 -0
  22. package/services.js +4 -3
  23. package/tools/injection.js +2 -0
  24. package/tools.js +1 -0
  25. package/vscode/src/vs/amdX.js +172 -0
  26. package/vscode/src/vs/base/browser/broadcast.js +2 -0
  27. package/vscode/src/vs/base/browser/browser.js +2 -0
  28. package/vscode/src/vs/base/browser/canIUse.js +2 -0
  29. package/vscode/src/vs/base/browser/cssValue.js +27 -0
  30. package/vscode/src/vs/base/browser/defaultWorkerFactory.js +15 -16
  31. package/vscode/src/vs/base/browser/deviceAccess.js +1 -0
  32. package/vscode/src/vs/base/browser/dnd.js +2 -0
  33. package/vscode/src/vs/base/browser/dom.js +10 -31
  34. package/vscode/src/vs/base/browser/domObservable.js +2 -0
  35. package/vscode/src/vs/base/browser/dompurify/dompurify.js +884 -829
  36. package/vscode/src/vs/base/browser/event.js +2 -0
  37. package/vscode/src/vs/base/browser/fastDomNode.js +1 -0
  38. package/vscode/src/vs/base/browser/fonts.js +2 -0
  39. package/vscode/src/vs/base/browser/formattedTextRenderer.js +2 -0
  40. package/vscode/src/vs/base/browser/globalPointerMoveMonitor.js +2 -0
  41. package/vscode/src/vs/base/browser/iframe.js +1 -0
  42. package/vscode/src/vs/base/browser/indexedDB.js +2 -0
  43. package/vscode/src/vs/base/browser/keyboardEvent.js +2 -0
  44. package/vscode/src/vs/base/browser/markdownRenderer.js +26 -19
  45. package/vscode/src/vs/base/browser/mouseEvent.js +2 -0
  46. package/vscode/src/vs/base/browser/performance.js +1 -0
  47. package/vscode/src/vs/base/browser/pixelRatio.js +4 -2
  48. package/vscode/src/vs/base/browser/touch.js +2 -0
  49. package/vscode/src/vs/base/browser/trustedTypes.js +2 -0
  50. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +4 -2
  51. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css.js +2 -0
  52. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +3 -1
  53. package/vscode/src/vs/base/browser/ui/aria/aria.css.js +2 -0
  54. package/vscode/src/vs/base/browser/ui/aria/aria.js +2 -0
  55. package/vscode/src/vs/base/browser/ui/button/button.css.js +2 -0
  56. package/vscode/src/vs/base/browser/ui/button/button.js +10 -6
  57. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon-modifiers.css.js +2 -0
  58. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +3 -1
  59. package/vscode/src/vs/base/browser/ui/contextview/contextview.css.js +2 -0
  60. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +6 -4
  61. package/vscode/src/vs/base/browser/ui/countBadge/countBadge.css.js +2 -0
  62. package/vscode/src/vs/base/browser/ui/countBadge/countBadge.js +2 -0
  63. package/vscode/src/vs/base/browser/ui/dialog/dialog.css.js +2 -0
  64. package/vscode/src/vs/base/browser/ui/dialog/dialog.js +8 -6
  65. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.css.js +2 -0
  66. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +2 -0
  67. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +4 -2
  68. package/vscode/src/vs/base/browser/ui/findinput/findInput.css.js +2 -0
  69. package/vscode/src/vs/base/browser/ui/findinput/findInput.js +3 -1
  70. package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +5 -3
  71. package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +4 -2
  72. package/vscode/src/vs/base/browser/ui/highlightedlabel/highlightedLabel.js +2 -0
  73. package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +1 -0
  74. package/vscode/src/vs/base/browser/ui/hover/hoverDelegateFactory.js +2 -0
  75. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +2 -0
  76. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +5 -3
  77. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +13 -3
  78. package/vscode/src/vs/base/browser/ui/iconLabel/iconLabels.js +2 -0
  79. package/vscode/src/vs/base/browser/ui/iconLabel/iconlabel.css.js +2 -0
  80. package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +2 -0
  81. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +2 -0
  82. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +5 -3
  83. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.css.js +2 -0
  84. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +10 -7
  85. package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.css.js +2 -0
  86. package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +4 -2
  87. package/vscode/src/vs/base/browser/ui/list/list.css.js +2 -0
  88. package/vscode/src/vs/base/browser/ui/list/list.js +1 -0
  89. package/vscode/src/vs/base/browser/ui/list/listPaging.js +2 -0
  90. package/vscode/src/vs/base/browser/ui/list/listView.js +3 -1
  91. package/vscode/src/vs/base/browser/ui/list/listWidget.js +6 -3
  92. package/vscode/src/vs/base/browser/ui/list/rangeMap.js +2 -0
  93. package/vscode/src/vs/base/browser/ui/list/rowCache.js +2 -0
  94. package/vscode/src/vs/base/browser/ui/list/splice.js +1 -0
  95. package/vscode/src/vs/base/browser/ui/menu/menu.js +2 -0
  96. package/vscode/src/vs/base/browser/ui/menu/menubar.css.js +2 -0
  97. package/vscode/src/vs/base/browser/ui/menu/menubar.js +5 -3
  98. package/vscode/src/vs/base/browser/ui/mouseCursor/mouseCursor.css.js +2 -0
  99. package/vscode/src/vs/base/browser/ui/mouseCursor/mouseCursor.js +2 -0
  100. package/vscode/src/vs/base/browser/ui/progressbar/progressAccessibilitySignal.js +1 -0
  101. package/vscode/src/vs/base/browser/ui/progressbar/progressbar.css.js +2 -0
  102. package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +2 -0
  103. package/vscode/src/vs/base/browser/ui/resizable/resizable.js +2 -0
  104. package/vscode/src/vs/base/browser/ui/sash/sash.css.js +2 -0
  105. package/vscode/src/vs/base/browser/ui/sash/sash.js +5 -3
  106. package/vscode/src/vs/base/browser/ui/scrollbar/abstractScrollbar.js +2 -0
  107. package/vscode/src/vs/base/browser/ui/scrollbar/horizontalScrollbar.js +2 -0
  108. package/vscode/src/vs/base/browser/ui/scrollbar/media/scrollbars.css.js +2 -0
  109. package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +2 -0
  110. package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarArrow.js +2 -0
  111. package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarState.js +1 -0
  112. package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarVisibilityController.js +2 -0
  113. package/vscode/src/vs/base/browser/ui/scrollbar/verticalScrollbar.js +2 -0
  114. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.css.js +2 -0
  115. package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +2 -0
  116. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.css.js +2 -0
  117. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +5 -2
  118. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxNative.js +2 -0
  119. package/vscode/src/vs/base/browser/ui/splitview/paneview.css.js +2 -0
  120. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +4 -2
  121. package/vscode/src/vs/base/browser/ui/splitview/splitview.css.js +2 -0
  122. package/vscode/src/vs/base/browser/ui/splitview/splitview.js +2 -0
  123. package/vscode/src/vs/base/browser/ui/table/table.css.js +2 -0
  124. package/vscode/src/vs/base/browser/ui/table/tableWidget.js +4 -2
  125. package/vscode/src/vs/base/browser/ui/toggle/toggle.css.js +2 -0
  126. package/vscode/src/vs/base/browser/ui/toggle/toggle.js +2 -0
  127. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.css.js +2 -0
  128. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +4 -2
  129. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +76 -34
  130. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +31 -33
  131. package/vscode/src/vs/base/browser/ui/tree/compressedObjectTreeModel.js +3 -1
  132. package/vscode/src/vs/base/browser/ui/tree/dataTree.js +2 -0
  133. package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +7 -5
  134. package/vscode/src/vs/base/browser/ui/tree/media/tree.css.js +2 -0
  135. package/vscode/src/vs/base/browser/ui/tree/objectTree.js +2 -0
  136. package/vscode/src/vs/base/browser/ui/tree/objectTreeModel.js +3 -1
  137. package/vscode/src/vs/base/browser/ui/tree/tree.js +1 -0
  138. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +3 -1
  139. package/vscode/src/vs/base/browser/ui/widget.js +3 -1
  140. package/vscode/src/vs/base/browser/window.js +1 -0
  141. package/vscode/src/vs/base/common/actions.js +3 -1
  142. package/vscode/src/vs/base/common/arrays.js +2 -0
  143. package/vscode/src/vs/base/common/arraysFind.js +1 -0
  144. package/vscode/src/vs/base/common/assert.js +3 -1
  145. package/vscode/src/vs/base/common/async.js +5 -3
  146. package/vscode/src/vs/base/common/buffer.js +3 -1
  147. package/vscode/src/vs/base/common/cache.js +2 -0
  148. package/vscode/src/vs/base/common/cancellation.js +2 -0
  149. package/vscode/src/vs/base/common/codicons.d.ts +3 -0
  150. package/vscode/src/vs/base/common/codicons.js +2 -0
  151. package/vscode/src/vs/base/common/codiconsLibrary.js +5 -0
  152. package/vscode/src/vs/base/common/codiconsUtil.js +2 -0
  153. package/vscode/src/vs/base/common/collections.js +1 -0
  154. package/vscode/src/vs/base/common/color.js +1 -0
  155. package/vscode/src/vs/base/common/comparers.js +2 -0
  156. package/vscode/src/vs/base/common/controlFlow.js +2 -0
  157. package/vscode/src/vs/base/common/dataTransfer.js +2 -0
  158. package/vscode/src/vs/base/common/date.js +63 -61
  159. package/vscode/src/vs/base/common/decorators.js +3 -2
  160. package/vscode/src/vs/base/common/diff/diff.js +2 -0
  161. package/vscode/src/vs/base/common/diff/diffChange.js +1 -0
  162. package/vscode/src/vs/base/common/equals.js +2 -0
  163. package/vscode/src/vs/base/common/errorMessage.js +8 -6
  164. package/vscode/src/vs/base/common/errors.js +1 -0
  165. package/vscode/src/vs/base/common/event.js +5 -2
  166. package/vscode/src/vs/base/common/extpath.js +2 -0
  167. package/vscode/src/vs/base/common/filters.js +2 -0
  168. package/vscode/src/vs/base/common/functional.js +1 -0
  169. package/vscode/src/vs/base/common/fuzzyScorer.js +3 -1
  170. package/vscode/src/vs/base/common/glob.js +3 -1
  171. package/vscode/src/vs/base/common/hash.js +22 -24
  172. package/vscode/src/vs/base/common/hierarchicalKind.js +1 -0
  173. package/vscode/src/vs/base/common/history.js +2 -0
  174. package/vscode/src/vs/base/common/hotReloadHelpers.js +2 -0
  175. package/vscode/src/vs/base/common/htmlContent.js +2 -0
  176. package/vscode/src/vs/base/common/iconLabels.js +2 -0
  177. package/vscode/src/vs/base/common/idGenerator.js +1 -0
  178. package/vscode/src/vs/base/common/ime.js +2 -0
  179. package/vscode/src/vs/base/common/iterator.js +4 -0
  180. package/vscode/src/vs/base/common/json.js +1 -0
  181. package/vscode/src/vs/base/common/jsonEdit.js +2 -0
  182. package/vscode/src/vs/base/common/jsonErrorMessages.js +11 -9
  183. package/vscode/src/vs/base/common/jsonFormatter.js +2 -0
  184. package/vscode/src/vs/base/common/jsonSchema.js +1 -0
  185. package/vscode/src/vs/base/common/keyCodes.js +1 -0
  186. package/vscode/src/vs/base/common/keybindingLabels.js +22 -20
  187. package/vscode/src/vs/base/common/keybindingParser.js +3 -1
  188. package/vscode/src/vs/base/common/keybindings.js +2 -0
  189. package/vscode/src/vs/base/common/labels.js +4 -2
  190. package/vscode/src/vs/base/common/lazy.js +1 -0
  191. package/vscode/src/vs/base/common/lifecycle.js +2 -0
  192. package/vscode/src/vs/base/common/linkedList.js +1 -0
  193. package/vscode/src/vs/base/common/linkedText.js +2 -0
  194. package/vscode/src/vs/base/common/map.js +1 -0
  195. package/vscode/src/vs/base/common/marshalling.js +2 -0
  196. package/vscode/src/vs/base/common/mime.js +2 -0
  197. package/vscode/src/vs/base/common/naturalLanguage/korean.js +1 -0
  198. package/vscode/src/vs/base/common/navigator.js +1 -0
  199. package/vscode/src/vs/base/common/network.js +5 -2
  200. package/vscode/src/vs/base/common/numbers.js +1 -0
  201. package/vscode/src/vs/base/common/objects.js +3 -1
  202. package/vscode/src/vs/base/common/observableInternal/api.js +2 -0
  203. package/vscode/src/vs/base/common/observableInternal/autorun.js +12 -2
  204. package/vscode/src/vs/base/common/observableInternal/base.js +2 -0
  205. package/vscode/src/vs/base/common/observableInternal/debugName.js +1 -0
  206. package/vscode/src/vs/base/common/observableInternal/derived.js +43 -12
  207. package/vscode/src/vs/base/common/observableInternal/lazyObservableValue.js +2 -0
  208. package/vscode/src/vs/base/common/observableInternal/logging.js +1 -0
  209. package/vscode/src/vs/base/common/observableInternal/promise.js +2 -0
  210. package/vscode/src/vs/base/common/observableInternal/utils.js +4 -2
  211. package/vscode/src/vs/base/common/observableInternal/utilsCancellation.js +2 -0
  212. package/vscode/src/vs/base/common/path.js +3 -1
  213. package/vscode/src/vs/base/common/performance.d.ts +2 -8
  214. package/vscode/src/vs/base/common/performance.js +66 -78
  215. package/vscode/src/vs/base/common/platform.js +6 -1
  216. package/vscode/src/vs/base/common/prefixTree.js +2 -0
  217. package/vscode/src/vs/base/common/process.js +2 -0
  218. package/vscode/src/vs/base/common/product.d.ts +7 -0
  219. package/vscode/src/vs/base/common/range.js +1 -0
  220. package/vscode/src/vs/base/common/resourceTree.js +2 -0
  221. package/vscode/src/vs/base/common/resources.js +2 -0
  222. package/vscode/src/vs/base/common/scrollable.js +2 -0
  223. package/vscode/src/vs/base/common/search.js +2 -0
  224. package/vscode/src/vs/base/common/severity.js +2 -0
  225. package/vscode/src/vs/base/common/skipList.js +1 -0
  226. package/vscode/src/vs/base/common/stopwatch.js +1 -0
  227. package/vscode/src/vs/base/common/stream.js +3 -1
  228. package/vscode/src/vs/base/common/strings.js +6 -1
  229. package/vscode/src/vs/base/common/symbols.js +1 -0
  230. package/vscode/src/vs/base/common/ternarySearchTree.js +2 -0
  231. package/vscode/src/vs/base/common/tfIdf.js +1 -0
  232. package/vscode/src/vs/base/common/themables.js +2 -0
  233. package/vscode/src/vs/base/common/types.js +5 -1
  234. package/vscode/src/vs/base/common/uint.js +1 -0
  235. package/vscode/src/vs/base/common/uri.js +2 -0
  236. package/vscode/src/vs/base/common/uriIpc.js +2 -0
  237. package/vscode/src/vs/base/common/uuid.js +1 -0
  238. package/vscode/src/vs/base/common/verifier.js +2 -0
  239. package/vscode/src/vs/base/common/worker/simpleWorker.js +6 -4
  240. package/vscode/src/vs/base/common/worker/simpleWorkerBootstrap.js +2 -0
  241. package/vscode/src/vs/base/parts/ipc/common/ipc.js +28 -11
  242. package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +2 -0
  243. package/vscode/src/vs/base/parts/request/common/request.js +1 -0
  244. package/vscode/src/vs/base/parts/storage/common/storage.js +2 -0
  245. package/vscode/src/vs/editor/browser/config/charWidthReader.js +2 -0
  246. package/vscode/src/vs/editor/browser/config/domFontInfo.js +2 -0
  247. package/vscode/src/vs/editor/browser/config/editorConfiguration.js +2 -0
  248. package/vscode/src/vs/editor/browser/config/elementSizeObserver.js +2 -0
  249. package/vscode/src/vs/editor/browser/config/fontMeasurements.js +3 -1
  250. package/vscode/src/vs/editor/browser/config/migrateOptions.js +1 -0
  251. package/vscode/src/vs/editor/browser/config/tabFocus.js +2 -0
  252. package/vscode/src/vs/editor/browser/controller/editContext/clipboardUtils.js +2 -0
  253. package/vscode/src/vs/editor/browser/controller/editContext/{editContextUtils.js → editContext.js} +2 -0
  254. package/vscode/src/vs/editor/browser/controller/editContext/native/editContextFactory.js +13 -0
  255. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.css.js +3 -1
  256. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +74 -19
  257. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js +2 -0
  258. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +15 -9
  259. package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +7 -4
  260. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.css.js +2 -0
  261. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +15 -15
  262. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +5 -1
  263. package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextState.js +10 -0
  264. package/vscode/src/vs/editor/browser/controller/mouseHandler.js +6 -4
  265. package/vscode/src/vs/editor/browser/controller/mouseTarget.js +3 -1
  266. package/vscode/src/vs/editor/browser/controller/pointerHandler.js +2 -0
  267. package/vscode/src/vs/editor/browser/coreCommands.js +6 -4
  268. package/vscode/src/vs/editor/browser/dnd.js +7 -4
  269. package/vscode/src/vs/editor/browser/editorBrowser.js +2 -0
  270. package/vscode/src/vs/editor/browser/editorDom.js +4 -2
  271. package/vscode/src/vs/editor/browser/editorExtensions.js +9 -7
  272. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +2 -0
  273. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.js +2 -0
  274. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasShelfAllocator.js +2 -0
  275. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasSlabAllocator.js +2 -0
  276. package/vscode/src/vs/editor/browser/gpu/bufferDirtyTracker.js +1 -0
  277. package/vscode/src/vs/editor/browser/gpu/fullFileRenderStrategy.js +2 -0
  278. package/vscode/src/vs/editor/browser/gpu/fullFileRenderStrategy.wgsl.js +1 -0
  279. package/vscode/src/vs/editor/browser/gpu/gpuDisposable.js +2 -0
  280. package/vscode/src/vs/editor/browser/gpu/gpuUtils.js +2 -0
  281. package/vscode/src/vs/editor/browser/gpu/objectCollectionBuffer.js +2 -0
  282. package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +2 -0
  283. package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.js +2 -0
  284. package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.wgsl.js +1 -0
  285. package/vscode/src/vs/editor/browser/gpu/taskQueue.js +2 -0
  286. package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +3 -1
  287. package/vscode/src/vs/editor/browser/observableCodeEditor.js +3 -1
  288. package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +4 -1
  289. package/vscode/src/vs/editor/browser/services/bulkEditService.js +2 -0
  290. package/vscode/src/vs/editor/browser/services/codeEditorService.js +2 -0
  291. package/vscode/src/vs/editor/browser/services/editorWorkerService.js +2 -0
  292. package/vscode/src/vs/editor/browser/services/hoverService/hover.css.js +2 -0
  293. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +4 -2
  294. package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +4 -2
  295. package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +3 -1
  296. package/vscode/src/vs/editor/browser/services/markerDecorations.js +2 -0
  297. package/vscode/src/vs/editor/browser/services/openerService.js +3 -1
  298. package/vscode/src/vs/editor/browser/stableEditorScroll.js +1 -0
  299. package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +2 -0
  300. package/vscode/src/vs/editor/browser/view/dynamicViewOverlay.js +2 -0
  301. package/vscode/src/vs/editor/browser/view/renderingContext.js +1 -0
  302. package/vscode/src/vs/editor/browser/view/viewController.js +4 -2
  303. package/vscode/src/vs/editor/browser/view/viewLayer.js +2 -0
  304. package/vscode/src/vs/editor/browser/view/viewOverlays.js +2 -0
  305. package/vscode/src/vs/editor/browser/view/viewPart.js +2 -0
  306. package/vscode/src/vs/editor/browser/view/viewUserInputEvents.js +2 -0
  307. package/vscode/src/vs/editor/browser/view.js +14 -6
  308. package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.css.js +2 -0
  309. package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +2 -0
  310. package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +4 -2
  311. package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.css.js +2 -0
  312. package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +2 -0
  313. package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.css.js +2 -0
  314. package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.js +2 -0
  315. package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +6 -4
  316. package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.css.js +2 -0
  317. package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +4 -2
  318. package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.css.js +2 -0
  319. package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.js +2 -0
  320. package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.css.js +2 -0
  321. package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +4 -2
  322. package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.css.js +2 -0
  323. package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -0
  324. package/vscode/src/vs/editor/browser/viewParts/margin/margin.css.js +2 -0
  325. package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +2 -0
  326. package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.css.js +2 -0
  327. package/vscode/src/vs/editor/browser/viewParts/marginDecorations/marginDecorations.js +2 -0
  328. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css.js +2 -0
  329. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +7 -5
  330. package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRenderer.js +2 -0
  331. package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRendererFactory.js +2 -0
  332. package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharSheet.js +1 -0
  333. package/vscode/src/vs/editor/browser/viewParts/minimap/minimapPreBaked.js +2 -0
  334. package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.css.js +2 -0
  335. package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +2 -0
  336. package/vscode/src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +4 -2
  337. package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +5 -3
  338. package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.css.js +2 -0
  339. package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.js +2 -0
  340. package/vscode/src/vs/editor/browser/viewParts/rulersGpu/rulersGpu.js +2 -0
  341. package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.css.js +2 -0
  342. package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +2 -0
  343. package/vscode/src/vs/editor/browser/viewParts/selections/selections.css.js +2 -0
  344. package/vscode/src/vs/editor/browser/viewParts/selections/selections.js +2 -0
  345. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +4 -2
  346. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.css.js +2 -0
  347. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +2 -0
  348. package/vscode/src/vs/editor/browser/viewParts/viewLines/domReadingContext.js +1 -0
  349. package/vscode/src/vs/editor/browser/viewParts/viewLines/rangeUtil.js +2 -0
  350. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +4 -2
  351. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +2 -1
  352. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.css.js +2 -0
  353. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +4 -2
  354. package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +3 -1
  355. package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +5 -3
  356. package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.css.js +2 -0
  357. package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +3 -1
  358. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorContributions.js +2 -0
  359. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +6 -4
  360. package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +2 -0
  361. package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +2 -0
  362. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +14 -12
  363. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css.js +2 -0
  364. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +17 -15
  365. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +2 -0
  366. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +3 -1
  367. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +2 -0
  368. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +10 -8
  369. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +10 -8
  370. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +3 -1
  371. package/vscode/src/vs/editor/browser/widget/diffEditor/delegatingEditorImpl.js +2 -0
  372. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +7 -6
  373. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +2 -0
  374. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +5 -1
  375. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +4 -1
  376. package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +2 -0
  377. package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.js +2 -0
  378. package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +2 -0
  379. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +12 -10
  380. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +9 -7
  381. package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +3 -1
  382. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +4 -2
  383. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +7 -5
  384. package/vscode/src/vs/editor/browser/widget/diffEditor/style.css.js +2 -0
  385. package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +2 -0
  386. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +4 -2
  387. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +2 -0
  388. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/renderedMarkdown.css.js +2 -0
  389. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +4 -3
  390. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +2 -0
  391. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +2 -0
  392. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +2 -0
  393. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +5 -3
  394. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/objectPool.js +1 -0
  395. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/style.css.js +2 -0
  396. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/utils.js +2 -0
  397. package/vscode/src/vs/editor/common/commands/replaceCommand.js +2 -0
  398. package/vscode/src/vs/editor/common/commands/shiftCommand.js +2 -0
  399. package/vscode/src/vs/editor/common/commands/surroundSelectionCommand.js +2 -0
  400. package/vscode/src/vs/editor/common/commands/trimTrailingWhitespaceCommand.js +2 -0
  401. package/vscode/src/vs/editor/common/config/diffEditor.js +1 -0
  402. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +56 -54
  403. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +13 -17
  404. package/vscode/src/vs/editor/common/config/editorOptions.js +296 -315
  405. package/vscode/src/vs/editor/common/config/editorZoom.js +2 -0
  406. package/vscode/src/vs/editor/common/config/fontInfo.js +4 -2
  407. package/vscode/src/vs/editor/common/core/characterClassifier.js +2 -0
  408. package/vscode/src/vs/editor/common/core/cursorColumns.js +3 -1
  409. package/vscode/src/vs/editor/common/core/editOperation.js +2 -0
  410. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +73 -71
  411. package/vscode/src/vs/editor/common/core/eolCounter.js +1 -0
  412. package/vscode/src/vs/editor/common/core/indentation.js +2 -0
  413. package/vscode/src/vs/editor/common/core/lineEdit.js +277 -0
  414. package/vscode/src/vs/editor/common/core/lineRange.d.ts +3 -0
  415. package/vscode/src/vs/editor/common/core/lineRange.js +26 -0
  416. package/vscode/src/vs/editor/common/core/offsetEdit.d.ts +52 -0
  417. package/vscode/src/vs/editor/common/core/offsetEdit.js +7 -2
  418. package/vscode/src/vs/editor/common/core/offsetRange.js +2 -0
  419. package/vscode/src/vs/editor/common/core/position.js +1 -0
  420. package/vscode/src/vs/editor/common/core/positionToOffset.d.ts +20 -0
  421. package/vscode/src/vs/editor/common/core/positionToOffset.js +13 -0
  422. package/vscode/src/vs/editor/common/core/range.js +2 -0
  423. package/vscode/src/vs/editor/common/core/rgba.js +1 -0
  424. package/vscode/src/vs/editor/common/core/selection.js +2 -0
  425. package/vscode/src/vs/editor/common/core/stringBuilder.js +2 -0
  426. package/vscode/src/vs/editor/common/core/textChange.js +2 -0
  427. package/vscode/src/vs/editor/common/core/textEdit.d.ts +15 -0
  428. package/vscode/src/vs/editor/common/core/textEdit.js +111 -0
  429. package/vscode/src/vs/editor/common/core/textLength.d.ts +2 -0
  430. package/vscode/src/vs/editor/common/core/textLength.js +6 -0
  431. package/vscode/src/vs/editor/common/core/textModelDefaults.js +1 -0
  432. package/vscode/src/vs/editor/common/core/wordCharacterClassifier.js +2 -0
  433. package/vscode/src/vs/editor/common/core/wordHelper.js +2 -0
  434. package/vscode/src/vs/editor/common/cursor/cursor.js +2 -0
  435. package/vscode/src/vs/editor/common/cursor/cursorAtomicMoveOperations.js +2 -0
  436. package/vscode/src/vs/editor/common/cursor/cursorCollection.js +2 -0
  437. package/vscode/src/vs/editor/common/cursor/cursorColumnSelection.js +2 -0
  438. package/vscode/src/vs/editor/common/cursor/cursorContext.js +1 -0
  439. package/vscode/src/vs/editor/common/cursor/cursorDeleteOperations.js +2 -0
  440. package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.js +2 -0
  441. package/vscode/src/vs/editor/common/cursor/cursorMoveOperations.js +2 -0
  442. package/vscode/src/vs/editor/common/cursor/cursorTypeEditOperations.js +3 -1
  443. package/vscode/src/vs/editor/common/cursor/cursorTypeOperations.js +2 -0
  444. package/vscode/src/vs/editor/common/cursor/cursorWordOperations.js +2 -0
  445. package/vscode/src/vs/editor/common/cursor/oneCursor.js +2 -0
  446. package/vscode/src/vs/editor/common/cursorCommon.js +7 -5
  447. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +2 -0
  448. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js +3 -1
  449. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js +3 -1
  450. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js +4 -2
  451. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +2 -0
  452. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js +2 -0
  453. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js +1 -0
  454. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +2 -0
  455. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/utils.js +1 -0
  456. package/vscode/src/vs/editor/common/diff/legacyLinesDiffComputer.js +2 -0
  457. package/vscode/src/vs/editor/common/diff/linesDiffComputer.js +1 -0
  458. package/vscode/src/vs/editor/common/diff/linesDiffComputers.js +2 -0
  459. package/vscode/src/vs/editor/common/diff/rangeMapping.js +2 -0
  460. package/vscode/src/vs/editor/common/editorAction.js +1 -0
  461. package/vscode/src/vs/editor/common/editorCommon.js +1 -0
  462. package/vscode/src/vs/editor/common/editorContextKeys.js +48 -46
  463. package/vscode/src/vs/editor/common/editorFeatures.js +1 -0
  464. package/vscode/src/vs/editor/common/editorTheme.js +1 -0
  465. package/vscode/src/vs/editor/common/encodedTokenAttributes.js +1 -0
  466. package/vscode/src/vs/editor/common/languageFeatureRegistry.js +2 -0
  467. package/vscode/src/vs/editor/common/languageSelector.js +2 -0
  468. package/vscode/src/vs/editor/common/languages/autoIndent.js +3 -1
  469. package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +2 -0
  470. package/vscode/src/vs/editor/common/languages/enterAction.js +2 -0
  471. package/vscode/src/vs/editor/common/languages/language.js +2 -0
  472. package/vscode/src/vs/editor/common/languages/languageConfiguration.js +1 -0
  473. package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +2 -0
  474. package/vscode/src/vs/editor/common/languages/linkComputer.js +2 -0
  475. package/vscode/src/vs/editor/common/languages/modesRegistry.js +3 -1
  476. package/vscode/src/vs/editor/common/languages/nullTokenize.js +2 -0
  477. package/vscode/src/vs/editor/common/languages/supports/characterPair.js +2 -0
  478. package/vscode/src/vs/editor/common/languages/supports/electricCharacter.js +2 -0
  479. package/vscode/src/vs/editor/common/languages/supports/indentRules.js +1 -0
  480. package/vscode/src/vs/editor/common/languages/supports/indentationLineProcessor.js +2 -0
  481. package/vscode/src/vs/editor/common/languages/supports/inplaceReplaceSupport.js +1 -0
  482. package/vscode/src/vs/editor/common/languages/supports/languageBracketsConfiguration.js +2 -0
  483. package/vscode/src/vs/editor/common/languages/supports/onEnter.js +2 -0
  484. package/vscode/src/vs/editor/common/languages/supports/richEditBrackets.js +3 -1
  485. package/vscode/src/vs/editor/common/languages/supports/tokenization.js +2 -0
  486. package/vscode/src/vs/editor/common/languages/supports.js +1 -0
  487. package/vscode/src/vs/editor/common/languages/textToHtmlTokenizer.js +2 -0
  488. package/vscode/src/vs/editor/common/languages.d.ts +3 -0
  489. package/vscode/src/vs/editor/common/languages.js +29 -27
  490. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +2 -0
  491. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.js +3 -1
  492. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.js +2 -0
  493. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree.js +3 -1
  494. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/brackets.js +2 -0
  495. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/combineTextEditInfos.js +3 -1
  496. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees.js +2 -0
  497. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js +2 -0
  498. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/nodeReader.js +2 -0
  499. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser.js +3 -1
  500. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.js +1 -0
  501. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/tokenizer.js +3 -1
  502. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/colorizedBracketPairsDecorationProvider.js +3 -1
  503. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/fixBrackets.js +2 -0
  504. package/vscode/src/vs/editor/common/model/editStack.js +4 -2
  505. package/vscode/src/vs/editor/common/model/fixedArray.js +2 -0
  506. package/vscode/src/vs/editor/common/model/guidesTextModelPart.js +3 -1
  507. package/vscode/src/vs/editor/common/model/indentationGuesser.js +1 -0
  508. package/vscode/src/vs/editor/common/model/intervalTree.js +1 -0
  509. package/vscode/src/vs/editor/common/model/mirrorTextModel.js +2 -0
  510. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +4 -2
  511. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +3 -1
  512. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder.js +3 -1
  513. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase.js +1 -0
  514. package/vscode/src/vs/editor/common/model/prefixSumComputer.js +2 -0
  515. package/vscode/src/vs/editor/common/model/textModel.js +5 -3
  516. package/vscode/src/vs/editor/common/model/textModelPart.js +2 -0
  517. package/vscode/src/vs/editor/common/model/textModelSearch.js +2 -0
  518. package/vscode/src/vs/editor/common/model/textModelText.js +2 -0
  519. package/vscode/src/vs/editor/common/model/textModelTokens.js +2 -0
  520. package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +2 -0
  521. package/vscode/src/vs/editor/common/model/tokens.js +2 -0
  522. package/vscode/src/vs/editor/common/model/treeSitterTokens.js +2 -0
  523. package/vscode/src/vs/editor/common/model/utils.js +1 -0
  524. package/vscode/src/vs/editor/common/model.js +2 -0
  525. package/vscode/src/vs/editor/common/modelLineProjectionData.js +2 -0
  526. package/vscode/src/vs/editor/common/services/editorBaseApi.js +2 -0
  527. package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +2 -0
  528. package/vscode/src/vs/editor/common/services/editorWorker.js +2 -0
  529. package/vscode/src/vs/editor/common/services/editorWorkerBootstrap.js +2 -0
  530. package/vscode/src/vs/editor/common/services/editorWorkerHost.js +1 -0
  531. package/vscode/src/vs/editor/common/services/findSectionHeaders.js +1 -0
  532. package/vscode/src/vs/editor/common/services/getIconClasses.js +2 -0
  533. package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -0
  534. package/vscode/src/vs/editor/common/services/languageFeatures.js +2 -0
  535. package/vscode/src/vs/editor/common/services/languageFeaturesService.js +2 -0
  536. package/vscode/src/vs/editor/common/services/languageService.js +2 -0
  537. package/vscode/src/vs/editor/common/services/languagesAssociations.js +2 -0
  538. package/vscode/src/vs/editor/common/services/languagesRegistry.js +3 -1
  539. package/vscode/src/vs/editor/common/services/markerDecorations.js +2 -0
  540. package/vscode/src/vs/editor/common/services/markerDecorationsService.js +2 -0
  541. package/vscode/src/vs/editor/common/services/model.js +2 -0
  542. package/vscode/src/vs/editor/common/services/modelService.js +4 -2
  543. package/vscode/src/vs/editor/common/services/resolverService.js +2 -0
  544. package/vscode/src/vs/editor/common/services/semanticTokensDto.js +2 -0
  545. package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +2 -0
  546. package/vscode/src/vs/editor/common/services/semanticTokensStyling.js +2 -0
  547. package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -0
  548. package/vscode/src/vs/editor/common/services/textModelSync/textModelSync.impl.js +3 -1
  549. package/vscode/src/vs/editor/common/services/textResourceConfiguration.js +2 -0
  550. package/vscode/src/vs/editor/common/services/treeSitterParserService.js +2 -0
  551. package/vscode/src/vs/editor/common/services/treeViewsDnd.js +1 -0
  552. package/vscode/src/vs/editor/common/services/treeViewsDndService.js +2 -0
  553. package/vscode/src/vs/editor/common/services/unicodeTextModelHighlighter.js +2 -0
  554. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +20 -19
  555. package/vscode/src/vs/editor/common/standaloneStrings.js +34 -32
  556. package/vscode/src/vs/editor/common/textModelBracketPairs.js +1 -0
  557. package/vscode/src/vs/editor/common/textModelEvents.js +1 -0
  558. package/vscode/src/vs/editor/common/textModelGuides.js +1 -0
  559. package/vscode/src/vs/editor/common/tokenizationRegistry.js +2 -0
  560. package/vscode/src/vs/editor/common/tokenizationTextModelPart.js +2 -0
  561. package/vscode/src/vs/editor/common/tokens/contiguousMultilineTokens.js +3 -1
  562. package/vscode/src/vs/editor/common/tokens/contiguousMultilineTokensBuilder.js +3 -1
  563. package/vscode/src/vs/editor/common/tokens/contiguousTokensEditing.js +2 -0
  564. package/vscode/src/vs/editor/common/tokens/contiguousTokensStore.js +2 -0
  565. package/vscode/src/vs/editor/common/tokens/lineTokens.js +2 -0
  566. package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +2 -0
  567. package/vscode/src/vs/editor/common/tokens/sparseTokensStore.js +2 -0
  568. package/vscode/src/vs/editor/common/tokens/tokenArray.js +2 -0
  569. package/vscode/src/vs/editor/common/viewEventHandler.js +2 -0
  570. package/vscode/src/vs/editor/common/viewEvents.js +1 -0
  571. package/vscode/src/vs/editor/common/viewLayout/lineDecorations.js +2 -0
  572. package/vscode/src/vs/editor/common/viewLayout/linePart.js +1 -0
  573. package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +2 -0
  574. package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +7 -5
  575. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +4 -2
  576. package/vscode/src/vs/editor/common/viewLayout/viewLinesViewportData.js +2 -0
  577. package/vscode/src/vs/editor/common/viewModel/glyphLanesModel.js +2 -0
  578. package/vscode/src/vs/editor/common/viewModel/minimapTokensColorTracker.js +2 -0
  579. package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +2 -0
  580. package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +3 -1
  581. package/vscode/src/vs/editor/common/viewModel/overviewZoneManager.js +1 -0
  582. package/vscode/src/vs/editor/common/viewModel/viewContext.js +2 -0
  583. package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +2 -0
  584. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +3 -1
  585. package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +2 -0
  586. package/vscode/src/vs/editor/common/viewModel.js +2 -0
  587. package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +2 -0
  588. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.css.js +2 -0
  589. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +9 -7
  590. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.css.js +2 -0
  591. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +12 -10
  592. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +4 -3
  593. package/vscode/src/vs/editor/contrib/caretOperations/browser/moveCaretCommand.js +2 -0
  594. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +3 -2
  595. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +23 -21
  596. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +10 -4
  597. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +33 -31
  598. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +5 -4
  599. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +15 -9
  600. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +3 -1
  601. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +10 -8
  602. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +5 -3
  603. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.css.js +2 -0
  604. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +15 -13
  605. package/vscode/src/vs/editor/contrib/codeAction/common/types.js +2 -0
  606. package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +2 -0
  607. package/vscode/src/vs/editor/contrib/codelens/browser/codelens.js +3 -1
  608. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +6 -4
  609. package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css.js +2 -0
  610. package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.js +2 -0
  611. package/vscode/src/vs/editor/contrib/colorPicker/browser/color.js +2 -0
  612. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +2 -0
  613. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPicker.css.js +2 -0
  614. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerContribution.js +1 -0
  615. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerModel.js +2 -0
  616. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParticipantUtils.js +3 -1
  617. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerBody.js +3 -1
  618. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +4 -2
  619. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +4 -2
  620. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerInsertButton.js +2 -0
  621. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerSaturationBox.js +3 -1
  622. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerStrip.js +3 -1
  623. package/vscode/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js +2 -0
  624. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerContribution.js +2 -0
  625. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +4 -2
  626. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerWidget.js +3 -1
  627. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +9 -7
  628. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerController.js +2 -0
  629. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +3 -1
  630. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerWidget.js +2 -0
  631. package/vscode/src/vs/editor/contrib/comment/browser/blockCommentCommand.js +2 -0
  632. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +8 -7
  633. package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +2 -0
  634. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +14 -12
  635. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +5 -3
  636. package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +1 -0
  637. package/vscode/src/vs/editor/contrib/dnd/browser/dnd.css.js +2 -0
  638. package/vscode/src/vs/editor/contrib/dnd/browser/dnd.js +2 -0
  639. package/vscode/src/vs/editor/contrib/dnd/browser/dragAndDropCommand.js +2 -0
  640. package/vscode/src/vs/editor/contrib/documentSymbols/browser/documentSymbols.js +1 -0
  641. package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +2 -0
  642. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +6 -5
  643. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +12 -10
  644. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +10 -8
  645. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +3 -2
  646. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +5 -3
  647. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/edit.js +2 -0
  648. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.css.js +2 -0
  649. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +5 -3
  650. package/vscode/src/vs/editor/contrib/editorState/browser/editorState.js +2 -0
  651. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +3 -1
  652. package/vscode/src/vs/editor/contrib/find/browser/findController.js +19 -17
  653. package/vscode/src/vs/editor/contrib/find/browser/findDecorations.js +2 -0
  654. package/vscode/src/vs/editor/contrib/find/browser/findModel.js +3 -1
  655. package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.css.js +2 -0
  656. package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.js +2 -0
  657. package/vscode/src/vs/editor/contrib/find/browser/findState.js +2 -0
  658. package/vscode/src/vs/editor/contrib/find/browser/findWidget.css.js +2 -0
  659. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +31 -29
  660. package/vscode/src/vs/editor/contrib/find/browser/replaceAllCommand.js +2 -0
  661. package/vscode/src/vs/editor/contrib/find/browser/replacePattern.js +2 -0
  662. package/vscode/src/vs/editor/contrib/folding/browser/folding.css.js +2 -0
  663. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +24 -22
  664. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +11 -9
  665. package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.js +2 -0
  666. package/vscode/src/vs/editor/contrib/folding/browser/foldingRanges.js +1 -0
  667. package/vscode/src/vs/editor/contrib/folding/browser/hiddenRangeModel.js +2 -0
  668. package/vscode/src/vs/editor/contrib/folding/browser/indentRangeProvider.js +2 -0
  669. package/vscode/src/vs/editor/contrib/folding/browser/syntaxRangeProvider.js +2 -0
  670. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +5 -4
  671. package/vscode/src/vs/editor/contrib/format/browser/format.js +3 -1
  672. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +5 -3
  673. package/vscode/src/vs/editor/contrib/format/browser/formattingEdit.js +2 -0
  674. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +11 -9
  675. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +20 -18
  676. package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +2 -0
  677. package/vscode/src/vs/editor/contrib/gotoError/browser/media/gotoErrorWidget.css.js +2 -0
  678. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +43 -41
  679. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToSymbol.js +2 -0
  680. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +5 -3
  681. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.css.js +2 -0
  682. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +3 -1
  683. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +4 -2
  684. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +6 -4
  685. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.css.js +2 -0
  686. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +5 -3
  687. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +10 -8
  688. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +5 -3
  689. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +6 -5
  690. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +2 -0
  691. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +2 -0
  692. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +5 -3
  693. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverStatusBar.js +3 -1
  694. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +1 -0
  695. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +3 -1
  696. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +2 -0
  697. package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +3 -1
  698. package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverComputer.js +2 -0
  699. package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverController.js +2 -0
  700. package/vscode/src/vs/editor/contrib/hover/browser/glyphHoverWidget.js +4 -2
  701. package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +2 -0
  702. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +5 -3
  703. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +4 -2
  704. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +25 -23
  705. package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +1 -0
  706. package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.js +2 -0
  707. package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.js +1 -0
  708. package/vscode/src/vs/editor/contrib/hover/browser/hoverUtils.js +2 -0
  709. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +13 -11
  710. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +21 -8
  711. package/vscode/src/vs/editor/contrib/hover/browser/resizableContentWidget.js +2 -0
  712. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.css.js +2 -0
  713. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +4 -3
  714. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplaceCommand.js +2 -0
  715. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +22 -20
  716. package/vscode/src/vs/editor/contrib/indentation/common/indentUtils.js +1 -0
  717. package/vscode/src/vs/editor/contrib/indentation/common/indentation.js +2 -0
  718. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +3 -1
  719. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsContribution.js +1 -0
  720. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +4 -2
  721. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -9
  722. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +3 -1
  723. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commandIds.js +1 -0
  724. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +76 -35
  725. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -10
  726. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +56 -48
  727. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +5 -3
  728. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.css.js +2 -0
  729. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +17 -6
  730. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +3 -1
  731. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js +4 -2
  732. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/computeGhostText.js +2 -0
  733. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.js +2 -0
  734. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +87 -20
  735. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +11 -4
  736. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.js +8 -1
  737. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +19 -20
  738. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +80 -37
  739. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/singleTextEditHelpers.js +2 -0
  740. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdaptor.js +2 -0
  741. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +12 -1
  742. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.css.js +2 -0
  743. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +5 -3
  744. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineDiffView.js +102 -0
  745. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsIndicatorView.js +77 -0
  746. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.css.js +3 -1
  747. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +251 -150
  748. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils.js +7 -1
  749. package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.js +4 -2
  750. package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css.js +2 -0
  751. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +4 -2
  752. package/vscode/src/vs/editor/contrib/linesOperations/browser/copyLinesCommand.js +2 -0
  753. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +32 -30
  754. package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.js +2 -0
  755. package/vscode/src/vs/editor/contrib/linesOperations/browser/sortLinesCommand.js +2 -0
  756. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.css.js +2 -0
  757. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +7 -5
  758. package/vscode/src/vs/editor/contrib/links/browser/getLinks.js +2 -0
  759. package/vscode/src/vs/editor/contrib/links/browser/links.css.js +2 -0
  760. package/vscode/src/vs/editor/contrib/links/browser/links.js +18 -16
  761. package/vscode/src/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js +1 -0
  762. package/vscode/src/vs/editor/contrib/message/browser/messageController.css.js +2 -0
  763. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +4 -2
  764. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +26 -24
  765. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.css.js +2 -0
  766. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +4 -2
  767. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +2 -0
  768. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +7 -5
  769. package/vscode/src/vs/editor/contrib/parameterHints/browser/provideSignatureHelp.js +2 -0
  770. package/vscode/src/vs/editor/contrib/peekView/browser/media/peekViewWidget.css.js +2 -0
  771. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -19
  772. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +2 -1
  773. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css.js +2 -0
  774. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js +4 -2
  775. package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +3 -1
  776. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +9 -7
  777. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +37 -35
  778. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +4 -2
  779. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +15 -13
  780. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css.js +2 -0
  781. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +11 -9
  782. package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +8 -6
  783. package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +2 -0
  784. package/vscode/src/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js +2 -0
  785. package/vscode/src/vs/editor/contrib/semanticTokens/common/getSemanticTokens.js +2 -0
  786. package/vscode/src/vs/editor/contrib/semanticTokens/common/semanticTokensConfig.js +1 -0
  787. package/vscode/src/vs/editor/contrib/smartSelect/browser/bracketSelections.js +2 -0
  788. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +7 -5
  789. package/vscode/src/vs/editor/contrib/smartSelect/browser/wordSelections.js +2 -0
  790. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +7 -5
  791. package/vscode/src/vs/editor/contrib/snippet/browser/snippetParser.js +1 -0
  792. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.css.js +2 -0
  793. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +4 -2
  794. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +6 -4
  795. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css.js +2 -0
  796. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +13 -11
  797. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollContribution.js +1 -0
  798. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +14 -11
  799. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollElement.js +1 -0
  800. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +4 -2
  801. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -0
  802. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +7 -5
  803. package/vscode/src/vs/editor/contrib/suggest/browser/completionModel.js +3 -1
  804. package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css.js +2 -0
  805. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +11 -9
  806. package/vscode/src/vs/editor/contrib/suggest/browser/suggestAlternatives.js +2 -0
  807. package/vscode/src/vs/editor/contrib/suggest/browser/suggestCommitCharacters.js +2 -0
  808. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +13 -11
  809. package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +4 -2
  810. package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +2 -0
  811. package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +4 -2
  812. package/vscode/src/vs/editor/contrib/suggest/browser/suggestOvertypingCapturer.js +2 -0
  813. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -16
  814. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +4 -2
  815. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +4 -2
  816. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +2 -0
  817. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +2 -0
  818. package/vscode/src/vs/editor/contrib/suggest/browser/wordDistance.js +2 -0
  819. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.css.js +2 -0
  820. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +34 -33
  821. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +7 -5
  822. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +3 -2
  823. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.css.js +2 -0
  824. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +2 -0
  825. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.css.js +2 -0
  826. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +26 -24
  827. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +7 -5
  828. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.css.js +2 -0
  829. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +11 -9
  830. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/textualHighlightProvider.js +2 -0
  831. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +43 -27
  832. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +4 -2
  833. package/vscode/src/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js +2 -0
  834. package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.css.js +2 -0
  835. package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +5 -3
  836. package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.css.js +2 -0
  837. package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +2 -0
  838. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInput.css.js +2 -0
  839. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +2 -0
  840. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +3 -1
  841. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditorService.js +2 -0
  842. package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +2 -0
  843. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +7 -5
  844. package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +5 -3
  845. package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.js +2 -0
  846. package/vscode/src/vs/editor/standalone/common/standaloneTheme.js +2 -0
  847. package/vscode/src/vs/editor/standalone/common/themes.js +2 -0
  848. package/vscode/src/vs/nls.js +2 -0
  849. package/vscode/src/vs/nls.messages.js +1 -0
  850. package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +2 -0
  851. package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +2 -0
  852. package/vscode/src/vs/platform/accessibility/browser/accessibleView.service.js +2 -0
  853. package/vscode/src/vs/platform/accessibility/browser/accessibleViewRegistry.js +1 -0
  854. package/vscode/src/vs/platform/accessibility/common/accessibility.js +2 -0
  855. package/vscode/src/vs/platform/accessibility/common/accessibility.service.js +2 -0
  856. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +51 -49
  857. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.js +2 -0
  858. package/vscode/src/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler.js +2 -0
  859. package/vscode/src/vs/platform/action/common/action.js +1 -0
  860. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +2 -0
  861. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +6 -4
  862. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css.js +2 -0
  863. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +10 -8
  864. package/vscode/src/vs/platform/actions/browser/actionViewItemService.service.js +2 -0
  865. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +10 -1
  866. package/vscode/src/vs/platform/actions/browser/floatingMenu.js +2 -0
  867. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css.js +2 -0
  868. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +10 -7
  869. package/vscode/src/vs/platform/actions/browser/toolbar.js +5 -3
  870. package/vscode/src/vs/platform/actions/common/actions.contribution.js +1 -0
  871. package/vscode/src/vs/platform/actions/common/actions.d.ts +4 -2
  872. package/vscode/src/vs/platform/actions/common/actions.js +9 -5
  873. package/vscode/src/vs/platform/actions/common/actions.service.js +2 -0
  874. package/vscode/src/vs/platform/actions/common/menuResetAction.js +2 -0
  875. package/vscode/src/vs/platform/actions/common/menuService.js +5 -3
  876. package/vscode/src/vs/platform/backup/common/backup.js +1 -0
  877. package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +2 -0
  878. package/vscode/src/vs/platform/clipboard/common/clipboardService.service.js +2 -0
  879. package/vscode/src/vs/platform/commands/common/commands.js +2 -0
  880. package/vscode/src/vs/platform/commands/common/commands.service.js +2 -0
  881. package/vscode/src/vs/platform/configuration/common/configuration.js +2 -0
  882. package/vscode/src/vs/platform/configuration/common/configuration.service.js +2 -0
  883. package/vscode/src/vs/platform/configuration/common/configurationModels.js +23 -6
  884. package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +2 -1
  885. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +13 -11
  886. package/vscode/src/vs/platform/configuration/common/configurations.js +2 -0
  887. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +4 -2
  888. package/vscode/src/vs/platform/contextkey/common/contextkey.js +13 -11
  889. package/vscode/src/vs/platform/contextkey/common/contextkey.service.js +2 -0
  890. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +12 -10
  891. package/vscode/src/vs/platform/contextkey/common/scanner.js +7 -5
  892. package/vscode/src/vs/platform/contextview/browser/contextMenuHandler.js +3 -1
  893. package/vscode/src/vs/platform/contextview/browser/contextMenuService.js +2 -0
  894. package/vscode/src/vs/platform/contextview/browser/contextView.service.js +2 -0
  895. package/vscode/src/vs/platform/contextview/browser/contextViewService.js +2 -0
  896. package/vscode/src/vs/platform/debug/common/extensionHostDebug.service.js +2 -0
  897. package/vscode/src/vs/platform/diagnostics/common/diagnostics.js +1 -0
  898. package/vscode/src/vs/platform/diagnostics/common/diagnostics.service.js +2 -0
  899. package/vscode/src/vs/platform/dialogs/common/dialogs.js +11 -9
  900. package/vscode/src/vs/platform/dialogs/common/dialogs.service.js +2 -0
  901. package/vscode/src/vs/platform/dnd/browser/dnd.js +13 -5
  902. package/vscode/src/vs/platform/download/common/download.service.js +2 -0
  903. package/vscode/src/vs/platform/editor/common/editor.js +1 -0
  904. package/vscode/src/vs/platform/encryption/common/encryptionService.service.js +2 -0
  905. package/vscode/src/vs/platform/environment/common/environment.service.js +2 -0
  906. package/vscode/src/vs/platform/environment/common/environmentService.js +10 -0
  907. package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +2 -0
  908. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +4 -2
  909. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.js +2 -0
  910. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +2 -0
  911. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +3 -1
  912. package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.js +2 -0
  913. package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.service.js +2 -0
  914. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +2 -0
  915. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.service.js +2 -0
  916. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +10 -8
  917. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.service.js +2 -0
  918. package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +2 -0
  919. package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.service.js +2 -0
  920. package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +2 -0
  921. package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.service.js +2 -0
  922. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +22 -20
  923. package/vscode/src/vs/platform/extensions/common/extensions.js +2 -0
  924. package/vscode/src/vs/platform/extensions/common/extensions.service.js +2 -0
  925. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +5 -4
  926. package/vscode/src/vs/platform/externalServices/common/serviceMachineId.js +2 -0
  927. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +6 -4
  928. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +64 -9
  929. package/vscode/src/vs/platform/files/browser/webFileSystemAccess.js +9 -1
  930. package/vscode/src/vs/platform/files/common/files.js +2 -0
  931. package/vscode/src/vs/platform/files/common/files.service.js +2 -0
  932. package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.js +3 -1
  933. package/vscode/src/vs/platform/files/common/watcher.js +2 -0
  934. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +5 -3
  935. package/vscode/src/vs/platform/history/browser/historyWidgetKeybindingHint.js +1 -0
  936. package/vscode/src/vs/platform/hover/browser/hover.js +2 -0
  937. package/vscode/src/vs/platform/hover/browser/hover.service.js +2 -0
  938. package/vscode/src/vs/platform/instantiation/common/descriptors.js +1 -0
  939. package/vscode/src/vs/platform/instantiation/common/extensions.js +2 -0
  940. package/vscode/src/vs/platform/instantiation/common/graph.js +1 -0
  941. package/vscode/src/vs/platform/instantiation/common/instantiation.js +1 -0
  942. package/vscode/src/vs/platform/instantiation/common/instantiationService.js +2 -0
  943. package/vscode/src/vs/platform/instantiation/common/serviceCollection.js +1 -0
  944. package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.js +2 -0
  945. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +6 -4
  946. package/vscode/src/vs/platform/keybinding/common/baseResolvedKeybinding.js +2 -0
  947. package/vscode/src/vs/platform/keybinding/common/keybinding.service.js +2 -0
  948. package/vscode/src/vs/platform/keybinding/common/keybindingResolver.js +2 -0
  949. package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.js +3 -1
  950. package/vscode/src/vs/platform/keybinding/common/resolvedKeybindingItem.js +1 -0
  951. package/vscode/src/vs/platform/keybinding/common/usLayoutResolvedKeybinding.js +2 -0
  952. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +2 -0
  953. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.service.js +2 -0
  954. package/vscode/src/vs/platform/label/common/label.service.js +2 -0
  955. package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +3 -1
  956. package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.js +2 -0
  957. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +5 -3
  958. package/vscode/src/vs/platform/layout/browser/layoutService.service.js +2 -0
  959. package/vscode/src/vs/platform/list/browser/listService.js +33 -31
  960. package/vscode/src/vs/platform/list/browser/listService.service.js +2 -0
  961. package/vscode/src/vs/platform/log/browser/log.js +2 -0
  962. package/vscode/src/vs/platform/log/common/bufferLog.js +2 -0
  963. package/vscode/src/vs/platform/log/common/log.js +2 -0
  964. package/vscode/src/vs/platform/log/common/log.service.js +2 -0
  965. package/vscode/src/vs/platform/log/common/logService.js +2 -0
  966. package/vscode/src/vs/platform/markers/common/markerService.js +2 -0
  967. package/vscode/src/vs/platform/markers/common/markers.js +2 -0
  968. package/vscode/src/vs/platform/markers/common/markers.service.js +2 -0
  969. package/vscode/src/vs/platform/notification/common/notification.js +2 -0
  970. package/vscode/src/vs/platform/notification/common/notification.service.js +2 -0
  971. package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +2 -0
  972. package/vscode/src/vs/platform/observable/common/wrapInHotClass.js +2 -0
  973. package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.js +2 -0
  974. package/vscode/src/vs/platform/opener/browser/link.css.js +2 -0
  975. package/vscode/src/vs/platform/opener/browser/link.js +2 -0
  976. package/vscode/src/vs/platform/opener/common/opener.js +1 -0
  977. package/vscode/src/vs/platform/opener/common/opener.service.js +2 -0
  978. package/vscode/src/vs/platform/policy/common/policy.js +2 -0
  979. package/vscode/src/vs/platform/policy/common/policy.service.js +2 -0
  980. package/vscode/src/vs/platform/product/common/product.js +3 -1
  981. package/vscode/src/vs/platform/product/common/productService.js +1 -0
  982. package/vscode/src/vs/platform/product/common/productService.service.js +2 -0
  983. package/vscode/src/vs/platform/progress/common/progress.js +3 -1
  984. package/vscode/src/vs/platform/progress/common/progress.service.js +2 -0
  985. package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css.js +2 -0
  986. package/vscode/src/vs/platform/quickinput/browser/pickerQuickAccess.js +4 -2
  987. package/vscode/src/vs/platform/quickinput/browser/quickAccess.js +3 -1
  988. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +11 -9
  989. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -4
  990. package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +3 -1
  991. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +9 -7
  992. package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +2 -0
  993. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +7 -4
  994. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +5 -2
  995. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +5 -3
  996. package/vscode/src/vs/platform/quickinput/common/quickAccess.d.ts +1 -1
  997. package/vscode/src/vs/platform/quickinput/common/quickAccess.js +2 -0
  998. package/vscode/src/vs/platform/quickinput/common/quickInput.js +2 -0
  999. package/vscode/src/vs/platform/quickinput/common/quickInput.service.js +2 -0
  1000. package/vscode/src/vs/platform/registry/common/platform.js +2 -0
  1001. package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +5 -3
  1002. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.js +2 -0
  1003. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.service.js +2 -0
  1004. package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.js +2 -0
  1005. package/vscode/src/vs/platform/remote/common/remoteHosts.js +2 -0
  1006. package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.service.js +2 -0
  1007. package/vscode/src/vs/platform/request/common/request.js +3 -1
  1008. package/vscode/src/vs/platform/request/common/request.service.js +2 -0
  1009. package/vscode/src/vs/platform/secrets/common/secrets.service.js +2 -0
  1010. package/vscode/src/vs/platform/severityIcon/browser/media/severityIcon.css.js +2 -0
  1011. package/vscode/src/vs/platform/severityIcon/browser/severityIcon.js +2 -0
  1012. package/vscode/src/vs/platform/sign/common/sign.js +1 -0
  1013. package/vscode/src/vs/platform/sign/common/sign.service.js +2 -0
  1014. package/vscode/src/vs/platform/storage/common/storage.js +2 -0
  1015. package/vscode/src/vs/platform/storage/common/storage.service.js +2 -0
  1016. package/vscode/src/vs/platform/telemetry/common/telemetry.js +1 -0
  1017. package/vscode/src/vs/platform/telemetry/common/telemetry.service.js +2 -0
  1018. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +3 -0
  1019. package/vscode/src/vs/platform/terminal/common/environmentVariableShared.js +1 -0
  1020. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +6 -2
  1021. package/vscode/src/vs/platform/terminal/common/terminal.js +2 -0
  1022. package/vscode/src/vs/platform/terminal/common/terminal.service.js +2 -0
  1023. package/vscode/src/vs/platform/terminal/common/terminalDataBuffering.js +1 -0
  1024. package/vscode/src/vs/platform/theme/browser/defaultStyles.js +2 -0
  1025. package/vscode/src/vs/platform/theme/browser/iconsStyleSheet.js +3 -1
  1026. package/vscode/src/vs/platform/theme/common/colorUtils.js +4 -2
  1027. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +19 -17
  1028. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +10 -8
  1029. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +96 -93
  1030. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +48 -46
  1031. package/vscode/src/vs/platform/theme/common/colors/listColors.js +38 -36
  1032. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +9 -7
  1033. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +13 -11
  1034. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +10 -8
  1035. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +11 -9
  1036. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +4 -3
  1037. package/vscode/src/vs/platform/theme/common/iconRegistry.js +2 -0
  1038. package/vscode/src/vs/platform/theme/common/theme.js +1 -0
  1039. package/vscode/src/vs/platform/theme/common/themeService.js +3 -1
  1040. package/vscode/src/vs/platform/theme/common/themeService.service.js +2 -0
  1041. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +44 -42
  1042. package/vscode/src/vs/platform/tunnel/common/tunnel.js +2 -0
  1043. package/vscode/src/vs/platform/tunnel/common/tunnel.service.js +2 -0
  1044. package/vscode/src/vs/platform/undoRedo/common/undoRedo.js +1 -0
  1045. package/vscode/src/vs/platform/undoRedo/common/undoRedo.service.js +2 -0
  1046. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +22 -20
  1047. package/vscode/src/vs/platform/update/common/update.js +5 -2
  1048. package/vscode/src/vs/platform/update/common/update.service.js +2 -0
  1049. package/vscode/src/vs/platform/uriIdentity/common/uriIdentity.service.js +2 -0
  1050. package/vscode/src/vs/platform/uriIdentity/common/uriIdentityService.js +2 -0
  1051. package/vscode/src/vs/platform/url/common/url.service.js +2 -0
  1052. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +0 -2
  1053. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +13 -65
  1054. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.service.d.ts +0 -1
  1055. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.service.js +2 -0
  1056. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileStorageService.service.js +2 -0
  1057. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +4 -2
  1058. package/vscode/src/vs/platform/userDataSync/common/content.js +2 -0
  1059. package/vscode/src/vs/platform/userDataSync/common/ignoredExtensions.service.js +2 -0
  1060. package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +3 -1
  1061. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +9 -7
  1062. package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.js +2 -0
  1063. package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.service.js +2 -0
  1064. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +4 -2
  1065. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.service.js +2 -0
  1066. package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +4 -2
  1067. package/vscode/src/vs/platform/window/common/window.js +2 -0
  1068. package/vscode/src/vs/platform/workspace/common/canonicalUri.service.js +2 -0
  1069. package/vscode/src/vs/platform/workspace/common/editSessions.js +1 -0
  1070. package/vscode/src/vs/platform/workspace/common/editSessions.service.js +2 -0
  1071. package/vscode/src/vs/platform/workspace/common/virtualWorkspace.js +2 -0
  1072. package/vscode/src/vs/platform/workspace/common/workspace.js +4 -2
  1073. package/vscode/src/vs/platform/workspace/common/workspace.service.js +2 -0
  1074. package/vscode/src/vs/platform/workspace/common/workspaceTrust.service.js +2 -0
  1075. package/vscode/src/vs/platform/workspaces/common/workspaces.js +2 -0
  1076. package/vscode/src/vs/platform/workspaces/common/workspaces.service.js +2 -0
  1077. package/vscode/src/vs/workbench/api/browser/statusBarService.js +2 -0
  1078. package/vscode/src/vs/workbench/api/common/cache.js +1 -0
  1079. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +23 -13
  1080. package/vscode/src/vs/workbench/api/common/extHost.common.services.js +27 -26
  1081. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -0
  1082. package/vscode/src/vs/workbench/api/common/extHostAiRelatedInformation.js +2 -0
  1083. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +4 -2
  1084. package/vscode/src/vs/workbench/api/common/extHostApiDeprecationService.js +2 -0
  1085. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +2 -0
  1086. package/vscode/src/vs/workbench/api/common/extHostBulkEdits.js +2 -0
  1087. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +80 -46
  1088. package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +12 -10
  1089. package/vscode/src/vs/workbench/api/common/extHostClipboard.js +2 -0
  1090. package/vscode/src/vs/workbench/api/common/extHostCodeInsets.js +2 -0
  1091. package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +21 -3
  1092. package/vscode/src/vs/workbench/api/common/extHostCommands.js +13 -11
  1093. package/vscode/src/vs/workbench/api/common/extHostComments.js +27 -11
  1094. package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +3 -1
  1095. package/vscode/src/vs/workbench/api/common/extHostConsoleForwarder.js +2 -0
  1096. package/vscode/src/vs/workbench/api/common/extHostCustomEditors.js +2 -0
  1097. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +4 -2
  1098. package/vscode/src/vs/workbench/api/common/extHostDecorations.js +4 -2
  1099. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +3 -1
  1100. package/vscode/src/vs/workbench/api/common/extHostDialogs.js +2 -0
  1101. package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +2 -0
  1102. package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +2 -0
  1103. package/vscode/src/vs/workbench/api/common/extHostDocumentSaveParticipant.js +2 -0
  1104. package/vscode/src/vs/workbench/api/common/extHostDocuments.js +2 -0
  1105. package/vscode/src/vs/workbench/api/common/extHostDocumentsAndEditors.js +2 -0
  1106. package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +2 -0
  1107. package/vscode/src/vs/workbench/api/common/extHostEmbedding.js +2 -0
  1108. package/vscode/src/vs/workbench/api/common/extHostEmbeddingVector.js +2 -0
  1109. package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +2 -0
  1110. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +10 -8
  1111. package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +2 -0
  1112. package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +2 -0
  1113. package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +3 -1
  1114. package/vscode/src/vs/workbench/api/common/extHostFileSystemInfo.js +2 -0
  1115. package/vscode/src/vs/workbench/api/common/extHostInitDataService.js +2 -0
  1116. package/vscode/src/vs/workbench/api/common/extHostInteractive.js +2 -0
  1117. package/vscode/src/vs/workbench/api/common/extHostLabelService.js +2 -0
  1118. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +13 -7
  1119. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +24 -39
  1120. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +47 -9
  1121. package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -0
  1122. package/vscode/src/vs/workbench/api/common/extHostLocalizationService.js +2 -0
  1123. package/vscode/src/vs/workbench/api/common/extHostLogService.js +3 -1
  1124. package/vscode/src/vs/workbench/api/common/extHostLoggerService.js +2 -0
  1125. package/vscode/src/vs/workbench/api/common/extHostManagedSockets.js +3 -1
  1126. package/vscode/src/vs/workbench/api/common/extHostMemento.js +2 -0
  1127. package/vscode/src/vs/workbench/api/common/extHostMessageService.js +2 -0
  1128. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +6 -4
  1129. package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +2 -0
  1130. package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +2 -0
  1131. package/vscode/src/vs/workbench/api/common/extHostNotebookDocuments.js +2 -0
  1132. package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +2 -0
  1133. package/vscode/src/vs/workbench/api/common/extHostNotebookEditors.js +2 -0
  1134. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +5 -3
  1135. package/vscode/src/vs/workbench/api/common/extHostNotebookRenderers.js +2 -0
  1136. package/vscode/src/vs/workbench/api/common/extHostOutput.js +27 -31
  1137. package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.js +2 -0
  1138. package/vscode/src/vs/workbench/api/common/extHostProgress.js +3 -1
  1139. package/vscode/src/vs/workbench/api/common/extHostQuickDiff.js +2 -0
  1140. package/vscode/src/vs/workbench/api/common/extHostQuickOpen.js +6 -4
  1141. package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.js +2 -0
  1142. package/vscode/src/vs/workbench/api/common/extHostRpcService.js +2 -0
  1143. package/vscode/src/vs/workbench/api/common/extHostSCM.js +51 -17
  1144. package/vscode/src/vs/workbench/api/common/extHostSearch.js +2 -0
  1145. package/vscode/src/vs/workbench/api/common/extHostSecretState.js +2 -0
  1146. package/vscode/src/vs/workbench/api/common/extHostSecrets.js +2 -0
  1147. package/vscode/src/vs/workbench/api/common/extHostShare.js +2 -0
  1148. package/vscode/src/vs/workbench/api/common/extHostSpeech.js +3 -1
  1149. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +5 -3
  1150. package/vscode/src/vs/workbench/api/common/extHostStorage.js +2 -0
  1151. package/vscode/src/vs/workbench/api/common/extHostStoragePaths.js +2 -0
  1152. package/vscode/src/vs/workbench/api/common/extHostTask.js +4 -2
  1153. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -0
  1154. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +4 -2
  1155. package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +3 -1
  1156. package/vscode/src/vs/workbench/api/common/extHostTestItem.js +4 -2
  1157. package/vscode/src/vs/workbench/api/common/extHostTesting.js +5 -3
  1158. package/vscode/src/vs/workbench/api/common/extHostTestingPrivateApi.js +2 -0
  1159. package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +7 -5
  1160. package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +3 -1
  1161. package/vscode/src/vs/workbench/api/common/extHostTheming.js +2 -0
  1162. package/vscode/src/vs/workbench/api/common/extHostTimeline.js +3 -1
  1163. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +8 -6
  1164. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +5 -3
  1165. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +136 -30
  1166. package/vscode/src/vs/workbench/api/common/extHostTypes.js +89 -17
  1167. package/vscode/src/vs/workbench/api/common/extHostUriOpener.js +2 -0
  1168. package/vscode/src/vs/workbench/api/common/extHostUriTransformerService.js +2 -0
  1169. package/vscode/src/vs/workbench/api/common/extHostUrls.js +2 -0
  1170. package/vscode/src/vs/workbench/api/common/extHostVariableResolverService.js +2 -0
  1171. package/vscode/src/vs/workbench/api/common/extHostWebview.js +3 -1
  1172. package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.js +2 -0
  1173. package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.js +2 -0
  1174. package/vscode/src/vs/workbench/api/common/extHostWebviewView.js +6 -4
  1175. package/vscode/src/vs/workbench/api/common/extHostWindow.js +2 -0
  1176. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +5 -3
  1177. package/vscode/src/vs/workbench/api/common/extensionHostMain.js +3 -1
  1178. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +14 -12
  1179. package/vscode/src/vs/workbench/api/worker/extHost.worker.services.js +2 -1
  1180. package/vscode/src/vs/workbench/api/worker/extHostConsoleForwarder.js +2 -0
  1181. package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +2 -0
  1182. package/vscode/src/vs/workbench/api/worker/extensionHostWorker.js +3 -1
  1183. package/vscode/src/vs/workbench/api/worker/{extensionHostWorker.esm.js → extensionHostWorkerMain.js} +1 -0
  1184. package/vscode/src/vs/workbench/browser/actions/developerActions.js +34 -33
  1185. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +134 -132
  1186. package/vscode/src/vs/workbench/browser/actions/media/actions.css.js +2 -0
  1187. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +9 -7
  1188. package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +4 -2
  1189. package/vscode/src/vs/workbench/browser/actions/windowActions.js +31 -29
  1190. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +23 -21
  1191. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +7 -5
  1192. package/vscode/src/vs/workbench/browser/actions.js +2 -0
  1193. package/vscode/src/vs/workbench/browser/codeeditor.js +3 -1
  1194. package/vscode/src/vs/workbench/browser/composite.js +2 -0
  1195. package/vscode/src/vs/workbench/browser/dnd.js +5 -3
  1196. package/vscode/src/vs/workbench/browser/editor.js +4 -2
  1197. package/vscode/src/vs/workbench/browser/labels.js +4 -2
  1198. package/vscode/src/vs/workbench/browser/media/part.css.js +2 -0
  1199. package/vscode/src/vs/workbench/browser/media/style.css.js +6 -0
  1200. package/vscode/src/vs/workbench/browser/panecomposite.js +3 -1
  1201. package/vscode/src/vs/workbench/browser/part.js +3 -1
  1202. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +1 -0
  1203. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +14 -12
  1204. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +17 -13
  1205. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +3 -1
  1206. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +5 -3
  1207. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.js +2 -0
  1208. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +8 -6
  1209. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution._autosave.js +1 -0
  1210. package/vscode/src/vs/workbench/browser/parts/editor/editor.js +2 -0
  1211. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +2 -0
  1212. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +32 -19
  1213. package/vscode/src/vs/workbench/browser/parts/editor/editorCommandsContext.js +2 -0
  1214. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.js +2 -0
  1215. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +11 -9
  1216. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +7 -5
  1217. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +65 -63
  1218. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +9 -11
  1219. package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.js +2 -0
  1220. package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +3 -1
  1221. package/vscode/src/vs/workbench/browser/parts/editor/media/editorplaceholder.css.js +2 -0
  1222. package/vscode/src/vs/workbench/browser/parts/editor/media/editorquickaccess.css.js +2 -0
  1223. package/vscode/src/vs/workbench/browser/parts/editor/media/editorstatus.css.js +2 -0
  1224. package/vscode/src/vs/workbench/browser/parts/editor/media/editortabscontrol.css.js +3 -1
  1225. package/vscode/src/vs/workbench/browser/parts/editor/media/sidebysideeditor.css.js +2 -0
  1226. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +3 -1
  1227. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +3 -1
  1228. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +5 -3
  1229. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +3 -1
  1230. package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +2 -0
  1231. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +19 -17
  1232. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.d.ts +1 -0
  1233. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +5 -0
  1234. package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +2 -0
  1235. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +39 -37
  1236. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +1 -0
  1237. package/vscode/src/vs/workbench/browser/parts/titlebar/media/menubarControl.css.js +2 -0
  1238. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +21 -19
  1239. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +234 -0
  1240. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +5 -3
  1241. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +3 -4
  1242. package/vscode/src/vs/workbench/browser/parts/views/media/paneviewlet.css.js +2 -0
  1243. package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +3 -1
  1244. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +79 -68
  1245. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -2
  1246. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +17 -11
  1247. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +10 -8
  1248. package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.js +2 -0
  1249. package/vscode/src/vs/workbench/browser/quickaccess.js +4 -2
  1250. package/vscode/src/vs/workbench/browser/style.js +54 -0
  1251. package/vscode/src/vs/workbench/browser/window.js +18 -16
  1252. package/vscode/src/vs/workbench/browser/workbench.contribution.js +225 -228
  1253. package/vscode/src/vs/workbench/common/activity.js +1 -0
  1254. package/vscode/src/vs/workbench/common/component.js +2 -0
  1255. package/vscode/src/vs/workbench/common/configuration.js +2 -0
  1256. package/vscode/src/vs/workbench/common/contextkeys.js +72 -70
  1257. package/vscode/src/vs/workbench/common/contributions.js +2 -0
  1258. package/vscode/src/vs/workbench/common/editor/binaryEditorModel.js +2 -0
  1259. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +3 -1
  1260. package/vscode/src/vs/workbench/common/editor/diffEditorModel.js +2 -0
  1261. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +3 -1
  1262. package/vscode/src/vs/workbench/common/editor/editorInput.js +2 -0
  1263. package/vscode/src/vs/workbench/common/editor/editorModel.js +2 -0
  1264. package/vscode/src/vs/workbench/common/editor/editorOptions.js +2 -0
  1265. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +2 -0
  1266. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +3 -1
  1267. package/vscode/src/vs/workbench/common/editor/textDiffEditorModel.js +2 -0
  1268. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +3 -1
  1269. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +2 -0
  1270. package/vscode/src/vs/workbench/common/editor/textResourceEditorModel.js +2 -0
  1271. package/vscode/src/vs/workbench/common/editor.js +7 -5
  1272. package/vscode/src/vs/workbench/common/memento.js +2 -0
  1273. package/vscode/src/vs/workbench/common/resources.js +2 -0
  1274. package/vscode/src/vs/workbench/common/theme.js +160 -158
  1275. package/vscode/src/vs/workbench/common/views.d.ts +5 -0
  1276. package/vscode/src/vs/workbench/common/views.js +6 -4
  1277. package/vscode/src/vs/workbench/common/views.service.js +2 -0
  1278. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +146 -144
  1279. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +44 -24
  1280. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +2 -0
  1281. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +2 -0
  1282. package/vscode/src/vs/workbench/contrib/callHierarchy/common/callHierarchy.js +2 -0
  1283. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +166 -0
  1284. package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.js +2 -0
  1285. package/vscode/src/vs/workbench/contrib/chat/common/chatActions.js +7 -0
  1286. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +46 -11
  1287. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js +2 -0
  1288. package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.service.js +2 -0
  1289. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +53 -29
  1290. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.js +2 -0
  1291. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +2 -0
  1292. package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.js +2 -0
  1293. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.js +2 -0
  1294. package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.js +2 -0
  1295. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.js +2 -0
  1296. package/vscode/src/vs/workbench/contrib/chat/common/ignoredFiles.service.js +5 -0
  1297. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.service.js +2 -0
  1298. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +5 -0
  1299. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.js +2 -0
  1300. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.js +2 -0
  1301. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActions.contribution.js +1 -0
  1302. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +6 -2
  1303. package/vscode/src/vs/workbench/contrib/codeActions/browser/documentationContribution.js +2 -0
  1304. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +2 -0
  1305. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +2 -0
  1306. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.css.js +2 -0
  1307. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +10 -8
  1308. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +3 -1
  1309. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +4 -3
  1310. package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +1 -0
  1311. package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu.js +2 -0
  1312. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +2 -0
  1313. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +12 -10
  1314. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.css.js +2 -0
  1315. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +6 -4
  1316. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +5 -3
  1317. package/vscode/src/vs/workbench/contrib/codeEditor/browser/menuPreventer.js +2 -0
  1318. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +10 -8
  1319. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +7 -5
  1320. package/vscode/src/vs/workbench/contrib/codeEditor/browser/selectionClipboard.js +1 -0
  1321. package/vscode/src/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.js +2 -0
  1322. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +2 -0
  1323. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +3 -1
  1324. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +5 -3
  1325. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +6 -4
  1326. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +4 -2
  1327. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +3 -2
  1328. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -7
  1329. package/vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch.js +2 -0
  1330. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.js +2 -0
  1331. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +14 -12
  1332. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +7 -1
  1333. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -10
  1334. package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +1 -0
  1335. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +5 -3
  1336. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.service.js +2 -0
  1337. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +4 -2
  1338. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +14 -12
  1339. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +59 -57
  1340. package/vscode/src/vs/workbench/contrib/debug/browser/media/all.png.js +1 -0
  1341. package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +2 -0
  1342. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +3 -1
  1343. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -1
  1344. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +2 -0
  1345. package/vscode/src/vs/workbench/contrib/debug/common/debug.service.js +2 -0
  1346. package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +2 -0
  1347. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.service.js +2 -0
  1348. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.service.js +2 -0
  1349. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +180 -178
  1350. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +26 -24
  1351. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +2 -0
  1352. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +2 -0
  1353. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.js +2 -0
  1354. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +7 -5
  1355. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +4 -2
  1356. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +5 -3
  1357. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +6 -4
  1358. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +6 -4
  1359. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service.js +2 -0
  1360. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +3 -1
  1361. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +2 -0
  1362. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +2 -0
  1363. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +11 -9
  1364. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +2 -0
  1365. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +20 -18
  1366. package/vscode/src/vs/workbench/contrib/files/browser/explorerFileContrib.js +2 -0
  1367. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +17 -15
  1368. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +99 -96
  1369. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +5 -4
  1370. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +8 -6
  1371. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +39 -37
  1372. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +58 -56
  1373. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +1 -0
  1374. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._fileEditorFactory.js +1 -0
  1375. package/vscode/src/vs/workbench/contrib/files/browser/files.js +2 -0
  1376. package/vscode/src/vs/workbench/contrib/files/browser/files.service.js +2 -0
  1377. package/vscode/src/vs/workbench/contrib/files/browser/media/explorerviewlet.css.js +2 -0
  1378. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +3 -1
  1379. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +6 -4
  1380. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +24 -17
  1381. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +20 -18
  1382. package/vscode/src/vs/workbench/contrib/files/browser/views/media/openeditors.css.js +2 -0
  1383. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +14 -12
  1384. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +7 -5
  1385. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +3 -1
  1386. package/vscode/src/vs/workbench/contrib/files/common/explorerFileNestingTrie.js +1 -0
  1387. package/vscode/src/vs/workbench/contrib/files/common/explorerModel.js +2 -0
  1388. package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -14
  1389. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +4 -3
  1390. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +2 -0
  1391. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +1 -0
  1392. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +2 -0
  1393. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +7 -5
  1394. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +38 -43
  1395. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +28 -11
  1396. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSavingService.service.js +2 -0
  1397. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +3 -1
  1398. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.js +2 -0
  1399. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +3 -1
  1400. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +6 -70
  1401. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +26 -10
  1402. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +3 -1
  1403. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.service.js +2 -0
  1404. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +2 -0
  1405. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.service.js +2 -0
  1406. package/vscode/src/vs/workbench/contrib/issue/browser/issueTroubleshoot.service.js +2 -0
  1407. package/vscode/src/vs/workbench/contrib/issue/common/issue.service.js +2 -0
  1408. package/vscode/src/vs/workbench/contrib/list/browser/list.contribution.js +2 -0
  1409. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -0
  1410. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +7 -5
  1411. package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.service.js +2 -0
  1412. package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +206 -0
  1413. package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.js +1 -0
  1414. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +4 -2
  1415. package/vscode/src/vs/workbench/contrib/markdown/browser/markedGfmHeadingIdPlugin.js +1 -0
  1416. package/vscode/src/vs/workbench/contrib/markers/common/markers.js +2 -0
  1417. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +3 -1
  1418. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +31 -29
  1419. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +2 -0
  1420. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +2 -0
  1421. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/editing.js +2 -0
  1422. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +2 -0
  1423. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +2 -0
  1424. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +5 -3
  1425. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +3 -1
  1426. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/rangeUtils.js +2 -0
  1427. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +2 -0
  1428. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +2 -0
  1429. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +4 -2
  1430. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +24 -22
  1431. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +2 -0
  1432. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +10 -8
  1433. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +3 -1
  1434. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +5 -3
  1435. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +2 -0
  1436. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.js +2 -0
  1437. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +3 -1
  1438. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +12 -10
  1439. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +2 -0
  1440. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +2 -0
  1441. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +2 -0
  1442. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +22 -20
  1443. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +8 -6
  1444. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +2 -0
  1445. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +12 -10
  1446. package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.js +2 -0
  1447. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCellStatusBarService.service.js +2 -0
  1448. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +6 -3
  1449. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +6 -2
  1450. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +5 -3
  1451. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +5 -1
  1452. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModelResolverService.service.js +2 -0
  1453. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.js +1 -0
  1454. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.js +2 -0
  1455. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.js +1 -0
  1456. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.js +2 -0
  1457. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +1 -0
  1458. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.service.js +2 -0
  1459. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKeymapService.service.js +2 -0
  1460. package/vscode/src/vs/workbench/contrib/notebook/common/notebookLoggingService.service.js +2 -0
  1461. package/vscode/src/vs/workbench/contrib/notebook/common/notebookPerformance.js +1 -0
  1462. package/vscode/src/vs/workbench/contrib/notebook/common/notebookRange.js +1 -0
  1463. package/vscode/src/vs/workbench/contrib/notebook/common/notebookRendererMessagingService.service.js +2 -0
  1464. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.js +1 -0
  1465. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.js +2 -0
  1466. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.js +1 -0
  1467. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.service.js +2 -0
  1468. package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +2 -0
  1469. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.js +2 -0
  1470. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +7 -5
  1471. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +2 -0
  1472. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +14 -12
  1473. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +13 -11
  1474. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +52 -50
  1475. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +3 -1
  1476. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +22 -11
  1477. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.js +2 -0
  1478. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +23 -21
  1479. package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +2 -0
  1480. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +19 -17
  1481. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +19 -17
  1482. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +70 -68
  1483. package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +2 -0
  1484. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +4 -2
  1485. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +45 -36
  1486. package/vscode/src/vs/workbench/contrib/scm/browser/media/dirtydiffDecorator.css.js +2 -0
  1487. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +16 -14
  1488. package/vscode/src/vs/workbench/contrib/scm/browser/util.js +2 -0
  1489. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.js +2 -0
  1490. package/vscode/src/vs/workbench/contrib/scm/common/scm.js +1 -0
  1491. package/vscode/src/vs/workbench/contrib/scm/common/scm.service.js +2 -0
  1492. package/vscode/src/vs/workbench/contrib/search/browser/AISearch/aiSearchModelBase.js +7 -0
  1493. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +14 -16
  1494. package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +2 -0
  1495. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModelBase.js +23 -0
  1496. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +3 -1
  1497. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/searchNotebookHelpers.js +3 -1
  1498. package/vscode/src/vs/workbench/contrib/search/browser/replace.service.js +2 -0
  1499. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +8 -5
  1500. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +18 -17
  1501. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +359 -0
  1502. package/vscode/src/vs/workbench/contrib/search/browser/searchCompare.js +117 -0
  1503. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +29 -0
  1504. package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon.js +110 -0
  1505. package/vscode/src/vs/workbench/contrib/search/browser/{searchModel.service.js → searchTreeModel/searchViewModelWorkbenchService.service.js} +3 -1
  1506. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +4 -2
  1507. package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +2 -0
  1508. package/vscode/src/vs/workbench/contrib/search/common/cellSearchModel.js +2 -0
  1509. package/vscode/src/vs/workbench/contrib/search/common/constants.js +2 -0
  1510. package/vscode/src/vs/workbench/contrib/search/common/notebookSearch.service.js +2 -0
  1511. package/vscode/src/vs/workbench/contrib/search/common/search.js +2 -0
  1512. package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.service.js +2 -0
  1513. package/vscode/src/vs/workbench/contrib/search/common/searchNotebookHelpers.js +2 -0
  1514. package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +2 -0
  1515. package/vscode/src/vs/workbench/contrib/share/common/share.service.js +2 -0
  1516. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +3 -1
  1517. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +4 -2
  1518. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +5 -3
  1519. package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.service.js +2 -0
  1520. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +5 -3
  1521. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +13 -11
  1522. package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +3 -1
  1523. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +31 -29
  1524. package/vscode/src/vs/workbench/contrib/speech/common/speechService.service.js +2 -0
  1525. package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +2 -0
  1526. package/vscode/src/vs/workbench/contrib/tags/common/workspaceTags.service.js +2 -0
  1527. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +7 -5
  1528. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +7 -5
  1529. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.js +2 -0
  1530. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +5 -3
  1531. package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +98 -0
  1532. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +17 -28
  1533. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +5 -1
  1534. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -0
  1535. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +2 -0
  1536. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +2 -0
  1537. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermAddonImporter.d.ts +24 -0
  1538. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +28 -18
  1539. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.service.js +2 -0
  1540. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +0 -3
  1541. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.js +2 -0
  1542. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +26 -24
  1543. package/vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.service.js +2 -0
  1544. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/links.service.js +2 -0
  1545. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +1 -0
  1546. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.js +2 -0
  1547. package/vscode/src/vs/workbench/contrib/testing/common/getComputedState.js +3 -1
  1548. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +2 -0
  1549. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.js +2 -0
  1550. package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.service.js +2 -0
  1551. package/vscode/src/vs/workbench/contrib/testing/common/testId.js +1 -0
  1552. package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +3 -1
  1553. package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.service.js +2 -0
  1554. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -4
  1555. package/vscode/src/vs/workbench/contrib/testing/common/testResultService.service.js +2 -0
  1556. package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.service.js +2 -0
  1557. package/vscode/src/vs/workbench/contrib/testing/common/testService.service.js +2 -0
  1558. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +2 -0
  1559. package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.service.js +2 -0
  1560. package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.service.js +2 -0
  1561. package/vscode/src/vs/workbench/contrib/testing/common/testingPeekOpener.service.js +2 -0
  1562. package/vscode/src/vs/workbench/contrib/testing/common/testingStates.js +2 -0
  1563. package/vscode/src/vs/workbench/contrib/timeline/common/timeline.js +2 -0
  1564. package/vscode/src/vs/workbench/contrib/timeline/common/timeline.service.js +2 -0
  1565. package/vscode/src/vs/workbench/contrib/typeHierarchy/common/typeHierarchy.js +2 -0
  1566. package/vscode/src/vs/workbench/contrib/update/common/update.js +1 -0
  1567. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainService.js +3 -1
  1568. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainService.service.js +2 -0
  1569. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +8 -6
  1570. package/vscode/src/vs/workbench/contrib/url/common/urlGlob.js +1 -0
  1571. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -1
  1572. package/vscode/src/vs/workbench/contrib/webview/browser/webview.js +2 -0
  1573. package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.js +2 -0
  1574. package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +2 -0
  1575. package/vscode/src/vs/workbench/contrib/webview/common/webview.js +2 -0
  1576. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +3 -1
  1577. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +2 -0
  1578. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +4 -1
  1579. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.js +3 -1
  1580. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.js +2 -0
  1581. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.service.js +2 -0
  1582. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service.js +2 -0
  1583. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +4 -2
  1584. package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.js +2 -0
  1585. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +145 -0
  1586. package/vscode/src/vs/workbench/services/activity/common/activity.js +6 -4
  1587. package/vscode/src/vs/workbench/services/activity/common/activity.service.js +2 -0
  1588. package/vscode/src/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.service.js +2 -0
  1589. package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.js +1 -0
  1590. package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service.js +2 -0
  1591. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.js +2 -0
  1592. package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.service.js +2 -0
  1593. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +6 -4
  1594. package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.service.js +2 -0
  1595. package/vscode/src/vs/workbench/services/authentication/common/authentication.js +1 -0
  1596. package/vscode/src/vs/workbench/services/authentication/common/authentication.service.js +2 -0
  1597. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -3
  1598. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service.js +2 -0
  1599. package/vscode/src/vs/workbench/services/banner/browser/bannerService.service.js +2 -0
  1600. package/vscode/src/vs/workbench/services/configuration/common/configuration.js +1 -0
  1601. package/vscode/src/vs/workbench/services/configuration/common/configuration.service.js +2 -0
  1602. package/vscode/src/vs/workbench/services/configuration/common/jsonEditing.service.js +2 -0
  1603. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +2 -0
  1604. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.js +2 -0
  1605. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +18 -16
  1606. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +3 -1
  1607. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +19 -17
  1608. package/vscode/src/vs/workbench/services/decorations/common/decorations.service.js +2 -0
  1609. package/vscode/src/vs/workbench/services/driver/browser/driver.js +2 -0
  1610. package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +2 -0
  1611. package/vscode/src/vs/workbench/services/editor/browser/editorService.js +4 -2
  1612. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +2 -0
  1613. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.service.js +2 -0
  1614. package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.js +2 -0
  1615. package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +3 -1
  1616. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +2 -0
  1617. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.js +2 -0
  1618. package/vscode/src/vs/workbench/services/editor/common/editorPaneService.service.js +2 -0
  1619. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +3 -1
  1620. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.js +2 -0
  1621. package/vscode/src/vs/workbench/services/editor/common/editorService.js +2 -0
  1622. package/vscode/src/vs/workbench/services/editor/common/editorService.service.js +2 -0
  1623. package/vscode/src/vs/workbench/services/environment/browser/environmentService.service.js +2 -0
  1624. package/vscode/src/vs/workbench/services/environment/common/environmentService.service.js +2 -0
  1625. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.service.js +2 -0
  1626. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.js +2 -0
  1627. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.service.js +2 -0
  1628. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +3 -1
  1629. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.js +3 -1
  1630. package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.js +2 -0
  1631. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +8 -6
  1632. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.js +2 -0
  1633. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.service.js +2 -0
  1634. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +2 -0
  1635. package/vscode/src/vs/workbench/services/extensions/common/extensionHostKind.js +2 -0
  1636. package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.js +2 -0
  1637. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +2 -0
  1638. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.js +2 -0
  1639. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.js +1 -0
  1640. package/vscode/src/vs/workbench/services/extensions/common/extensions.js +2 -0
  1641. package/vscode/src/vs/workbench/services/extensions/common/extensions.service.js +2 -0
  1642. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +85 -83
  1643. package/vscode/src/vs/workbench/services/extensions/common/lazyPromise.js +3 -1
  1644. package/vscode/src/vs/workbench/services/extensions/common/proxyIdentifier.js +1 -0
  1645. package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +5 -3
  1646. package/vscode/src/vs/workbench/services/extensions/common/workspaceContains.js +2 -0
  1647. package/vscode/src/vs/workbench/services/extensions/worker/polyfillNestedWorker.js +1 -0
  1648. package/vscode/src/vs/workbench/services/files/common/elevatedFileService.service.js +2 -0
  1649. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +7 -5
  1650. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.js +2 -0
  1651. package/vscode/src/vs/workbench/services/history/common/history.js +1 -0
  1652. package/vscode/src/vs/workbench/services/history/common/history.service.js +2 -0
  1653. package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +4 -1
  1654. package/vscode/src/vs/workbench/services/host/browser/host.service.js +2 -0
  1655. package/vscode/src/vs/workbench/services/integrity/common/integrity.service.js +2 -0
  1656. package/vscode/src/vs/workbench/services/keybinding/browser/unboundCommands.js +2 -0
  1657. package/vscode/src/vs/workbench/services/keybinding/common/fallbackKeyboardMapper.js +3 -1
  1658. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.service.js +2 -0
  1659. package/vscode/src/vs/workbench/services/language/common/languageService.js +30 -28
  1660. package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +1 -0
  1661. package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.service.js +2 -0
  1662. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.service.js +2 -0
  1663. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +3 -4
  1664. package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.js +2 -0
  1665. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js +1 -0
  1666. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.service.js +2 -0
  1667. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +2 -0
  1668. package/vscode/src/vs/workbench/services/localization/common/locale.service.js +2 -0
  1669. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -0
  1670. package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +3 -1
  1671. package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.service.js +2 -0
  1672. package/vscode/src/vs/workbench/services/outline/browser/outline.service.js +2 -0
  1673. package/vscode/src/vs/workbench/services/output/common/output.js +2 -0
  1674. package/vscode/src/vs/workbench/services/output/common/output.service.js +2 -0
  1675. package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.d.ts +4 -0
  1676. package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.js +2 -0
  1677. package/vscode/src/vs/workbench/services/path/common/pathService.service.js +2 -0
  1678. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +4 -2
  1679. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +12 -10
  1680. package/vscode/src/vs/workbench/services/preferences/common/preferences.js +2 -0
  1681. package/vscode/src/vs/workbench/services/preferences/common/preferences.service.js +2 -0
  1682. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -2
  1683. package/vscode/src/vs/workbench/services/progress/browser/progressIndicator.js +2 -0
  1684. package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.service.js +2 -0
  1685. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +10 -8
  1686. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.js +2 -0
  1687. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +9 -7
  1688. package/vscode/src/vs/workbench/services/search/common/fileSearchManager.js +10 -8
  1689. package/vscode/src/vs/workbench/services/search/common/folderQuerySearchTree.js +50 -0
  1690. package/vscode/src/vs/workbench/services/search/common/ignoreFile.js +2 -0
  1691. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +3 -1
  1692. package/vscode/src/vs/workbench/services/search/common/search.js +2 -0
  1693. package/vscode/src/vs/workbench/services/search/common/search.service.js +2 -0
  1694. package/vscode/src/vs/workbench/services/search/common/searchExtConversionTypes.js +2 -0
  1695. package/vscode/src/vs/workbench/services/search/common/searchExtTypes.js +1 -0
  1696. package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +9 -8
  1697. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +1 -0
  1698. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.js +2 -0
  1699. package/vscode/src/vs/workbench/services/storage/browser/storageService.js +3 -1
  1700. package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.service.js +2 -0
  1701. package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.service.js +2 -0
  1702. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +11 -9
  1703. package/vscode/src/vs/workbench/services/textMate/common/TMHelper.js +1 -0
  1704. package/vscode/src/vs/workbench/services/textfile/common/encoding.js +3 -1
  1705. package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +2 -0
  1706. package/vscode/src/vs/workbench/services/textfile/common/textEditorService.service.js +2 -0
  1707. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +11 -3
  1708. package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +2 -0
  1709. package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.js +2 -0
  1710. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +28 -26
  1711. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +31 -58
  1712. package/vscode/src/vs/workbench/services/themes/common/hostColorSchemeService.service.js +2 -0
  1713. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +15 -13
  1714. package/vscode/src/vs/workbench/services/themes/common/plistParser.js +1 -0
  1715. package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +1 -0
  1716. package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +2 -0
  1717. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +2 -0
  1718. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.service.js +2 -0
  1719. package/vscode/src/vs/workbench/services/timer/browser/timerService.service.js +2 -0
  1720. package/vscode/src/vs/workbench/services/title/browser/titleService.service.js +2 -0
  1721. package/vscode/src/vs/workbench/services/treeSitter/browser/treeSitterTokenizationFeature.service.js +2 -0
  1722. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +2 -0
  1723. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +2 -0
  1724. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.js +2 -0
  1725. package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.service.js +2 -0
  1726. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.service.js +2 -0
  1727. package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +3 -1
  1728. package/vscode/src/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles.service.js +2 -0
  1729. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -5
  1730. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.d.ts +0 -1
  1731. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.js +2 -0
  1732. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +15 -1
  1733. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileService.js +2 -8
  1734. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +14 -12
  1735. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.service.js +2 -0
  1736. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +3 -1
  1737. package/vscode/src/vs/workbench/services/views/common/viewsService.service.js +2 -0
  1738. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +2 -0
  1739. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +26 -18
  1740. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopy.js +1 -0
  1741. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.js +2 -0
  1742. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.js +2 -0
  1743. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.js +2 -0
  1744. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyHistory.service.js +2 -0
  1745. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.js +2 -0
  1746. package/vscode/src/vs/workbench/services/workspaces/browser/workspaces.js +2 -0
  1747. package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.js +2 -0
  1748. package/vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.service.js +2 -0
  1749. package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +2 -0
  1750. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +29 -4
  1751. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +13 -1
  1752. package/vscode-dts/vscode.proposed.chatProvider.d.ts +1 -1
  1753. package/vscode-dts/vscode.proposed.chatReferenceBinaryData.d.ts +33 -0
  1754. package/vscode-dts/vscode.proposed.inlineEdit.d.ts +2 -0
  1755. package/vscode-dts/vscode.proposed.lmTools.d.ts +1 -225
  1756. package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +4 -1
  1757. package/vscode-dts/vscode.proposed.notebookExecution.d.ts +1 -1
  1758. package/vscode-dts/vscode.proposed.scmActionButton.d.ts +1 -2
  1759. package/workbench.js +2 -0
  1760. package/workers/extensionHost.worker.js +1 -1
  1761. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.css.js +0 -4
  1762. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +0 -289
  1763. package/vscode/src/vs/base/common/amd.js +0 -102
  1764. package/vscode/src/vs/editor/contrib/inlineEdit/browser/commandIds.js +0 -5
  1765. package/vscode/src/vs/editor/contrib/inlineEdit/browser/commands.js +0 -145
  1766. package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +0 -194
  1767. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.js +0 -9
  1768. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEdit.css.js +0 -4
  1769. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +0 -347
  1770. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.css.js +0 -4
  1771. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +0 -198
  1772. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget.css.js +0 -4
  1773. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget.js +0 -301
  1774. package/vscode/src/vs/platform/actions/browser/buttonbar.js +0 -158
  1775. package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +0 -60
  1776. package/vscode/src/vs/platform/terminal/common/terminalStrings.js +0 -16
  1777. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +0 -290
  1778. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +0 -761
  1779. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +0 -140
  1780. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +0 -425
  1781. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +0 -2132
  1782. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +0 -1433
  1783. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +0 -155
  1784. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +0 -328
  1785. package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +0 -156
  1786. package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +0 -4
  1787. package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +0 -4
  1788. package/vscode/src/vs/workbench/browser/parts/editor/media/editortitlecontrol.css.js +0 -4
  1789. package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +0 -4
  1790. package/vscode/src/vs/workbench/browser/parts/editor/media/singleeditortabscontrol.css.js +0 -4
  1791. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +0 -1766
  1792. package/vscode/src/vs/workbench/browser/parts/editor/multiRowEditorTabsControl.js +0 -162
  1793. package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +0 -60
  1794. package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +0 -255
  1795. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +0 -4
  1796. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +0 -4
  1797. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +0 -4
  1798. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +0 -4
  1799. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +0 -145
  1800. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +0 -71
  1801. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +0 -293
  1802. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +0 -289
  1803. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +0 -203
  1804. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +0 -167
  1805. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsTelemetry.js +0 -36
  1806. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +0 -436
  1807. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +0 -420
  1808. package/vscode/src/vs/workbench/browser/web.api.js +0 -8
  1809. package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +0 -110
  1810. package/vscode/src/vs/workbench/common/notifications.js +0 -472
  1811. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -414
  1812. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +0 -17
  1813. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatConstants.js +0 -5
  1814. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +0 -182
  1815. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +0 -308
  1816. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +0 -8
  1817. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +0 -96
  1818. package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +0 -111
  1819. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +0 -169
  1820. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +0 -48
  1821. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCollections.js +0 -27
  1822. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +0 -34
  1823. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +0 -57
  1824. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationWidget.js +0 -47
  1825. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownContentPart.js +0 -145
  1826. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatProgressContentPart.js +0 -37
  1827. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +0 -371
  1828. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTaskContentPart.js +0 -37
  1829. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +0 -114
  1830. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.service.js +0 -3
  1831. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInvocationPart.js +0 -68
  1832. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +0 -170
  1833. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatWarningContentPart.js +0 -34
  1834. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatConfirmationWidget.css.js +0 -4
  1835. package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +0 -206
  1836. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +0 -752
  1837. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +0 -167
  1838. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +0 -49
  1839. package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +0 -73
  1840. package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.js +0 -228
  1841. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +0 -943
  1842. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +0 -853
  1843. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +0 -241
  1844. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownRenderer.js +0 -109
  1845. package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +0 -81
  1846. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +0 -872
  1847. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +0 -4
  1848. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +0 -740
  1849. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatContextAttachments.js +0 -53
  1850. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +0 -242
  1851. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariablesConstant.js +0 -2
  1852. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +0 -532
  1853. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +0 -4
  1854. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css.js +0 -4
  1855. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatInlineAnchorWidget.css.js +0 -4
  1856. package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +0 -129
  1857. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +0 -20
  1858. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -852
  1859. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -177
  1860. package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +0 -2
  1861. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +0 -227
  1862. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +0 -331
  1863. package/vscode/src/vs/workbench/contrib/chat/common/chatWordCounter.js +0 -35
  1864. package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.js +0 -155
  1865. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +0 -46
  1866. package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +0 -75
  1867. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +0 -102
  1868. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +0 -674
  1869. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +0 -305
  1870. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +0 -77
  1871. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +0 -260
  1872. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +0 -111
  1873. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +0 -107
  1874. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +0 -349
  1875. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +0 -423
  1876. package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +0 -3
  1877. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +0 -1369
  1878. package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +0 -17
  1879. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +0 -126
  1880. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +0 -444
  1881. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +0 -527
  1882. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +0 -218
  1883. package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +0 -4
  1884. package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +0 -4
  1885. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +0 -104
  1886. package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +0 -55
  1887. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +0 -72
  1888. package/vscode/src/vs/workbench/contrib/comments/common/commentsConfiguration.js +0 -2
  1889. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +0 -751
  1890. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +0 -534
  1891. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.service.js +0 -3
  1892. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +0 -1753
  1893. package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -370
  1894. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -964
  1895. package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +0 -160
  1896. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -100
  1897. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -264
  1898. package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +0 -4
  1899. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +0 -1666
  1900. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +0 -123
  1901. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +0 -31
  1902. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -81
  1903. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +0 -295
  1904. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +0 -548
  1905. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +0 -4
  1906. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +0 -152
  1907. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/clipboard/cellOutputClipboard.js +0 -49
  1908. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findMatchDecorationModel.js +0 -128
  1909. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +0 -415
  1910. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +0 -580
  1911. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +0 -153
  1912. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +0 -17
  1913. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +0 -761
  1914. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +0 -317
  1915. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +0 -253
  1916. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +0 -52
  1917. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +0 -1735
  1918. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +0 -264
  1919. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +0 -793
  1920. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffNestedCellViewModel.js +0 -113
  1921. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +0 -59
  1922. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/eventDispatcher.js +0 -37
  1923. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiff.css.js +0 -4
  1924. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +0 -732
  1925. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +0 -29
  1926. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +0 -556
  1927. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +0 -186
  1928. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +0 -508
  1929. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +0 -263
  1930. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditorInput.js +0 -45
  1931. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +0 -36
  1932. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css.js +0 -4
  1933. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellChat.css.js +0 -4
  1934. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellEditorHint.css.js +0 -4
  1935. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellInsertToolbar.css.js +0 -4
  1936. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellOutput.css.js +0 -4
  1937. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellStatusBar.css.js +0 -4
  1938. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookCellTitleToolbar.css.js +0 -4
  1939. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookDnd.css.js +0 -4
  1940. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookEditorStickyScroll.css.js +0 -4
  1941. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFocusIndicator.css.js +0 -4
  1942. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookFolding.css.js +0 -4
  1943. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookKernelActionViewItem.css.js +0 -4
  1944. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookOutline.css.js +0 -4
  1945. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebookToolbar.css.js +0 -4
  1946. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +0 -100
  1947. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorExtensions.js +0 -29
  1948. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +0 -2675
  1949. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +0 -32
  1950. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookLogger.js +0 -17
  1951. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +0 -645
  1952. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookViewEvents.js +0 -27
  1953. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellPart.js +0 -129
  1954. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +0 -99
  1955. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +0 -137
  1956. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +0 -208
  1957. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDecorations.js +0 -35
  1958. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +0 -377
  1959. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +0 -97
  1960. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +0 -224
  1961. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +0 -93
  1962. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocus.js +0 -20
  1963. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellFocusIndicator.js +0 -85
  1964. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +0 -677
  1965. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +0 -59
  1966. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +0 -318
  1967. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbarStickyScroll.js +0 -23
  1968. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +0 -240
  1969. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatPart.js +0 -21
  1970. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +0 -497
  1971. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +0 -80
  1972. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +0 -108
  1973. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellInput.js +0 -29
  1974. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +0 -45
  1975. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +0 -112
  1976. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +0 -448
  1977. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +0 -53
  1978. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellEditorPool.js +0 -114
  1979. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +0 -1196
  1980. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +0 -250
  1981. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +0 -1663
  1982. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +0 -351
  1983. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +0 -2304
  1984. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewThemeMapping.js +0 -65
  1985. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +0 -571
  1986. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +0 -87
  1987. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +0 -64
  1988. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellSelectionCollection.js +0 -40
  1989. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +0 -439
  1990. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/eventDispatcher.js +0 -31
  1991. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +0 -257
  1992. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +0 -252
  1993. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineDataSourceFactory.service.js +0 -3
  1994. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +0 -820
  1995. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/viewContext.js +0 -8
  1996. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +0 -386
  1997. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +0 -602
  1998. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +0 -164
  1999. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookHorizontalTracker.js +0 -47
  2000. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +0 -590
  2001. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +0 -167
  2002. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +0 -100
  2003. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +0 -124
  2004. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +0 -136
  2005. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellOutputTextModel.js +0 -101
  2006. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +0 -405
  2007. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +0 -85
  2008. package/vscode/src/vs/workbench/contrib/notebook/common/notebookDiffEditorInput.js +0 -105
  2009. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +0 -2222
  2010. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +0 -5
  2011. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +0 -198
  2012. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +0 -224
  2013. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +0 -168
  2014. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminal.accessibility.js +0 -4
  2015. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatControllerHolder.js +0 -5
  2016. package/vscode/src/vs/workbench/contrib/terminalContrib/find/common/terminal.find.js +0 -11
  2017. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminal.suggest.js +0 -11
  2018. package/vscode/src/vs/workbench/services/search/common/replace.js +0 -203
  2019. package/vscode/src/vs/workbench/services/search/common/searchHelpers.js +0 -72
  2020. package/vscode-dts/vscode.proposed.contribChatParticipantDetection.d.ts +0 -7
@@ -1,2675 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import './media/notebook.css.js';
3
- import './media/notebookCellChat.css.js';
4
- import './media/notebookCellEditorHint.css.js';
5
- import './media/notebookCellInsertToolbar.css.js';
6
- import './media/notebookCellStatusBar.css.js';
7
- import './media/notebookCellTitleToolbar.css.js';
8
- import './media/notebookFocusIndicator.css.js';
9
- import './media/notebookToolbar.css.js';
10
- import './media/notebookDnd.css.js';
11
- import './media/notebookFolding.css.js';
12
- import './media/notebookCellOutput.css.js';
13
- import './media/notebookEditorStickyScroll.css.js';
14
- import './media/notebookKernelActionViewItem.css.js';
15
- import './media/notebookOutline.css.js';
16
- import { getWindow, append, createStyleSheet, addStandardDisposableGenericMouseDownListener, addStandardDisposableGenericMouseUpListener, trackFocus, runWhenWindowIdle, scheduleAtNextAnimationFrame, size, isAncestorOfActiveElement, $ as $$1 } from '../../../../base/browser/dom.js';
17
- import { mainWindow } from '../../../../base/browser/window.js';
18
- import { SequencerByKey, DeferredPromise } from '../../../../base/common/async.js';
19
- import { Color, RGBA } from '../../../../base/common/color.js';
20
- import { onUnexpectedError } from '../../../../base/common/errors.js';
21
- import { Emitter, Event } from '../../../../base/common/event.js';
22
- import { Disposable, DisposableStore, combinedDisposable, dispose, toDisposable } from '../../../../base/common/lifecycle.js';
23
- import { setTimeout0 } from '../../../../base/common/platform.js';
24
- import { isEqual, extname } from '../../../../base/common/resources.js';
25
- import { generateUuid } from '../../../../base/common/uuid.js';
26
- import { FontMeasurements } from '../../../../editor/browser/config/fontMeasurements.js';
27
- import { BareFontInfo } from '../../../../editor/common/config/fontInfo.js';
28
- import { Range } from '../../../../editor/common/core/range.js';
29
- import { SuggestController } from '../../../../editor/contrib/suggest/browser/suggestController.js';
30
- import { localize } from '../../../../nls.js';
31
- import { MenuId } from '../../../../platform/actions/common/actions.js';
32
- import { IConfigurationService } from '../../../../platform/configuration/common/configuration.service.js';
33
- import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
34
- import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.service.js';
35
- import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.service.js';
36
- import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
37
- import { ServiceCollection } from '../../../../platform/instantiation/common/serviceCollection.js';
38
- import { ILayoutService } from '../../../../platform/layout/browser/layoutService.service.js';
39
- import { registerZIndex, ZIndex } from '../../../../platform/layout/browser/zIndexRegistry.js';
40
- import { IEditorProgressService } from '../../../../platform/progress/common/progress.service.js';
41
- import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
42
- import { registerColor, transparent } from '../../../../platform/theme/common/colorUtils.js';
43
- import { focusBorder, errorForeground, foreground, contrastBorder } from '../../../../platform/theme/common/colors/baseColors.js';
44
- import '../../../../platform/theme/common/colors/chartsColors.js';
45
- import '../../../../platform/theme/common/colors/editorColors.js';
46
- import '../../../../platform/theme/common/colors/inputColors.js';
47
- import { listInactiveSelectionBackground } from '../../../../platform/theme/common/colors/listColors.js';
48
- import '../../../../platform/theme/common/colors/menuColors.js';
49
- import '../../../../platform/theme/common/colors/minimapColors.js';
50
- import { scrollbarSliderBackground, scrollbarSliderHoverBackground, scrollbarSliderActiveBackground } from '../../../../platform/theme/common/colors/miscColors.js';
51
- import '../../../../platform/theme/common/colors/quickpickColors.js';
52
- import '../../../../platform/theme/common/colors/searchColors.js';
53
- import { PANEL_BORDER, SIDE_BAR_BACKGROUND, EDITOR_PANE_BACKGROUND } from '../../../common/theme.js';
54
- import { debugIconStartForeground } from '../../debug/browser/debugColors.js';
55
- import { CellEditState, CellFocusMode, CellRevealRangeType, ScrollToRevealBehavior } from './notebookBrowser.js';
56
- import { NotebookEditorExtensionsRegistry } from './notebookEditorExtensions.js';
57
- import { INotebookEditorService } from './services/notebookEditorService.service.js';
58
- import { notebookDebug } from './notebookLogger.js';
59
- import { NotebookLayoutChangedEvent } from './notebookViewEvents.js';
60
- import { CellContextKeyManager } from './view/cellParts/cellContextKeys.js';
61
- import { CellDragAndDropController } from './view/cellParts/cellDnd.js';
62
- import { NotebookCellList, ListViewInfoAccessor, NOTEBOOK_WEBVIEW_BOUNDARY } from './view/notebookCellList.js';
63
- import { BackLayerWebView } from './view/renderers/backLayerWebView.js';
64
- import { CodeCellRenderer, MarkupCellRenderer, NotebookCellListDelegate } from './view/renderers/cellRenderer.js';
65
- import { outputDisplayLimit, CodeCellViewModel } from './viewModel/codeCellViewModel.js';
66
- import { NotebookEventDispatcher } from './viewModel/eventDispatcher.js';
67
- import { MarkupCellViewModel } from './viewModel/markupCellViewModel.js';
68
- import { NotebookViewModel } from './viewModel/notebookViewModelImpl.js';
69
- import { ViewContext } from './viewModel/viewContext.js';
70
- import { NotebookEditorWorkbenchToolbar } from './viewParts/notebookEditorToolbar.js';
71
- import { NotebookEditorContextKeys } from './viewParts/notebookEditorWidgetContextKeys.js';
72
- import { NotebookOverviewRuler } from './viewParts/notebookOverviewRuler.js';
73
- import { ListTopCellToolbar } from './viewParts/notebookTopCellToolbar.js';
74
- import { SelectionStateType, RENDERER_NOT_AVAILABLE, CellKind, NotebookFindScopeType } from '../common/notebookCommon.js';
75
- import { NOTEBOOK_EDITOR_FOCUSED, NOTEBOOK_OUTPUT_FOCUSED, NOTEBOOK_OUTPUT_INPUT_FOCUSED, NOTEBOOK_EDITOR_EDITABLE, NOTEBOOK_CURSOR_NAVIGATION_MODE } from '../common/notebookContextKeys.js';
76
- import { INotebookExecutionService } from '../common/notebookExecutionService.service.js';
77
- import { INotebookExecutionStateService } from '../common/notebookExecutionStateService.service.js';
78
- import { INotebookKernelService } from '../common/notebookKernelService.service.js';
79
- import { NotebookOptions, OutputInnerContainerTopPadding } from './notebookOptions.js';
80
- import { cellRangesToIndexes } from '../common/notebookRange.js';
81
- import { INotebookRendererMessagingService } from '../common/notebookRendererMessagingService.service.js';
82
- import { INotebookService } from '../common/notebookService.service.js';
83
- import { EditorExtensionsRegistry } from '../../../../editor/browser/editorExtensions.js';
84
- import { IEditorGroupsService } from '../../../services/editor/common/editorGroupsService.service.js';
85
- import { BaseCellEditorOptions } from './viewModel/cellEditorOptions.js';
86
- import { FloatingEditorClickMenu } from '../../../browser/codeeditor.js';
87
- import { CellFindMatchModel } from './contrib/find/findModel.js';
88
- import { INotebookLoggingService } from '../common/notebookLoggingService.service.js';
89
- import { Schemas } from '../../../../base/common/network.js';
90
- import { DropIntoEditorController } from '../../../../editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js';
91
- import { CopyPasteController } from '../../../../editor/contrib/dropOrPasteInto/browser/copyPasteController.js';
92
- import { NotebookStickyScroll } from './viewParts/notebookEditorStickyScroll.js';
93
- import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.service.js';
94
- import { PixelRatio } from '../../../../base/browser/pixelRatio.js';
95
- import { PreventDefaultContextMenuItemsContextKeyName } from '../../webview/browser/webview.contribution.js';
96
- import { NotebookAccessibilityProvider } from './notebookAccessibilityProvider.js';
97
- import { NotebookHorizontalTracker } from './viewParts/notebookHorizontalTracker.js';
98
- import { NotebookCellEditorPool } from './view/notebookCellEditorPool.js';
99
- const $ = $$1;
100
- function getDefaultNotebookCreationOptions() {
101
- const skipContributions = [
102
- 'editor.contrib.review',
103
- FloatingEditorClickMenu.ID,
104
- 'editor.contrib.dirtydiff',
105
- 'editor.contrib.testingOutputPeek',
106
- 'editor.contrib.testingDecorations',
107
- 'store.contrib.stickyScrollController',
108
- 'editor.contrib.findController',
109
- 'editor.contrib.emptyTextEditorHint'
110
- ];
111
- const contributions = EditorExtensionsRegistry.getEditorContributions().filter(c => skipContributions.indexOf(c.id) === -1);
112
- return {
113
- menuIds: {
114
- notebookToolbar: MenuId.NotebookToolbar,
115
- cellTitleToolbar: MenuId.NotebookCellTitle,
116
- cellDeleteToolbar: MenuId.NotebookCellDelete,
117
- cellInsertToolbar: MenuId.NotebookCellBetween,
118
- cellTopInsertToolbar: MenuId.NotebookCellListTop,
119
- cellExecuteToolbar: MenuId.NotebookCellExecute,
120
- cellExecutePrimary: MenuId.NotebookCellExecutePrimary,
121
- },
122
- cellEditorContributions: contributions
123
- };
124
- }
125
- let NotebookEditorWidget = class NotebookEditorWidget extends Disposable {
126
- get isVisible() {
127
- return this._isVisible;
128
- }
129
- get isDisposed() {
130
- return this._isDisposed;
131
- }
132
- set viewModel(newModel) {
133
- this._onWillChangeModel.fire(this._notebookViewModel?.notebookDocument);
134
- this._notebookViewModel = newModel;
135
- this._onDidChangeModel.fire(newModel?.notebookDocument);
136
- }
137
- get viewModel() {
138
- return this._notebookViewModel;
139
- }
140
- get textModel() {
141
- return this._notebookViewModel?.notebookDocument;
142
- }
143
- get isReadOnly() {
144
- return this._notebookViewModel?.options.isReadOnly ?? false;
145
- }
146
- get activeCodeEditor() {
147
- if (this._isDisposed) {
148
- return;
149
- }
150
- const [focused] = this._list.getFocusedElements();
151
- return this._renderedEditors.get(focused);
152
- }
153
- get activeCellAndCodeEditor() {
154
- if (this._isDisposed) {
155
- return;
156
- }
157
- const [focused] = this._list.getFocusedElements();
158
- const editor = this._renderedEditors.get(focused);
159
- if (!editor) {
160
- return;
161
- }
162
- return [focused, editor];
163
- }
164
- get codeEditors() {
165
- return [...this._renderedEditors];
166
- }
167
- get visibleRanges() {
168
- return this._list.visibleRanges || [];
169
- }
170
- get notebookOptions() {
171
- return this._notebookOptions;
172
- }
173
- constructor(creationOptions, dimension, instantiationService, editorGroupsService, notebookRendererMessaging, notebookEditorService, notebookKernelService, _notebookService, configurationService, contextKeyService, layoutService, contextMenuService, telemetryService, notebookExecutionService, notebookExecutionStateService, editorProgressService, logService, keybindingService) {
174
- super();
175
- this.creationOptions = creationOptions;
176
- this.notebookRendererMessaging = notebookRendererMessaging;
177
- this.notebookEditorService = notebookEditorService;
178
- this.notebookKernelService = notebookKernelService;
179
- this._notebookService = _notebookService;
180
- this.configurationService = configurationService;
181
- this.layoutService = layoutService;
182
- this.contextMenuService = contextMenuService;
183
- this.telemetryService = telemetryService;
184
- this.notebookExecutionService = notebookExecutionService;
185
- this.notebookExecutionStateService = notebookExecutionStateService;
186
- this.editorProgressService = editorProgressService;
187
- this.logService = logService;
188
- this.keybindingService = keybindingService;
189
- this._onDidChangeCellState = this._register(( (new Emitter())));
190
- this.onDidChangeCellState = this._onDidChangeCellState.event;
191
- this._onDidChangeViewCells = this._register(( (new Emitter())));
192
- this.onDidChangeViewCells = this._onDidChangeViewCells.event;
193
- this._onWillChangeModel = this._register(( (new Emitter())));
194
- this.onWillChangeModel = this._onWillChangeModel.event;
195
- this._onDidChangeModel = this._register(( (new Emitter())));
196
- this.onDidChangeModel = this._onDidChangeModel.event;
197
- this._onDidAttachViewModel = this._register(( (new Emitter())));
198
- this.onDidAttachViewModel = this._onDidAttachViewModel.event;
199
- this._onDidChangeOptions = this._register(( (new Emitter())));
200
- this.onDidChangeOptions = this._onDidChangeOptions.event;
201
- this._onDidChangeDecorations = this._register(( (new Emitter())));
202
- this.onDidChangeDecorations = this._onDidChangeDecorations.event;
203
- this._onDidScroll = this._register(( (new Emitter())));
204
- this.onDidScroll = this._onDidScroll.event;
205
- this._onDidChangeLayout = this._register(( (new Emitter())));
206
- this.onDidChangeLayout = this._onDidChangeLayout.event;
207
- this._onDidChangeActiveCell = this._register(( (new Emitter())));
208
- this.onDidChangeActiveCell = this._onDidChangeActiveCell.event;
209
- this._onDidChangeFocus = this._register(( (new Emitter())));
210
- this.onDidChangeFocus = this._onDidChangeFocus.event;
211
- this._onDidChangeSelection = this._register(( (new Emitter())));
212
- this.onDidChangeSelection = this._onDidChangeSelection.event;
213
- this._onDidChangeVisibleRanges = this._register(( (new Emitter())));
214
- this.onDidChangeVisibleRanges = this._onDidChangeVisibleRanges.event;
215
- this._onDidFocusEmitter = this._register(( (new Emitter())));
216
- this.onDidFocusWidget = this._onDidFocusEmitter.event;
217
- this._onDidBlurEmitter = this._register(( (new Emitter())));
218
- this.onDidBlurWidget = this._onDidBlurEmitter.event;
219
- this._onDidChangeActiveEditor = this._register(( (new Emitter())));
220
- this.onDidChangeActiveEditor = this._onDidChangeActiveEditor.event;
221
- this._onDidChangeActiveKernel = this._register(( (new Emitter())));
222
- this.onDidChangeActiveKernel = this._onDidChangeActiveKernel.event;
223
- this._onMouseUp = this._register(( (new Emitter())));
224
- this.onMouseUp = this._onMouseUp.event;
225
- this._onMouseDown = this._register(( (new Emitter())));
226
- this.onMouseDown = this._onMouseDown.event;
227
- this._onDidReceiveMessage = this._register(( (new Emitter())));
228
- this.onDidReceiveMessage = this._onDidReceiveMessage.event;
229
- this._onDidRenderOutput = this._register(( (new Emitter())));
230
- this.onDidRenderOutput = this._onDidRenderOutput.event;
231
- this._onDidRemoveOutput = this._register(( (new Emitter())));
232
- this.onDidRemoveOutput = this._onDidRemoveOutput.event;
233
- this._onDidResizeOutputEmitter = this._register(( (new Emitter())));
234
- this.onDidResizeOutput = this._onDidResizeOutputEmitter.event;
235
- this._webview = null;
236
- this._webviewResolvePromise = null;
237
- this._webviewTransparentCover = null;
238
- this._listDelegate = null;
239
- this._dndController = null;
240
- this._listTopCellToolbar = null;
241
- this._renderedEditors = ( (new Map()));
242
- this._localStore = this._register(( (new DisposableStore())));
243
- this._localCellStateListeners = [];
244
- this._shadowElementViewInfo = null;
245
- this._contributions = ( (new Map()));
246
- this._insetModifyQueueByOutputId = ( (new SequencerByKey()));
247
- this._cellContextKeyManager = null;
248
- this._uuid = generateUuid();
249
- this._webviewFocused = false;
250
- this._isVisible = false;
251
- this._isDisposed = false;
252
- this._baseCellEditorOptions = ( (new Map()));
253
- this._debugFlag = false;
254
- this._backgroundMarkdownRenderRunning = false;
255
- this._lastCellWithEditorFocus = null;
256
- this._pendingLayouts = ( (new WeakMap()));
257
- this._pendingOutputHeightAcks = ( (new Map()));
258
- this._dimension = dimension;
259
- this.isReplHistory = creationOptions.isReplHistory ?? false;
260
- this._readOnly = creationOptions.isReadOnly ?? false;
261
- this._overlayContainer = document.createElement('div');
262
- this.scopedContextKeyService = this._register(contextKeyService.createScoped(this._overlayContainer));
263
- this.instantiationService = this._register(instantiationService.createChild(( (new ServiceCollection([IContextKeyService, this.scopedContextKeyService])))));
264
- this._notebookOptions = creationOptions.options ??
265
- this.instantiationService.createInstance(NotebookOptions, this.creationOptions?.codeWindow ?? mainWindow, this._readOnly, undefined);
266
- this._register(this._notebookOptions);
267
- const eventDispatcher = this._register(( (new NotebookEventDispatcher())));
268
- this._viewContext = ( (new ViewContext(
269
- this._notebookOptions,
270
- eventDispatcher,
271
- language => this.getBaseCellEditorOptions(language)
272
- )));
273
- this._register(this._viewContext.eventDispatcher.onDidChangeLayout(() => {
274
- this._onDidChangeLayout.fire();
275
- }));
276
- this._register(this._viewContext.eventDispatcher.onDidChangeCellState(e => {
277
- this._onDidChangeCellState.fire(e);
278
- }));
279
- this._register(_notebookService.onDidChangeOutputRenderers(() => {
280
- this._updateOutputRenderers();
281
- }));
282
- this._register(this.instantiationService.createInstance(NotebookEditorContextKeys, this));
283
- this._register(notebookKernelService.onDidChangeSelectedNotebooks(e => {
284
- if (isEqual(e.notebook, this.viewModel?.uri)) {
285
- this._loadKernelPreloads();
286
- this._onDidChangeActiveKernel.fire();
287
- }
288
- }));
289
- this._scrollBeyondLastLine = this.configurationService.getValue('editor.scrollBeyondLastLine');
290
- this._register(this.configurationService.onDidChangeConfiguration(e => {
291
- if (e.affectsConfiguration('editor.scrollBeyondLastLine')) {
292
- this._scrollBeyondLastLine = this.configurationService.getValue('editor.scrollBeyondLastLine');
293
- if (this._dimension && this._isVisible) {
294
- this.layout(this._dimension);
295
- }
296
- }
297
- }));
298
- this._register(this._notebookOptions.onDidChangeOptions(e => {
299
- if (e.cellStatusBarVisibility || e.cellToolbarLocation || e.cellToolbarInteraction) {
300
- this._updateForNotebookConfiguration();
301
- }
302
- if (e.fontFamily) {
303
- this._generateFontInfo();
304
- }
305
- if (e.compactView
306
- || e.focusIndicator
307
- || e.insertToolbarPosition
308
- || e.cellToolbarLocation
309
- || e.dragAndDropEnabled
310
- || e.fontSize
311
- || e.markupFontSize
312
- || e.markdownLineHeight
313
- || e.fontFamily
314
- || e.insertToolbarAlignment
315
- || e.outputFontSize
316
- || e.outputLineHeight
317
- || e.outputFontFamily
318
- || e.outputWordWrap
319
- || e.outputScrolling
320
- || e.outputLinkifyFilePaths
321
- || e.minimalError) {
322
- this._styleElement?.remove();
323
- this._createLayoutStyles();
324
- this._webview?.updateOptions({
325
- ...this.notebookOptions.computeWebviewOptions(),
326
- fontFamily: this._generateFontFamily()
327
- });
328
- }
329
- if (this._dimension && this._isVisible) {
330
- this.layout(this._dimension);
331
- }
332
- }));
333
- const container = creationOptions.codeWindow ? this.layoutService.getContainer(creationOptions.codeWindow) : this.layoutService.mainContainer;
334
- this._register(editorGroupsService.getPart(container).onDidScroll(e => {
335
- if (!this._shadowElement || !this._isVisible) {
336
- return;
337
- }
338
- this.updateShadowElement(this._shadowElement, this._dimension);
339
- this.layoutContainerOverShadowElement(this._dimension, this._position);
340
- }));
341
- this.notebookEditorService.addNotebookEditor(this);
342
- const id = generateUuid();
343
- this._overlayContainer.id = `notebook-${id}`;
344
- this._overlayContainer.className = 'notebookOverlay';
345
- this._overlayContainer.classList.add('notebook-editor');
346
- this._overlayContainer.inert = true;
347
- this._overlayContainer.style.visibility = 'hidden';
348
- container.appendChild(this._overlayContainer);
349
- this._createBody(this._overlayContainer);
350
- this._generateFontInfo();
351
- this._isVisible = true;
352
- this._editorFocus = NOTEBOOK_EDITOR_FOCUSED.bindTo(this.scopedContextKeyService);
353
- this._outputFocus = NOTEBOOK_OUTPUT_FOCUSED.bindTo(this.scopedContextKeyService);
354
- this._outputInputFocus = NOTEBOOK_OUTPUT_INPUT_FOCUSED.bindTo(this.scopedContextKeyService);
355
- this._editorEditable = NOTEBOOK_EDITOR_EDITABLE.bindTo(this.scopedContextKeyService);
356
- this._cursorNavMode = NOTEBOOK_CURSOR_NAVIGATION_MODE.bindTo(this.scopedContextKeyService);
357
- ( (new RawContextKey(PreventDefaultContextMenuItemsContextKeyName, false))).bindTo(this.scopedContextKeyService).set(true);
358
- this._editorEditable.set(!creationOptions.isReadOnly);
359
- let contributions;
360
- if (Array.isArray(this.creationOptions.contributions)) {
361
- contributions = this.creationOptions.contributions;
362
- }
363
- else {
364
- contributions = NotebookEditorExtensionsRegistry.getEditorContributions();
365
- }
366
- for (const desc of contributions) {
367
- let contribution;
368
- try {
369
- contribution = this.instantiationService.createInstance(desc.ctor, this);
370
- }
371
- catch (err) {
372
- onUnexpectedError(err);
373
- }
374
- if (contribution) {
375
- if (!( (this._contributions.has(desc.id)))) {
376
- this._contributions.set(desc.id, contribution);
377
- }
378
- else {
379
- contribution.dispose();
380
- throw ( (new Error(`DUPLICATE notebook editor contribution: '${desc.id}'`)));
381
- }
382
- }
383
- }
384
- this._updateForNotebookConfiguration();
385
- }
386
- _debug(...args) {
387
- if (!this._debugFlag) {
388
- return;
389
- }
390
- notebookDebug(...args);
391
- }
392
- getId() {
393
- return this._uuid;
394
- }
395
- getViewModel() {
396
- return this.viewModel;
397
- }
398
- getLength() {
399
- return this.viewModel?.length ?? 0;
400
- }
401
- getSelections() {
402
- return this.viewModel?.getSelections() ?? [];
403
- }
404
- setSelections(selections) {
405
- if (!this.viewModel) {
406
- return;
407
- }
408
- const focus = this.viewModel.getFocus();
409
- this.viewModel.updateSelectionsState({
410
- kind: SelectionStateType.Index,
411
- focus: focus,
412
- selections: selections
413
- });
414
- }
415
- getFocus() {
416
- return this.viewModel?.getFocus() ?? { start: 0, end: 0 };
417
- }
418
- setFocus(focus) {
419
- if (!this.viewModel) {
420
- return;
421
- }
422
- const selections = this.viewModel.getSelections();
423
- this.viewModel.updateSelectionsState({
424
- kind: SelectionStateType.Index,
425
- focus: focus,
426
- selections: selections
427
- });
428
- }
429
- getSelectionViewModels() {
430
- if (!this.viewModel) {
431
- return [];
432
- }
433
- const cellsSet = ( (new Set()));
434
- return ( (this.viewModel.getSelections().map(range => this.viewModel.viewCells.slice(range.start, range.end)))).reduce((a, b) => {
435
- b.forEach(cell => {
436
- if (!( (cellsSet.has(cell.handle)))) {
437
- cellsSet.add(cell.handle);
438
- a.push(cell);
439
- }
440
- });
441
- return a;
442
- }, []);
443
- }
444
- hasModel() {
445
- return !!this._notebookViewModel;
446
- }
447
- showProgress() {
448
- this._currentProgress = this.editorProgressService.show(true);
449
- }
450
- hideProgress() {
451
- if (this._currentProgress) {
452
- this._currentProgress.done();
453
- this._currentProgress = undefined;
454
- }
455
- }
456
- getBaseCellEditorOptions(language) {
457
- const existingOptions = this._baseCellEditorOptions.get(language);
458
- if (existingOptions) {
459
- return existingOptions;
460
- }
461
- else {
462
- const options = ( (new BaseCellEditorOptions(this, this.notebookOptions, this.configurationService, language)));
463
- this._baseCellEditorOptions.set(language, options);
464
- return options;
465
- }
466
- }
467
- _updateForNotebookConfiguration() {
468
- if (!this._overlayContainer) {
469
- return;
470
- }
471
- this._overlayContainer.classList.remove('cell-title-toolbar-left');
472
- this._overlayContainer.classList.remove('cell-title-toolbar-right');
473
- this._overlayContainer.classList.remove('cell-title-toolbar-hidden');
474
- const cellToolbarLocation = this._notebookOptions.computeCellToolbarLocation(this.viewModel?.viewType);
475
- this._overlayContainer.classList.add(`cell-title-toolbar-${cellToolbarLocation}`);
476
- const cellToolbarInteraction = this._notebookOptions.getDisplayOptions().cellToolbarInteraction;
477
- let cellToolbarInteractionState = 'hover';
478
- this._overlayContainer.classList.remove('cell-toolbar-hover');
479
- this._overlayContainer.classList.remove('cell-toolbar-click');
480
- if (cellToolbarInteraction === 'hover' || cellToolbarInteraction === 'click') {
481
- cellToolbarInteractionState = cellToolbarInteraction;
482
- }
483
- this._overlayContainer.classList.add(`cell-toolbar-${cellToolbarInteractionState}`);
484
- }
485
- _generateFontInfo() {
486
- const editorOptions = this.configurationService.getValue('editor');
487
- const targetWindow = getWindow(this.getDomNode());
488
- this._fontInfo = FontMeasurements.readFontInfo(targetWindow, BareFontInfo.createFromRawSettings(editorOptions, PixelRatio.getInstance(targetWindow).value));
489
- }
490
- _createBody(parent) {
491
- this._notebookTopToolbarContainer = document.createElement('div');
492
- this._notebookTopToolbarContainer.classList.add('notebook-toolbar-container');
493
- this._notebookTopToolbarContainer.style.display = 'none';
494
- append(parent, this._notebookTopToolbarContainer);
495
- this._notebookStickyScrollContainer = document.createElement('div');
496
- this._notebookStickyScrollContainer.classList.add('notebook-sticky-scroll-container');
497
- append(parent, this._notebookStickyScrollContainer);
498
- this._body = document.createElement('div');
499
- append(parent, this._body);
500
- this._body.classList.add('cell-list-container');
501
- this._createLayoutStyles();
502
- this._createCellList();
503
- this._notebookOverviewRulerContainer = document.createElement('div');
504
- this._notebookOverviewRulerContainer.classList.add('notebook-overview-ruler-container');
505
- this._list.scrollableElement.appendChild(this._notebookOverviewRulerContainer);
506
- this._registerNotebookOverviewRuler();
507
- this._register(this.instantiationService.createInstance(NotebookHorizontalTracker, this, this._list.scrollableElement));
508
- this._overflowContainer = document.createElement('div');
509
- this._overflowContainer.classList.add('notebook-overflow-widget-container', 'monaco-editor');
510
- append(parent, this._overflowContainer);
511
- }
512
- _generateFontFamily() {
513
- return this._fontInfo?.fontFamily ?? `"SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace`;
514
- }
515
- _createLayoutStyles() {
516
- this._styleElement = createStyleSheet(this._body);
517
- const { cellRightMargin, cellTopMargin, cellRunGutter, cellBottomMargin, codeCellLeftMargin, markdownCellGutter, markdownCellLeftMargin, markdownCellBottomMargin, markdownCellTopMargin, collapsedIndicatorHeight, focusIndicator, insertToolbarPosition, outputFontSize, focusIndicatorLeftMargin, focusIndicatorGap } = this._notebookOptions.getLayoutConfiguration();
518
- const { insertToolbarAlignment, compactView, fontSize } = this._notebookOptions.getDisplayOptions();
519
- const getCellEditorContainerLeftMargin = this._notebookOptions.getCellEditorContainerLeftMargin();
520
- const { bottomToolbarGap, bottomToolbarHeight } = this._notebookOptions.computeBottomToolbarDimensions(this.viewModel?.viewType);
521
- const styleSheets = [];
522
- if (!this._fontInfo) {
523
- this._generateFontInfo();
524
- }
525
- const fontFamily = this._generateFontFamily();
526
- styleSheets.push(`
527
- .notebook-editor {
528
- --notebook-cell-output-font-size: ${outputFontSize}px;
529
- --notebook-cell-input-preview-font-size: ${fontSize}px;
530
- --notebook-cell-input-preview-font-family: ${fontFamily};
531
- }
532
- `);
533
- if (compactView) {
534
- styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .markdown-cell-row div.cell.code { margin-left: ${getCellEditorContainerLeftMargin}px; }`);
535
- }
536
- else {
537
- styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .markdown-cell-row div.cell.code { margin-left: ${codeCellLeftMargin}px; }`);
538
- }
539
- if (focusIndicator === 'border') {
540
- styleSheets.push(`
541
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-top:before,
542
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-bottom:before,
543
- .monaco-workbench .notebookOverlay .monaco-list .markdown-cell-row .cell-inner-container:before,
544
- .monaco-workbench .notebookOverlay .monaco-list .markdown-cell-row .cell-inner-container:after {
545
- content: "";
546
- position: absolute;
547
- width: 100%;
548
- height: 1px;
549
- }
550
-
551
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-left:before,
552
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-right:before {
553
- content: "";
554
- position: absolute;
555
- width: 1px;
556
- height: 100%;
557
- z-index: 10;
558
- }
559
-
560
- /* top border */
561
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-top:before {
562
- border-top: 1px solid transparent;
563
- }
564
-
565
- /* left border */
566
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-left:before {
567
- border-left: 1px solid transparent;
568
- }
569
-
570
- /* bottom border */
571
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-bottom:before {
572
- border-bottom: 1px solid transparent;
573
- }
574
-
575
- /* right border */
576
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-right:before {
577
- border-right: 1px solid transparent;
578
- }
579
- `);
580
- styleSheets.push(`
581
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row.code-cell-row.focused .cell-focus-indicator-left:before,
582
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row.code-cell-row.focused .cell-focus-indicator-right:before,
583
- .monaco-workbench .notebookOverlay .monaco-list.selection-multiple .monaco-list-row.code-cell-row.selected .cell-focus-indicator-left:before,
584
- .monaco-workbench .notebookOverlay .monaco-list.selection-multiple .monaco-list-row.code-cell-row.selected .cell-focus-indicator-right:before {
585
- top: -${cellTopMargin}px; height: calc(100% + ${cellTopMargin + cellBottomMargin}px)
586
- }`);
587
- }
588
- else {
589
- styleSheets.push(`
590
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-left .codeOutput-focus-indicator {
591
- border-left: 3px solid transparent;
592
- border-radius: 4px;
593
- width: 0px;
594
- margin-left: ${focusIndicatorLeftMargin}px;
595
- border-color: var(--vscode-notebook-inactiveFocusedCellBorder) !important;
596
- }
597
-
598
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row.focused .cell-focus-indicator-left .codeOutput-focus-indicator-container,
599
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-output-hover .cell-focus-indicator-left .codeOutput-focus-indicator-container,
600
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .markdown-cell-hover .cell-focus-indicator-left .codeOutput-focus-indicator-container,
601
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row:hover .cell-focus-indicator-left .codeOutput-focus-indicator-container {
602
- display: block;
603
- }
604
-
605
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-left .codeOutput-focus-indicator-container:hover .codeOutput-focus-indicator {
606
- border-left: 5px solid transparent;
607
- margin-left: ${focusIndicatorLeftMargin - 1}px;
608
- }
609
- `);
610
- styleSheets.push(`
611
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row.focused .cell-inner-container.cell-output-focus .cell-focus-indicator-left .codeOutput-focus-indicator,
612
- .monaco-workbench .notebookOverlay .monaco-list:focus-within .monaco-list-row.focused .cell-inner-container .cell-focus-indicator-left .codeOutput-focus-indicator {
613
- border-color: var(--vscode-notebook-focusedCellBorder) !important;
614
- }
615
-
616
- .monaco-workbench .notebookOverlay .monaco-list .monaco-list-row .cell-inner-container .cell-focus-indicator-left .output-focus-indicator {
617
- margin-top: ${focusIndicatorGap}px;
618
- }
619
- `);
620
- }
621
- if (insertToolbarPosition === 'betweenCells' || insertToolbarPosition === 'both') {
622
- styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container { display: flex; }`);
623
- styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .view-zones .cell-list-top-cell-toolbar-container { display: flex; }`);
624
- }
625
- else {
626
- styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container { display: none; }`);
627
- styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .view-zones .cell-list-top-cell-toolbar-container { display: none; }`);
628
- }
629
- if (insertToolbarAlignment === 'left') {
630
- styleSheets.push(`
631
- .monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .action-item:first-child,
632
- .monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .action-item:first-child, .monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .action-item:first-child {
633
- margin-right: 0px !important;
634
- }`);
635
- styleSheets.push(`
636
- .monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .monaco-toolbar .action-label,
637
- .monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container .monaco-toolbar .action-label, .monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .monaco-toolbar .action-label {
638
- padding: 0px !important;
639
- justify-content: center;
640
- border-radius: 4px;
641
- }`);
642
- styleSheets.push(`
643
- .monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container,
644
- .monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container, .monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container {
645
- align-items: flex-start;
646
- justify-content: left;
647
- margin: 0 16px 0 ${8 + codeCellLeftMargin}px;
648
- }`);
649
- styleSheets.push(`
650
- .monaco-workbench .notebookOverlay .cell-list-top-cell-toolbar-container,
651
- .notebookOverlay .cell-bottom-toolbar-container .action-item {
652
- border: 0px;
653
- }`);
654
- }
655
- styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .code-cell-row div.cell.code { margin-left: ${getCellEditorContainerLeftMargin}px; }`);
656
- styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row div.cell { margin-right: ${cellRightMargin}px; }`);
657
- styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row > .cell-inner-container { padding-top: ${cellTopMargin}px; }`);
658
- styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .markdown-cell-row > .cell-inner-container { padding-bottom: ${markdownCellBottomMargin}px; padding-top: ${markdownCellTopMargin}px; }`);
659
- styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .markdown-cell-row > .cell-inner-container.webview-backed-markdown-cell { padding: 0; }`);
660
- styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .markdown-cell-row > .webview-backed-markdown-cell.markdown-cell-edit-mode .cell.code { padding-bottom: ${markdownCellBottomMargin}px; padding-top: ${markdownCellTopMargin}px; }`);
661
- styleSheets.push(`.notebookOverlay .output { margin: 0px ${cellRightMargin}px 0px ${getCellEditorContainerLeftMargin}px; }`);
662
- styleSheets.push(`.notebookOverlay .output { width: calc(100% - ${getCellEditorContainerLeftMargin + cellRightMargin}px); }`);
663
- styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-comment-container { left: ${getCellEditorContainerLeftMargin}px; }`);
664
- styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-comment-container { width: calc(100% - ${getCellEditorContainerLeftMargin + cellRightMargin}px); }`);
665
- styleSheets.push(`.monaco-workbench .notebookOverlay .output .output-collapse-container .expandButton { left: -${cellRunGutter}px; }`);
666
- styleSheets.push(`.monaco-workbench .notebookOverlay .output .output-collapse-container .expandButton {
667
- position: absolute;
668
- width: ${cellRunGutter}px;
669
- padding: 6px 0px;
670
- }`);
671
- styleSheets.push(`.notebookOverlay .output-show-more-container { margin: 0px ${cellRightMargin}px 0px ${getCellEditorContainerLeftMargin}px; }`);
672
- styleSheets.push(`.notebookOverlay .output-show-more-container { width: calc(100% - ${getCellEditorContainerLeftMargin + cellRightMargin}px); }`);
673
- styleSheets.push(`.notebookOverlay .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row div.cell.markdown { padding-left: ${cellRunGutter}px; }`);
674
- styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container .notebook-folding-indicator { left: ${(markdownCellGutter - 20) / 2 + markdownCellLeftMargin}px; }`);
675
- styleSheets.push(`.notebookOverlay > .cell-list-container .notebook-folded-hint { left: ${markdownCellGutter + markdownCellLeftMargin + 8}px; }`);
676
- styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row :not(.webview-backed-markdown-cell) .cell-focus-indicator-top { height: ${cellTopMargin}px; }`);
677
- styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-side { bottom: ${bottomToolbarGap}px; }`);
678
- styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row.code-cell-row .cell-focus-indicator-left { width: ${getCellEditorContainerLeftMargin}px; }`);
679
- styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row.markdown-cell-row .cell-focus-indicator-left { width: ${codeCellLeftMargin}px; }`);
680
- styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator.cell-focus-indicator-right { width: ${cellRightMargin}px; }`);
681
- styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row .cell-focus-indicator-bottom { height: ${cellBottomMargin}px; }`);
682
- styleSheets.push(`.notebookOverlay .monaco-list .monaco-list-row .cell-shadow-container-bottom { top: ${cellBottomMargin}px; }`);
683
- styleSheets.push(`
684
- .notebookOverlay .monaco-list .monaco-list-row:has(+ .monaco-list-row.selected) .cell-focus-indicator-bottom {
685
- height: ${bottomToolbarGap + cellBottomMargin}px;
686
- }
687
- `);
688
- styleSheets.push(`
689
- .notebookOverlay .monaco-list .monaco-list-row.code-cell-row.nb-multiCellHighlight:has(+ .monaco-list-row.nb-multiCellHighlight) .cell-focus-indicator-bottom {
690
- height: ${bottomToolbarGap + cellBottomMargin}px;
691
- background-color: var(--vscode-notebook-symbolHighlightBackground) !important;
692
- }
693
-
694
- .notebookOverlay .monaco-list .monaco-list-row.markdown-cell-row.nb-multiCellHighlight:has(+ .monaco-list-row.nb-multiCellHighlight) .cell-focus-indicator-bottom {
695
- height: ${bottomToolbarGap + cellBottomMargin - 6}px;
696
- background-color: var(--vscode-notebook-symbolHighlightBackground) !important;
697
- }
698
- `);
699
- styleSheets.push(`
700
- .monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .input-collapse-container .cell-collapse-preview {
701
- line-height: ${collapsedIndicatorHeight}px;
702
- }
703
-
704
- .monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .input-collapse-container .cell-collapse-preview .monaco-tokenized-source {
705
- max-height: ${collapsedIndicatorHeight}px;
706
- }
707
- `);
708
- styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-bottom-toolbar-container .monaco-toolbar { height: ${bottomToolbarHeight}px }`);
709
- styleSheets.push(`.monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .view-zones .cell-list-top-cell-toolbar-container .monaco-toolbar { height: ${bottomToolbarHeight}px }`);
710
- styleSheets.push(`.monaco-workbench .notebookOverlay.cell-title-toolbar-right > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-title-toolbar {
711
- right: ${cellRightMargin + 26}px;
712
- }
713
- .monaco-workbench .notebookOverlay.cell-title-toolbar-left > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-title-toolbar {
714
- left: ${getCellEditorContainerLeftMargin + 16}px;
715
- }
716
- .monaco-workbench .notebookOverlay.cell-title-toolbar-hidden > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .cell-title-toolbar {
717
- display: none;
718
- }`);
719
- styleSheets.push(`
720
- .monaco-workbench .notebookOverlay .output > div.foreground.output-inner-container {
721
- padding: ${OutputInnerContainerTopPadding}px 8px;
722
- }
723
- .monaco-workbench .notebookOverlay > .cell-list-container > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row .output-collapse-container {
724
- padding: ${OutputInnerContainerTopPadding}px 8px;
725
- }
726
- `);
727
- styleSheets.push(`
728
- .monaco-workbench .notebookOverlay .cell-chat-part {
729
- margin: 0 ${cellRightMargin}px 6px 4px;
730
- }
731
- `);
732
- this._styleElement.textContent = styleSheets.join('\n');
733
- }
734
- _createCellList() {
735
- this._body.classList.add('cell-list-container');
736
- this._dndController = this._register(( (new CellDragAndDropController(this, this._body))));
737
- const getScopedContextKeyService = (container) => this._list.contextKeyService.createScoped(container);
738
- this._editorPool = this._register(this.instantiationService.createInstance(NotebookCellEditorPool, this, getScopedContextKeyService));
739
- const renderers = [
740
- this.instantiationService.createInstance(CodeCellRenderer, this, this._renderedEditors, this._editorPool, this._dndController, getScopedContextKeyService),
741
- this.instantiationService.createInstance(MarkupCellRenderer, this, this._dndController, this._renderedEditors, getScopedContextKeyService),
742
- ];
743
- renderers.forEach(renderer => {
744
- this._register(renderer);
745
- });
746
- this._listDelegate = this.instantiationService.createInstance(NotebookCellListDelegate, getWindow(this.getDomNode()));
747
- this._register(this._listDelegate);
748
- const accessibilityProvider = ( (new NotebookAccessibilityProvider(
749
- this.notebookExecutionStateService,
750
- () => this.viewModel,
751
- this.keybindingService,
752
- this.configurationService,
753
- this.isReplHistory
754
- )));
755
- this._register(accessibilityProvider);
756
- this._list = this.instantiationService.createInstance(NotebookCellList, 'NotebookCellList', this._body, this._viewContext.notebookOptions, this._listDelegate, renderers, this.scopedContextKeyService, {
757
- setRowLineHeight: false,
758
- setRowHeight: false,
759
- supportDynamicHeights: true,
760
- horizontalScrolling: false,
761
- keyboardSupport: false,
762
- mouseSupport: true,
763
- multipleSelectionSupport: true,
764
- selectionNavigation: true,
765
- typeNavigationEnabled: true,
766
- paddingTop: 0,
767
- paddingBottom: 0,
768
- transformOptimization: false,
769
- initialSize: this._dimension,
770
- styleController: (_suffix) => { return this._list; },
771
- overrideStyles: {
772
- listBackground: notebookEditorBackground,
773
- listActiveSelectionBackground: notebookEditorBackground,
774
- listActiveSelectionForeground: foreground,
775
- listFocusAndSelectionBackground: notebookEditorBackground,
776
- listFocusAndSelectionForeground: foreground,
777
- listFocusBackground: notebookEditorBackground,
778
- listFocusForeground: foreground,
779
- listHoverForeground: foreground,
780
- listHoverBackground: notebookEditorBackground,
781
- listHoverOutline: focusBorder,
782
- listFocusOutline: focusBorder,
783
- listInactiveSelectionBackground: notebookEditorBackground,
784
- listInactiveSelectionForeground: foreground,
785
- listInactiveFocusBackground: notebookEditorBackground,
786
- listInactiveFocusOutline: notebookEditorBackground,
787
- },
788
- accessibilityProvider
789
- });
790
- this._dndController.setList(this._list);
791
- this._register(this._list);
792
- this._listViewInfoAccessor = ( (new ListViewInfoAccessor(this._list)));
793
- this._register(this._listViewInfoAccessor);
794
- this._register(combinedDisposable(...renderers));
795
- this._listTopCellToolbar = this._register(this.instantiationService.createInstance(ListTopCellToolbar, this, this.notebookOptions));
796
- this._webviewTransparentCover = append(this._list.rowsContainer, $('.webview-cover'));
797
- this._webviewTransparentCover.style.display = 'none';
798
- this._register(addStandardDisposableGenericMouseDownListener(this._overlayContainer, (e) => {
799
- if (e.target.classList.contains('slider') && this._webviewTransparentCover) {
800
- this._webviewTransparentCover.style.display = 'block';
801
- }
802
- }));
803
- this._register(addStandardDisposableGenericMouseUpListener(this._overlayContainer, () => {
804
- if (this._webviewTransparentCover) {
805
- this._webviewTransparentCover.style.display = 'none';
806
- }
807
- }));
808
- this._register(this._list.onMouseDown(e => {
809
- if (e.element) {
810
- this._onMouseDown.fire({ event: e.browserEvent, target: e.element });
811
- }
812
- }));
813
- this._register(this._list.onMouseUp(e => {
814
- if (e.element) {
815
- this._onMouseUp.fire({ event: e.browserEvent, target: e.element });
816
- }
817
- }));
818
- this._register(this._list.onDidChangeFocus(_e => {
819
- this._onDidChangeActiveEditor.fire(this);
820
- this._onDidChangeActiveCell.fire();
821
- this._onDidChangeFocus.fire();
822
- this._cursorNavMode.set(false);
823
- }));
824
- this._register(this._list.onContextMenu(e => {
825
- this.showListContextMenu(e);
826
- }));
827
- this._register(this._list.onDidChangeVisibleRanges(() => {
828
- this._onDidChangeVisibleRanges.fire();
829
- }));
830
- this._register(this._list.onDidScroll((e) => {
831
- if (e.scrollTop !== e.oldScrollTop) {
832
- this._onDidScroll.fire();
833
- this.clearActiveCellWidgets();
834
- }
835
- }));
836
- this._focusTracker = this._register(trackFocus(this.getDomNode()));
837
- this._register(this._focusTracker.onDidBlur(() => {
838
- this._editorFocus.set(false);
839
- this.viewModel?.setEditorFocus(false);
840
- this._onDidBlurEmitter.fire();
841
- }));
842
- this._register(this._focusTracker.onDidFocus(() => {
843
- this._editorFocus.set(true);
844
- this.viewModel?.setEditorFocus(true);
845
- this._onDidFocusEmitter.fire();
846
- }));
847
- this._registerNotebookActionsToolbar();
848
- this._registerNotebookStickyScroll();
849
- this._register(this.configurationService.onDidChangeConfiguration(e => {
850
- if (e.affectsConfiguration(accessibilityProvider.verbositySettingId)) {
851
- this._list.ariaLabel = accessibilityProvider?.getWidgetAriaLabel();
852
- }
853
- }));
854
- }
855
- showListContextMenu(e) {
856
- this.contextMenuService.showContextMenu({
857
- menuId: MenuId.NotebookCellTitle,
858
- menuActionOptions: {
859
- shouldForwardArgs: true
860
- },
861
- contextKeyService: this.scopedContextKeyService,
862
- getAnchor: () => e.anchor,
863
- getActionsContext: () => {
864
- return {
865
- from: 'cellContainer'
866
- };
867
- }
868
- });
869
- }
870
- _registerNotebookOverviewRuler() {
871
- this._notebookOverviewRuler = this._register(this.instantiationService.createInstance(NotebookOverviewRuler, this, this._notebookOverviewRulerContainer));
872
- }
873
- _registerNotebookActionsToolbar() {
874
- this._notebookTopToolbar = this._register(this.instantiationService.createInstance(NotebookEditorWorkbenchToolbar, this, this.scopedContextKeyService, this._notebookOptions, this._notebookTopToolbarContainer));
875
- this._register(this._notebookTopToolbar.onDidChangeVisibility(() => {
876
- if (this._dimension && this._isVisible) {
877
- this.layout(this._dimension);
878
- }
879
- }));
880
- }
881
- _registerNotebookStickyScroll() {
882
- this._notebookStickyScroll = this._register(this.instantiationService.createInstance(NotebookStickyScroll, this._notebookStickyScrollContainer, this, this._list, (sizeDelta) => {
883
- if (this.isDisposed) {
884
- return;
885
- }
886
- if (this._dimension && this._isVisible) {
887
- if (sizeDelta > 0) {
888
- this.layout(this._dimension);
889
- this.setScrollTop(this.scrollTop + sizeDelta);
890
- }
891
- else if (sizeDelta < 0) {
892
- this.setScrollTop(this.scrollTop + sizeDelta);
893
- this.layout(this._dimension);
894
- }
895
- }
896
- this._onDidScroll.fire();
897
- }));
898
- }
899
- _updateOutputRenderers() {
900
- if (!this.viewModel || !this._webview) {
901
- return;
902
- }
903
- this._webview.updateOutputRenderers();
904
- this.viewModel.viewCells.forEach(cell => {
905
- cell.outputsViewModels.forEach(output => {
906
- if (output.pickedMimeType?.rendererId === RENDERER_NOT_AVAILABLE) {
907
- output.resetRenderer();
908
- }
909
- });
910
- });
911
- }
912
- getDomNode() {
913
- return this._overlayContainer;
914
- }
915
- getOverflowContainerDomNode() {
916
- return this._overflowContainer;
917
- }
918
- getInnerWebview() {
919
- return this._webview?.webview;
920
- }
921
- setEditorProgressService(editorProgressService) {
922
- this.editorProgressService = editorProgressService;
923
- }
924
- setParentContextKeyService(parentContextKeyService) {
925
- this.scopedContextKeyService.updateParent(parentContextKeyService);
926
- }
927
- async setModel(textModel, viewState, perf, viewType) {
928
- if (this.viewModel === undefined || !this.viewModel.equal(textModel)) {
929
- const oldBottomToolbarDimensions = this._notebookOptions.computeBottomToolbarDimensions(this.viewModel?.viewType);
930
- this._detachModel();
931
- await this._attachModel(textModel, viewType ?? textModel.viewType, viewState, perf);
932
- const newBottomToolbarDimensions = this._notebookOptions.computeBottomToolbarDimensions(this.viewModel?.viewType);
933
- if (oldBottomToolbarDimensions.bottomToolbarGap !== newBottomToolbarDimensions.bottomToolbarGap
934
- || oldBottomToolbarDimensions.bottomToolbarHeight !== newBottomToolbarDimensions.bottomToolbarHeight) {
935
- this._styleElement?.remove();
936
- this._createLayoutStyles();
937
- this._webview?.updateOptions({
938
- ...this.notebookOptions.computeWebviewOptions(),
939
- fontFamily: this._generateFontFamily()
940
- });
941
- }
942
- this.telemetryService.publicLog2('notebook/editorOpened', {
943
- scheme: textModel.uri.scheme,
944
- ext: extname(textModel.uri),
945
- viewType: textModel.viewType
946
- });
947
- }
948
- else {
949
- this.restoreListViewState(viewState);
950
- }
951
- this._restoreSelectedKernel(viewState);
952
- this._loadKernelPreloads();
953
- this._dndController?.clearGlobalDragState();
954
- this._localStore.add(this._list.onDidChangeFocus(() => {
955
- this.updateContextKeysOnFocusChange();
956
- }));
957
- this.updateContextKeysOnFocusChange();
958
- this._backgroundMarkdownRendering();
959
- }
960
- _backgroundMarkdownRendering() {
961
- if (this._backgroundMarkdownRenderRunning) {
962
- return;
963
- }
964
- this._backgroundMarkdownRenderRunning = true;
965
- runWhenWindowIdle(getWindow(this.getDomNode()), (deadline) => {
966
- this._backgroundMarkdownRenderingWithDeadline(deadline);
967
- });
968
- }
969
- _backgroundMarkdownRenderingWithDeadline(deadline) {
970
- const endTime = Date.now() + deadline.timeRemaining();
971
- const execute = () => {
972
- try {
973
- this._backgroundMarkdownRenderRunning = true;
974
- if (this._isDisposed) {
975
- return;
976
- }
977
- if (!this.viewModel) {
978
- return;
979
- }
980
- const firstMarkupCell = this.viewModel.viewCells.find(cell => cell.cellKind === CellKind.Markup && !this._webview?.markupPreviewMapping.has(cell.id) && !this.cellIsHidden(cell));
981
- if (!firstMarkupCell) {
982
- return;
983
- }
984
- this.createMarkupPreview(firstMarkupCell);
985
- }
986
- finally {
987
- this._backgroundMarkdownRenderRunning = false;
988
- }
989
- if (Date.now() < endTime) {
990
- setTimeout0(execute);
991
- }
992
- else {
993
- this._backgroundMarkdownRendering();
994
- }
995
- };
996
- execute();
997
- }
998
- updateContextKeysOnFocusChange() {
999
- if (!this.viewModel) {
1000
- return;
1001
- }
1002
- const focused = this._list.getFocusedElements()[0];
1003
- if (focused) {
1004
- if (!this._cellContextKeyManager) {
1005
- this._cellContextKeyManager = this._localStore.add(this.instantiationService.createInstance(CellContextKeyManager, this, focused));
1006
- }
1007
- this._cellContextKeyManager.updateForElement(focused);
1008
- }
1009
- }
1010
- async setOptions(options) {
1011
- if (options?.isReadOnly !== undefined) {
1012
- this._readOnly = options?.isReadOnly;
1013
- }
1014
- if (!this.viewModel) {
1015
- return;
1016
- }
1017
- this.viewModel.updateOptions({ isReadOnly: this._readOnly });
1018
- this.notebookOptions.updateOptions(this._readOnly);
1019
- const cellOptions = options?.cellOptions ?? this._parseIndexedCellOptions(options);
1020
- if (cellOptions) {
1021
- const cell = this.viewModel.viewCells.find(cell => ( (cell.uri.toString())) === ( (cellOptions.resource.toString())));
1022
- if (cell) {
1023
- this.focusElement(cell);
1024
- const selection = cellOptions.options?.selection;
1025
- if (selection) {
1026
- cell.updateEditState(CellEditState.Editing, 'setOptions');
1027
- cell.focusMode = CellFocusMode.Editor;
1028
- await this.revealRangeInCenterIfOutsideViewportAsync(cell, ( (new Range(
1029
- selection.startLineNumber,
1030
- selection.startColumn,
1031
- selection.endLineNumber || selection.startLineNumber,
1032
- selection.endColumn || selection.startColumn
1033
- ))));
1034
- }
1035
- else {
1036
- this._list.revealCell(cell, options?.cellRevealType ?? 4 );
1037
- }
1038
- const editor = this._renderedEditors.get(cell);
1039
- if (editor) {
1040
- if (cellOptions.options?.selection) {
1041
- const { selection } = cellOptions.options;
1042
- const editorSelection = ( (new Range(
1043
- selection.startLineNumber,
1044
- selection.startColumn,
1045
- selection.endLineNumber || selection.startLineNumber,
1046
- selection.endColumn || selection.startColumn
1047
- )));
1048
- editor.setSelection(editorSelection);
1049
- editor.revealPositionInCenterIfOutsideViewport({
1050
- lineNumber: selection.startLineNumber,
1051
- column: selection.startColumn
1052
- });
1053
- await this.revealRangeInCenterIfOutsideViewportAsync(cell, editorSelection);
1054
- }
1055
- if (!cellOptions.options?.preserveFocus) {
1056
- editor.focus();
1057
- }
1058
- }
1059
- }
1060
- }
1061
- if (options?.cellSelections) {
1062
- const focusCellIndex = options.cellSelections[0].start;
1063
- const focusedCell = this.viewModel.cellAt(focusCellIndex);
1064
- if (focusedCell) {
1065
- this.viewModel.updateSelectionsState({
1066
- kind: SelectionStateType.Index,
1067
- focus: { start: focusCellIndex, end: focusCellIndex + 1 },
1068
- selections: options.cellSelections
1069
- });
1070
- this.revealInCenterIfOutsideViewport(focusedCell);
1071
- }
1072
- }
1073
- this._updateForOptions();
1074
- this._onDidChangeOptions.fire();
1075
- }
1076
- _parseIndexedCellOptions(options) {
1077
- if (options?.indexedCellOptions) {
1078
- const cell = this.cellAt(options.indexedCellOptions.index);
1079
- if (cell) {
1080
- return {
1081
- resource: cell.uri,
1082
- options: {
1083
- selection: options.indexedCellOptions.selection,
1084
- preserveFocus: false
1085
- }
1086
- };
1087
- }
1088
- }
1089
- return undefined;
1090
- }
1091
- _detachModel() {
1092
- this._localStore.clear();
1093
- dispose(this._localCellStateListeners);
1094
- this._list.detachViewModel();
1095
- this.viewModel?.dispose();
1096
- this.viewModel = undefined;
1097
- this._webview?.dispose();
1098
- this._webview?.element.remove();
1099
- this._webview = null;
1100
- this._list.clear();
1101
- }
1102
- _updateForOptions() {
1103
- if (!this.viewModel) {
1104
- return;
1105
- }
1106
- this._editorEditable.set(!this.viewModel.options.isReadOnly);
1107
- this._overflowContainer.classList.toggle('notebook-editor-editable', !this.viewModel.options.isReadOnly);
1108
- this.getDomNode().classList.toggle('notebook-editor-editable', !this.viewModel.options.isReadOnly);
1109
- }
1110
- async _resolveWebview() {
1111
- if (!this.textModel) {
1112
- return null;
1113
- }
1114
- if (this._webviewResolvePromise) {
1115
- return this._webviewResolvePromise;
1116
- }
1117
- if (!this._webview) {
1118
- this._ensureWebview(this.getId(), this.textModel.viewType, this.textModel.uri);
1119
- }
1120
- this._webviewResolvePromise = (async () => {
1121
- if (!this._webview) {
1122
- throw ( (new Error('Notebook output webview object is not created successfully.')));
1123
- }
1124
- await this._webview.createWebview(this.creationOptions.codeWindow ?? mainWindow);
1125
- if (!this._webview.webview) {
1126
- throw ( (new Error('Notebook output webview element was not created successfully.')));
1127
- }
1128
- this._localStore.add(this._webview.webview.onDidBlur(() => {
1129
- this._outputFocus.set(false);
1130
- this._webviewFocused = false;
1131
- this.updateEditorFocus();
1132
- this.updateCellFocusMode();
1133
- }));
1134
- this._localStore.add(this._webview.webview.onDidFocus(() => {
1135
- this._outputFocus.set(true);
1136
- this.updateEditorFocus();
1137
- this._webviewFocused = true;
1138
- }));
1139
- this._localStore.add(this._webview.onMessage(e => {
1140
- this._onDidReceiveMessage.fire(e);
1141
- }));
1142
- return this._webview;
1143
- })();
1144
- return this._webviewResolvePromise;
1145
- }
1146
- _ensureWebview(id, viewType, resource) {
1147
- if (this._webview) {
1148
- return;
1149
- }
1150
- const that = this;
1151
- this._webview = this.instantiationService.createInstance(BackLayerWebView, {
1152
- get creationOptions() { return that.creationOptions; },
1153
- setScrollTop(scrollTop) { that._list.scrollTop = scrollTop; },
1154
- triggerScroll(event) { that._list.triggerScrollFromMouseWheelEvent(event); },
1155
- getCellByInfo: that.getCellByInfo.bind(that),
1156
- getCellById: that._getCellById.bind(that),
1157
- toggleNotebookCellSelection: that._toggleNotebookCellSelection.bind(that),
1158
- focusNotebookCell: that.focusNotebookCell.bind(that),
1159
- focusNextNotebookCell: that.focusNextNotebookCell.bind(that),
1160
- updateOutputHeight: that._updateOutputHeight.bind(that),
1161
- scheduleOutputHeightAck: that._scheduleOutputHeightAck.bind(that),
1162
- updateMarkupCellHeight: that._updateMarkupCellHeight.bind(that),
1163
- setMarkupCellEditState: that._setMarkupCellEditState.bind(that),
1164
- didStartDragMarkupCell: that._didStartDragMarkupCell.bind(that),
1165
- didDragMarkupCell: that._didDragMarkupCell.bind(that),
1166
- didDropMarkupCell: that._didDropMarkupCell.bind(that),
1167
- didEndDragMarkupCell: that._didEndDragMarkupCell.bind(that),
1168
- didResizeOutput: that._didResizeOutput.bind(that),
1169
- updatePerformanceMetadata: that._updatePerformanceMetadata.bind(that),
1170
- didFocusOutputInputChange: that._didFocusOutputInputChange.bind(that),
1171
- }, id, viewType, resource, {
1172
- ...this._notebookOptions.computeWebviewOptions(),
1173
- fontFamily: this._generateFontFamily()
1174
- }, this.notebookRendererMessaging.getScoped(this._uuid));
1175
- this._webview.element.style.width = '100%';
1176
- this._list.attachWebview(this._webview.element);
1177
- }
1178
- async _attachModel(textModel, viewType, viewState, perf) {
1179
- this._ensureWebview(this.getId(), textModel.viewType, textModel.uri);
1180
- this.viewModel = this.instantiationService.createInstance(NotebookViewModel, viewType, textModel, this._viewContext, this.getLayoutInfo(), { isReadOnly: this._readOnly });
1181
- this._viewContext.eventDispatcher.emit([( (new NotebookLayoutChangedEvent({ width: true, fontInfo: true }, this.getLayoutInfo())))]);
1182
- this.notebookOptions.updateOptions(this._readOnly);
1183
- this._updateForOptions();
1184
- this._updateForNotebookConfiguration();
1185
- {
1186
- this.viewModel.restoreEditorViewState(viewState);
1187
- const contributionsState = viewState?.contributionsState || {};
1188
- for (const [id, contribution] of this._contributions) {
1189
- if (typeof contribution.restoreViewState === 'function') {
1190
- contribution.restoreViewState(contributionsState[id]);
1191
- }
1192
- }
1193
- }
1194
- this._localStore.add(this.viewModel.onDidChangeViewCells(e => {
1195
- this._onDidChangeViewCells.fire(e);
1196
- }));
1197
- this._localStore.add(this.viewModel.onDidChangeSelection(() => {
1198
- this._onDidChangeSelection.fire();
1199
- this.updateSelectedMarkdownPreviews();
1200
- }));
1201
- this._localStore.add(this._list.onWillScroll(e => {
1202
- if (this._webview?.isResolved()) {
1203
- this._webviewTransparentCover.style.transform = `translateY(${e.scrollTop})`;
1204
- }
1205
- }));
1206
- let hasPendingChangeContentHeight = false;
1207
- this._localStore.add(this._list.onDidChangeContentHeight(() => {
1208
- if (hasPendingChangeContentHeight) {
1209
- return;
1210
- }
1211
- hasPendingChangeContentHeight = true;
1212
- this._localStore.add(scheduleAtNextAnimationFrame(getWindow(this.getDomNode()), () => {
1213
- hasPendingChangeContentHeight = false;
1214
- this._updateScrollHeight();
1215
- }, 100));
1216
- }));
1217
- this._localStore.add(this._list.onDidRemoveOutputs(outputs => {
1218
- outputs.forEach(output => this.removeInset(output));
1219
- }));
1220
- this._localStore.add(this._list.onDidHideOutputs(outputs => {
1221
- outputs.forEach(output => this.hideInset(output));
1222
- }));
1223
- this._localStore.add(this._list.onDidRemoveCellsFromView(cells => {
1224
- const hiddenCells = [];
1225
- const deletedCells = [];
1226
- for (const cell of cells) {
1227
- if (cell.cellKind === CellKind.Markup) {
1228
- const mdCell = cell;
1229
- if (this.viewModel?.viewCells.find(cell => cell.handle === mdCell.handle)) {
1230
- hiddenCells.push(mdCell);
1231
- }
1232
- else {
1233
- deletedCells.push(mdCell);
1234
- }
1235
- }
1236
- }
1237
- this.hideMarkupPreviews(hiddenCells);
1238
- this.deleteMarkupPreviews(deletedCells);
1239
- }));
1240
- await this._warmupWithMarkdownRenderer(this.viewModel, viewState, perf);
1241
- perf?.mark('customMarkdownLoaded');
1242
- this._localCellStateListeners = ( (this.viewModel.viewCells.map(cell => this._bindCellListener(cell))));
1243
- this._lastCellWithEditorFocus = this.viewModel.viewCells.find(viewCell => this.getActiveCell() === viewCell && viewCell.focusMode === CellFocusMode.Editor) ?? null;
1244
- this._localStore.add(this.viewModel.onDidChangeViewCells((e) => {
1245
- if (this._isDisposed) {
1246
- return;
1247
- }
1248
- [...e.splices].reverse().forEach(splice => {
1249
- const [start, deleted, newCells] = splice;
1250
- const deletedCells = this._localCellStateListeners.splice(start, deleted, ...( (newCells.map(cell => this._bindCellListener(cell)))));
1251
- dispose(deletedCells);
1252
- });
1253
- if (( (e.splices.some(
1254
- s => ( (s[2].some(cell => cell.cellKind === CellKind.Markup)))
1255
- )))) {
1256
- this._backgroundMarkdownRendering();
1257
- }
1258
- }));
1259
- if (this._dimension) {
1260
- this._list.layout(this.getBodyHeight(this._dimension.height), this._dimension.width);
1261
- }
1262
- else {
1263
- this._list.layout();
1264
- }
1265
- this._dndController?.clearGlobalDragState();
1266
- this.restoreListViewState(viewState);
1267
- }
1268
- _bindCellListener(cell) {
1269
- const store = ( (new DisposableStore()));
1270
- store.add(cell.onDidChangeLayout(e => {
1271
- if (e.totalHeight || e.outerWidth) {
1272
- this.layoutNotebookCell(cell, cell.layoutInfo.totalHeight, e.context);
1273
- }
1274
- }));
1275
- if (cell.cellKind === CellKind.Code) {
1276
- store.add(cell.onDidRemoveOutputs((outputs) => {
1277
- outputs.forEach(output => this.removeInset(output));
1278
- }));
1279
- }
1280
- store.add(cell.onDidChangeState(e => {
1281
- if (e.inputCollapsedChanged && cell.isInputCollapsed && cell.cellKind === CellKind.Markup) {
1282
- this.hideMarkupPreviews([cell]);
1283
- }
1284
- if (e.outputCollapsedChanged && cell.isOutputCollapsed && cell.cellKind === CellKind.Code) {
1285
- cell.outputsViewModels.forEach(output => this.hideInset(output));
1286
- }
1287
- if (e.focusModeChanged) {
1288
- this._validateCellFocusMode(cell);
1289
- }
1290
- }));
1291
- return store;
1292
- }
1293
- _validateCellFocusMode(cell) {
1294
- if (cell.focusMode !== CellFocusMode.Editor) {
1295
- return;
1296
- }
1297
- if (this._lastCellWithEditorFocus && this._lastCellWithEditorFocus !== cell) {
1298
- this._lastCellWithEditorFocus.focusMode = CellFocusMode.Container;
1299
- }
1300
- this._lastCellWithEditorFocus = cell;
1301
- }
1302
- async _warmupWithMarkdownRenderer(viewModel, viewState, perf) {
1303
- this.logService.debug('NotebookEditorWidget', 'warmup ' + this.viewModel?.uri.toString());
1304
- await this._resolveWebview();
1305
- perf?.mark('webviewCommLoaded');
1306
- this.logService.debug('NotebookEditorWidget', 'warmup - webview resolved');
1307
- this._webview.element.style.visibility = 'hidden';
1308
- await this._warmupViewportMarkdownCells(viewModel, viewState);
1309
- this.logService.debug('NotebookEditorWidget', 'warmup - viewport warmed up');
1310
- this._list.layout(0, 0);
1311
- this._list.attachViewModel(viewModel);
1312
- this._list.scrollTop = viewState?.scrollPosition?.top ?? 0;
1313
- this._debug('finish initial viewport warmup and view state restore.');
1314
- this._webview.element.style.visibility = 'visible';
1315
- this.logService.debug('NotebookEditorWidget', 'warmup - list view model attached, set to visible');
1316
- this._onDidAttachViewModel.fire();
1317
- }
1318
- async _warmupViewportMarkdownCells(viewModel, viewState) {
1319
- if (viewState && viewState.cellTotalHeights) {
1320
- const totalHeightCache = viewState.cellTotalHeights;
1321
- const scrollTop = viewState.scrollPosition?.top ?? 0;
1322
- const scrollBottom = scrollTop + Math.max(this._dimension?.height ?? 0, 1080);
1323
- let offset = 0;
1324
- const requests = [];
1325
- for (let i = 0; i < viewModel.length; i++) {
1326
- const cell = viewModel.cellAt(i);
1327
- const cellHeight = totalHeightCache[i] ?? 0;
1328
- if (offset + cellHeight < scrollTop) {
1329
- offset += cellHeight;
1330
- continue;
1331
- }
1332
- if (cell.cellKind === CellKind.Markup) {
1333
- requests.push([cell, offset]);
1334
- }
1335
- offset += cellHeight;
1336
- if (offset > scrollBottom) {
1337
- break;
1338
- }
1339
- }
1340
- await this._webview.initializeMarkup(( (requests.map(([model, offset]) => this.createMarkupCellInitialization(model, offset)))));
1341
- }
1342
- else {
1343
- const initRequests = ( (viewModel.viewCells
1344
- .filter(cell => cell.cellKind === CellKind.Markup)
1345
- .slice(0, 5)
1346
- .map(cell => this.createMarkupCellInitialization(cell, -10000))));
1347
- await this._webview.initializeMarkup(initRequests);
1348
- let offset = 0;
1349
- const offsetUpdateRequests = [];
1350
- const scrollBottom = Math.max(this._dimension?.height ?? 0, 1080);
1351
- for (const cell of viewModel.viewCells) {
1352
- if (cell.cellKind === CellKind.Markup) {
1353
- offsetUpdateRequests.push({ id: cell.id, top: offset });
1354
- }
1355
- offset += cell.getHeight(this.getLayoutInfo().fontInfo.lineHeight);
1356
- if (offset > scrollBottom) {
1357
- break;
1358
- }
1359
- }
1360
- this._webview?.updateScrollTops([], offsetUpdateRequests);
1361
- }
1362
- }
1363
- createMarkupCellInitialization(model, offset) {
1364
- return ({
1365
- mime: model.mime,
1366
- cellId: model.id,
1367
- cellHandle: model.handle,
1368
- content: model.getText(),
1369
- offset: offset,
1370
- visible: false,
1371
- metadata: model.metadata,
1372
- });
1373
- }
1374
- restoreListViewState(viewState) {
1375
- if (!this.viewModel) {
1376
- return;
1377
- }
1378
- if (viewState?.scrollPosition !== undefined) {
1379
- this._list.scrollTop = viewState.scrollPosition.top;
1380
- this._list.scrollLeft = viewState.scrollPosition.left;
1381
- }
1382
- else {
1383
- this._list.scrollTop = 0;
1384
- this._list.scrollLeft = 0;
1385
- }
1386
- const focusIdx = typeof viewState?.focus === 'number' ? viewState.focus : 0;
1387
- if (focusIdx < this.viewModel.length) {
1388
- const element = this.viewModel.cellAt(focusIdx);
1389
- if (element) {
1390
- this.viewModel?.updateSelectionsState({
1391
- kind: SelectionStateType.Handle,
1392
- primary: element.handle,
1393
- selections: [element.handle]
1394
- });
1395
- }
1396
- }
1397
- else if (this._list.length > 0) {
1398
- this.viewModel.updateSelectionsState({
1399
- kind: SelectionStateType.Index,
1400
- focus: { start: 0, end: 1 },
1401
- selections: [{ start: 0, end: 1 }]
1402
- });
1403
- }
1404
- if (viewState?.editorFocused) {
1405
- const cell = this.viewModel.cellAt(focusIdx);
1406
- if (cell) {
1407
- cell.focusMode = CellFocusMode.Editor;
1408
- }
1409
- }
1410
- }
1411
- _restoreSelectedKernel(viewState) {
1412
- if (viewState?.selectedKernelId && this.textModel) {
1413
- const matching = this.notebookKernelService.getMatchingKernel(this.textModel);
1414
- const kernel = matching.all.find(k => k.id === viewState.selectedKernelId);
1415
- if (kernel && !matching.selected) {
1416
- this.notebookKernelService.selectKernelForNotebook(kernel, this.textModel);
1417
- }
1418
- }
1419
- }
1420
- getEditorViewState() {
1421
- const state = this.viewModel?.getEditorViewState();
1422
- if (!state) {
1423
- return {
1424
- editingCells: {},
1425
- cellLineNumberStates: {},
1426
- editorViewStates: {},
1427
- collapsedInputCells: {},
1428
- collapsedOutputCells: {},
1429
- };
1430
- }
1431
- if (this._list) {
1432
- state.scrollPosition = { left: this._list.scrollLeft, top: this._list.scrollTop };
1433
- const cellHeights = {};
1434
- for (let i = 0; i < this.viewModel.length; i++) {
1435
- const elm = this.viewModel.cellAt(i);
1436
- cellHeights[i] = elm.layoutInfo.totalHeight;
1437
- }
1438
- state.cellTotalHeights = cellHeights;
1439
- if (this.viewModel) {
1440
- const focusRange = this.viewModel.getFocus();
1441
- const element = this.viewModel.cellAt(focusRange.start);
1442
- if (element) {
1443
- const itemDOM = this._list.domElementOfElement(element);
1444
- const editorFocused = element.getEditState() === CellEditState.Editing && !!(itemDOM && itemDOM.ownerDocument.activeElement && itemDOM.contains(itemDOM.ownerDocument.activeElement));
1445
- state.editorFocused = editorFocused;
1446
- state.focus = focusRange.start;
1447
- }
1448
- }
1449
- }
1450
- const contributionsState = {};
1451
- for (const [id, contribution] of this._contributions) {
1452
- if (typeof contribution.saveViewState === 'function') {
1453
- contributionsState[id] = contribution.saveViewState();
1454
- }
1455
- }
1456
- state.contributionsState = contributionsState;
1457
- if (this.textModel?.uri.scheme === Schemas.untitled) {
1458
- state.selectedKernelId = this.activeKernel?.id;
1459
- }
1460
- return state;
1461
- }
1462
- _allowScrollBeyondLastLine() {
1463
- return this._scrollBeyondLastLine && !this.isReplHistory;
1464
- }
1465
- getBodyHeight(dimensionHeight) {
1466
- return Math.max(dimensionHeight - (this._notebookTopToolbar?.useGlobalToolbar ? 26 : 0), 0);
1467
- }
1468
- layout(dimension, shadowElement, position) {
1469
- if (!shadowElement && this._shadowElementViewInfo === null) {
1470
- this._dimension = dimension;
1471
- this._position = position;
1472
- return;
1473
- }
1474
- if (dimension.width <= 0 || dimension.height <= 0) {
1475
- this.onWillHide();
1476
- return;
1477
- }
1478
- const whenContainerStylesLoaded = this.layoutService.whenContainerStylesLoaded(getWindow(this.getDomNode()));
1479
- if (whenContainerStylesLoaded) {
1480
- whenContainerStylesLoaded.then(() => this.layoutNotebook(dimension, shadowElement, position));
1481
- }
1482
- else {
1483
- this.layoutNotebook(dimension, shadowElement, position);
1484
- }
1485
- }
1486
- layoutNotebook(dimension, shadowElement, position) {
1487
- if (shadowElement) {
1488
- this.updateShadowElement(shadowElement, dimension, position);
1489
- }
1490
- if (this._shadowElementViewInfo && this._shadowElementViewInfo.width <= 0 && this._shadowElementViewInfo.height <= 0) {
1491
- this.onWillHide();
1492
- return;
1493
- }
1494
- this._dimension = dimension;
1495
- this._position = position;
1496
- const newBodyHeight = this.getBodyHeight(dimension.height) - this.getLayoutInfo().stickyHeight;
1497
- size(this._body, dimension.width, newBodyHeight);
1498
- const newCellListHeight = newBodyHeight;
1499
- if (this._list.getRenderHeight() < newCellListHeight) {
1500
- this._list.updateOptions({ paddingBottom: this._allowScrollBeyondLastLine() ? Math.max(0, (newCellListHeight - 50)) : 0, paddingTop: 0 });
1501
- this._list.layout(newCellListHeight, dimension.width);
1502
- }
1503
- else {
1504
- this._list.layout(newCellListHeight, dimension.width);
1505
- this._list.updateOptions({ paddingBottom: this._allowScrollBeyondLastLine() ? Math.max(0, (newCellListHeight - 50)) : 0, paddingTop: 0 });
1506
- }
1507
- this._overlayContainer.inert = false;
1508
- this._overlayContainer.style.visibility = 'visible';
1509
- this._overlayContainer.style.display = 'block';
1510
- this._overlayContainer.style.position = 'absolute';
1511
- this._overlayContainer.style.overflow = 'hidden';
1512
- this.layoutContainerOverShadowElement(dimension, position);
1513
- if (this._webviewTransparentCover) {
1514
- this._webviewTransparentCover.style.height = `${dimension.height}px`;
1515
- this._webviewTransparentCover.style.width = `${dimension.width}px`;
1516
- }
1517
- this._notebookTopToolbar.layout(this._dimension);
1518
- this._notebookOverviewRuler.layout();
1519
- this._viewContext?.eventDispatcher.emit([( (new NotebookLayoutChangedEvent({ width: true, fontInfo: true }, this.getLayoutInfo())))]);
1520
- }
1521
- updateShadowElement(shadowElement, dimension, position) {
1522
- this._shadowElement = shadowElement;
1523
- if (dimension && position) {
1524
- this._shadowElementViewInfo = {
1525
- height: dimension.height,
1526
- width: dimension.width,
1527
- top: position.top,
1528
- left: position.left,
1529
- };
1530
- }
1531
- else {
1532
- const containerRect = shadowElement.getBoundingClientRect();
1533
- this._shadowElementViewInfo = {
1534
- height: containerRect.height,
1535
- width: containerRect.width,
1536
- top: containerRect.top,
1537
- left: containerRect.left
1538
- };
1539
- }
1540
- }
1541
- layoutContainerOverShadowElement(dimension, position) {
1542
- if (dimension && position) {
1543
- this._overlayContainer.style.top = `${position.top}px`;
1544
- this._overlayContainer.style.left = `${position.left}px`;
1545
- this._overlayContainer.style.width = `${dimension.width}px`;
1546
- this._overlayContainer.style.height = `${dimension.height}px`;
1547
- return;
1548
- }
1549
- if (!this._shadowElementViewInfo) {
1550
- return;
1551
- }
1552
- const elementContainerRect = this._overlayContainer.parentElement?.getBoundingClientRect();
1553
- this._overlayContainer.style.top = `${this._shadowElementViewInfo.top - (elementContainerRect?.top || 0)}px`;
1554
- this._overlayContainer.style.left = `${this._shadowElementViewInfo.left - (elementContainerRect?.left || 0)}px`;
1555
- this._overlayContainer.style.width = `${dimension ? dimension.width : this._shadowElementViewInfo.width}px`;
1556
- this._overlayContainer.style.height = `${dimension ? dimension.height : this._shadowElementViewInfo.height}px`;
1557
- }
1558
- focus() {
1559
- this._isVisible = true;
1560
- this._editorFocus.set(true);
1561
- if (this._webviewFocused) {
1562
- this._webview?.focusWebview();
1563
- }
1564
- else {
1565
- if (this.viewModel) {
1566
- const focusRange = this.viewModel.getFocus();
1567
- const element = this.viewModel.cellAt(focusRange.start);
1568
- if (!this.hasEditorFocus()) {
1569
- this.focusContainer();
1570
- this.updateEditorFocus();
1571
- }
1572
- if (element && element.focusMode === CellFocusMode.Editor) {
1573
- element.updateEditState(CellEditState.Editing, 'editorWidget.focus');
1574
- element.focusMode = CellFocusMode.Editor;
1575
- this.focusEditor(element);
1576
- return;
1577
- }
1578
- }
1579
- this._list.domFocus();
1580
- }
1581
- if (this._currentProgress) {
1582
- this.showProgress();
1583
- }
1584
- }
1585
- onShow() {
1586
- this._isVisible = true;
1587
- }
1588
- focusEditor(activeElement) {
1589
- for (const [element, editor] of this._renderedEditors.entries()) {
1590
- if (element === activeElement) {
1591
- editor.focus();
1592
- return;
1593
- }
1594
- }
1595
- }
1596
- focusContainer(clearSelection = false) {
1597
- if (this._webviewFocused) {
1598
- this._webview?.focusWebview();
1599
- }
1600
- else {
1601
- this._list.focusContainer(clearSelection);
1602
- }
1603
- }
1604
- selectOutputContent(cell) {
1605
- this._webview?.selectOutputContents(cell);
1606
- }
1607
- selectInputContents(cell) {
1608
- this._webview?.selectInputContents(cell);
1609
- }
1610
- onWillHide() {
1611
- this._isVisible = false;
1612
- this._editorFocus.set(false);
1613
- this._overlayContainer.inert = true;
1614
- this._overlayContainer.style.visibility = 'hidden';
1615
- this._overlayContainer.style.left = '-50000px';
1616
- this._notebookTopToolbarContainer.style.display = 'none';
1617
- this.clearActiveCellWidgets();
1618
- }
1619
- clearActiveCellWidgets() {
1620
- this._renderedEditors.forEach((editor, cell) => {
1621
- if (this.getActiveCell() === cell && editor) {
1622
- SuggestController.get(editor)?.cancelSuggestWidget();
1623
- DropIntoEditorController.get(editor)?.clearWidgets();
1624
- CopyPasteController.get(editor)?.clearWidgets();
1625
- }
1626
- });
1627
- }
1628
- editorHasDomFocus() {
1629
- return isAncestorOfActiveElement(this.getDomNode());
1630
- }
1631
- updateEditorFocus() {
1632
- this._focusTracker.refreshState();
1633
- const focused = this.editorHasDomFocus();
1634
- this._editorFocus.set(focused);
1635
- this.viewModel?.setEditorFocus(focused);
1636
- }
1637
- updateCellFocusMode() {
1638
- const activeCell = this.getActiveCell();
1639
- if (activeCell?.focusMode === CellFocusMode.Output && !this._webviewFocused) {
1640
- activeCell.focusMode = CellFocusMode.Container;
1641
- }
1642
- }
1643
- hasEditorFocus() {
1644
- this.updateEditorFocus();
1645
- return this.editorHasDomFocus();
1646
- }
1647
- hasWebviewFocus() {
1648
- return this._webviewFocused;
1649
- }
1650
- hasOutputTextSelection() {
1651
- if (!this.hasEditorFocus()) {
1652
- return false;
1653
- }
1654
- const windowSelection = getWindow(this.getDomNode()).getSelection();
1655
- if (windowSelection?.rangeCount !== 1) {
1656
- return false;
1657
- }
1658
- const activeSelection = windowSelection.getRangeAt(0);
1659
- if (activeSelection.startContainer === activeSelection.endContainer && activeSelection.endOffset - activeSelection.startOffset === 0) {
1660
- return false;
1661
- }
1662
- let container = activeSelection.commonAncestorContainer;
1663
- if (!this._body.contains(container)) {
1664
- return false;
1665
- }
1666
- while (container
1667
- &&
1668
- container !== this._body) {
1669
- if (container.classList && container.classList.contains('output')) {
1670
- return true;
1671
- }
1672
- container = container.parentNode;
1673
- }
1674
- return false;
1675
- }
1676
- _didFocusOutputInputChange(hasFocus) {
1677
- this._outputInputFocus.set(hasFocus);
1678
- }
1679
- focusElement(cell) {
1680
- this.viewModel?.updateSelectionsState({
1681
- kind: SelectionStateType.Handle,
1682
- primary: cell.handle,
1683
- selections: [cell.handle]
1684
- });
1685
- }
1686
- get scrollTop() {
1687
- return this._list.scrollTop;
1688
- }
1689
- get scrollBottom() {
1690
- return this._list.scrollTop + this._list.getRenderHeight();
1691
- }
1692
- getAbsoluteTopOfElement(cell) {
1693
- return this._list.getCellViewScrollTop(cell);
1694
- }
1695
- getHeightOfElement(cell) {
1696
- return this._list.elementHeight(cell);
1697
- }
1698
- scrollToBottom() {
1699
- this._list.scrollToBottom();
1700
- }
1701
- setScrollTop(scrollTop) {
1702
- this._list.scrollTop = scrollTop;
1703
- }
1704
- revealCellRangeInView(range) {
1705
- return this._list.revealCells(range);
1706
- }
1707
- revealInView(cell) {
1708
- return this._list.revealCell(cell, 1 );
1709
- }
1710
- revealInViewAtTop(cell) {
1711
- this._list.revealCell(cell, 2 );
1712
- }
1713
- revealInCenter(cell) {
1714
- this._list.revealCell(cell, 3 );
1715
- }
1716
- async revealInCenterIfOutsideViewport(cell) {
1717
- await this._list.revealCell(cell, 4 );
1718
- }
1719
- async revealFirstLineIfOutsideViewport(cell) {
1720
- await this._list.revealCell(cell, 6 );
1721
- }
1722
- async revealLineInViewAsync(cell, line) {
1723
- return this._list.revealRangeInCell(cell, ( (new Range(line, 1, line, 1))), CellRevealRangeType.Default);
1724
- }
1725
- async revealLineInCenterAsync(cell, line) {
1726
- return this._list.revealRangeInCell(cell, ( (new Range(line, 1, line, 1))), CellRevealRangeType.Center);
1727
- }
1728
- async revealLineInCenterIfOutsideViewportAsync(cell, line) {
1729
- return this._list.revealRangeInCell(cell, ( (new Range(line, 1, line, 1))), CellRevealRangeType.CenterIfOutsideViewport);
1730
- }
1731
- async revealRangeInViewAsync(cell, range) {
1732
- return this._list.revealRangeInCell(cell, range, CellRevealRangeType.Default);
1733
- }
1734
- async revealRangeInCenterAsync(cell, range) {
1735
- return this._list.revealRangeInCell(cell, range, CellRevealRangeType.Center);
1736
- }
1737
- async revealRangeInCenterIfOutsideViewportAsync(cell, range) {
1738
- return this._list.revealRangeInCell(cell, range, CellRevealRangeType.CenterIfOutsideViewport);
1739
- }
1740
- revealCellOffsetInCenter(cell, offset) {
1741
- return this._list.revealCellOffsetInCenter(cell, offset);
1742
- }
1743
- revealOffsetInCenterIfOutsideViewport(offset) {
1744
- return this._list.revealOffsetInCenterIfOutsideViewport(offset);
1745
- }
1746
- getViewIndexByModelIndex(index) {
1747
- if (!this._listViewInfoAccessor) {
1748
- return -1;
1749
- }
1750
- const cell = this.viewModel?.viewCells[index];
1751
- if (!cell) {
1752
- return -1;
1753
- }
1754
- return this._listViewInfoAccessor.getViewIndex(cell);
1755
- }
1756
- getViewHeight(cell) {
1757
- if (!this._listViewInfoAccessor) {
1758
- return -1;
1759
- }
1760
- return this._listViewInfoAccessor.getViewHeight(cell);
1761
- }
1762
- getCellRangeFromViewRange(startIndex, endIndex) {
1763
- return this._listViewInfoAccessor.getCellRangeFromViewRange(startIndex, endIndex);
1764
- }
1765
- getCellsInRange(range) {
1766
- return this._listViewInfoAccessor.getCellsInRange(range);
1767
- }
1768
- setCellEditorSelection(cell, range) {
1769
- this._list.setCellEditorSelection(cell, range);
1770
- }
1771
- setHiddenAreas(_ranges) {
1772
- return this._list.setHiddenAreas(_ranges, true);
1773
- }
1774
- getVisibleRangesPlusViewportAboveAndBelow() {
1775
- return this._listViewInfoAccessor.getVisibleRangesPlusViewportAboveAndBelow();
1776
- }
1777
- deltaCellDecorations(oldDecorations, newDecorations) {
1778
- const ret = this.viewModel?.deltaCellDecorations(oldDecorations, newDecorations) || [];
1779
- this._onDidChangeDecorations.fire();
1780
- return ret;
1781
- }
1782
- deltaCellContainerClassNames(cellId, added, removed) {
1783
- this._webview?.deltaCellContainerClassNames(cellId, added, removed);
1784
- }
1785
- changeModelDecorations(callback) {
1786
- return this.viewModel?.changeModelDecorations(callback) || null;
1787
- }
1788
- changeViewZones(callback) {
1789
- this._list.changeViewZones(callback);
1790
- }
1791
- async _loadKernelPreloads() {
1792
- if (!this.hasModel()) {
1793
- return;
1794
- }
1795
- const { selected } = this.notebookKernelService.getMatchingKernel(this.textModel);
1796
- if (!this._webview?.isResolved()) {
1797
- await this._resolveWebview();
1798
- }
1799
- this._webview?.updateKernelPreloads(selected);
1800
- }
1801
- get activeKernel() {
1802
- return this.textModel && this.notebookKernelService.getSelectedOrSuggestedKernel(this.textModel);
1803
- }
1804
- async cancelNotebookCells(cells) {
1805
- if (!this.viewModel || !this.hasModel()) {
1806
- return;
1807
- }
1808
- if (!cells) {
1809
- cells = this.viewModel.viewCells;
1810
- }
1811
- return this.notebookExecutionService.cancelNotebookCellHandles(this.textModel, ( (Array.from(cells).map(cell => cell.handle))));
1812
- }
1813
- async executeNotebookCells(cells) {
1814
- if (!this.viewModel || !this.hasModel()) {
1815
- this.logService.info('notebookEditorWidget', 'No NotebookViewModel, cannot execute cells');
1816
- return;
1817
- }
1818
- if (!cells) {
1819
- cells = this.viewModel.viewCells;
1820
- }
1821
- return this.notebookExecutionService.executeNotebookCells(this.textModel, ( (Array.from(cells).map(c => c.model))), this.scopedContextKeyService);
1822
- }
1823
- async layoutNotebookCell(cell, height, context) {
1824
- this._debug('layout cell', cell.handle, height);
1825
- const viewIndex = this._list.getViewIndex(cell);
1826
- if (viewIndex === undefined) {
1827
- return;
1828
- }
1829
- if (this._pendingLayouts?.has(cell)) {
1830
- this._pendingLayouts?.get(cell).dispose();
1831
- }
1832
- const deferred = ( (new DeferredPromise()));
1833
- const doLayout = () => {
1834
- if (this._isDisposed) {
1835
- return;
1836
- }
1837
- if (!this.viewModel?.hasCell(cell)) {
1838
- return;
1839
- }
1840
- if (this._list.getViewIndex(cell) === undefined) {
1841
- return;
1842
- }
1843
- if (this._list.elementHeight(cell) === height) {
1844
- return;
1845
- }
1846
- this._pendingLayouts?.delete(cell);
1847
- if (!this.hasEditorFocus()) {
1848
- const cellIndex = this.viewModel?.getCellIndex(cell);
1849
- const visibleRanges = this.visibleRanges;
1850
- if (cellIndex !== undefined
1851
- && visibleRanges && visibleRanges.length && visibleRanges[0].start === cellIndex
1852
- && this._list.scrollTop > this.getAbsoluteTopOfElement(cell)) {
1853
- return this._list.updateElementHeight2(cell, height, Math.min(cellIndex + 1, this.getLength() - 1));
1854
- }
1855
- }
1856
- this._list.updateElementHeight2(cell, height);
1857
- deferred.complete(undefined);
1858
- };
1859
- if (this._list.inRenderingTransaction) {
1860
- const layoutDisposable = scheduleAtNextAnimationFrame(getWindow(this.getDomNode()), doLayout);
1861
- this._pendingLayouts?.set(cell, toDisposable(() => {
1862
- layoutDisposable.dispose();
1863
- deferred.complete(undefined);
1864
- }));
1865
- }
1866
- else {
1867
- doLayout();
1868
- }
1869
- return deferred.p;
1870
- }
1871
- getActiveCell() {
1872
- const elements = this._list.getFocusedElements();
1873
- if (elements && elements.length) {
1874
- return elements[0];
1875
- }
1876
- return undefined;
1877
- }
1878
- _toggleNotebookCellSelection(selectedCell, selectFromPrevious) {
1879
- const currentSelections = this._list.getSelectedElements();
1880
- const isSelected = currentSelections.includes(selectedCell);
1881
- const previousSelection = selectFromPrevious ? currentSelections[currentSelections.length - 1] ?? selectedCell : selectedCell;
1882
- const selectedIndex = this._list.getViewIndex(selectedCell);
1883
- const previousIndex = this._list.getViewIndex(previousSelection);
1884
- const cellsInSelectionRange = this.getCellsInViewRange(selectedIndex, previousIndex);
1885
- if (isSelected) {
1886
- this._list.selectElements(currentSelections.filter(current => !cellsInSelectionRange.includes(current)));
1887
- }
1888
- else {
1889
- this.focusElement(selectedCell);
1890
- this._list.selectElements([...currentSelections.filter(current => !cellsInSelectionRange.includes(current)), ...cellsInSelectionRange]);
1891
- }
1892
- }
1893
- getCellsInViewRange(fromInclusive, toInclusive) {
1894
- const selectedCellsInRange = [];
1895
- for (let index = 0; index < this._list.length; ++index) {
1896
- const cell = this._list.element(index);
1897
- if (cell) {
1898
- if ((index >= fromInclusive && index <= toInclusive) || (index >= toInclusive && index <= fromInclusive)) {
1899
- selectedCellsInRange.push(cell);
1900
- }
1901
- }
1902
- }
1903
- return selectedCellsInRange;
1904
- }
1905
- async focusNotebookCell(cell, focusItem, options) {
1906
- if (this._isDisposed) {
1907
- return;
1908
- }
1909
- cell.focusedOutputId = undefined;
1910
- if (focusItem === 'editor') {
1911
- this.focusElement(cell);
1912
- this._list.focusView();
1913
- cell.updateEditState(CellEditState.Editing, 'focusNotebookCell');
1914
- cell.focusMode = CellFocusMode.Editor;
1915
- if (!options?.skipReveal) {
1916
- if (typeof options?.focusEditorLine === 'number') {
1917
- this._cursorNavMode.set(true);
1918
- await this.revealLineInViewAsync(cell, options.focusEditorLine);
1919
- const editor = this._renderedEditors.get(cell);
1920
- const focusEditorLine = options.focusEditorLine;
1921
- editor?.setSelection({
1922
- startLineNumber: focusEditorLine,
1923
- startColumn: 1,
1924
- endLineNumber: focusEditorLine,
1925
- endColumn: 1
1926
- });
1927
- }
1928
- else {
1929
- const selectionsStartPosition = cell.getSelectionsStartPosition();
1930
- if (selectionsStartPosition?.length) {
1931
- const firstSelectionPosition = selectionsStartPosition[0];
1932
- await this.revealRangeInViewAsync(cell, Range.fromPositions(firstSelectionPosition, firstSelectionPosition));
1933
- }
1934
- else {
1935
- await this.revealInView(cell);
1936
- }
1937
- }
1938
- }
1939
- }
1940
- else if (focusItem === 'output') {
1941
- this.focusElement(cell);
1942
- if (!this.hasEditorFocus()) {
1943
- this._list.focusView();
1944
- }
1945
- if (!this._webview) {
1946
- return;
1947
- }
1948
- const firstOutputId = cell.outputsViewModels.find(o => o.model.alternativeOutputId)?.model.alternativeOutputId;
1949
- const focusElementId = options?.outputId ?? firstOutputId ?? cell.id;
1950
- this._webview.focusOutput(focusElementId, options?.altOutputId, options?.outputWebviewFocused || this._webviewFocused);
1951
- cell.updateEditState(CellEditState.Preview, 'focusNotebookCell');
1952
- cell.focusMode = CellFocusMode.Output;
1953
- cell.focusedOutputId = options?.outputId;
1954
- this._outputFocus.set(true);
1955
- if (!options?.skipReveal) {
1956
- this.revealInCenterIfOutsideViewport(cell);
1957
- }
1958
- }
1959
- else {
1960
- const itemDOM = this._list.domElementOfElement(cell);
1961
- if (itemDOM && itemDOM.ownerDocument.activeElement && itemDOM.contains(itemDOM.ownerDocument.activeElement)) {
1962
- itemDOM.ownerDocument.activeElement.blur();
1963
- }
1964
- this._webview?.blurOutput();
1965
- cell.updateEditState(CellEditState.Preview, 'focusNotebookCell');
1966
- cell.focusMode = CellFocusMode.Container;
1967
- this.focusElement(cell);
1968
- if (!options?.skipReveal) {
1969
- if (typeof options?.focusEditorLine === 'number') {
1970
- this._cursorNavMode.set(true);
1971
- await this.revealInView(cell);
1972
- }
1973
- else if (options?.revealBehavior === ScrollToRevealBehavior.firstLine) {
1974
- await this.revealFirstLineIfOutsideViewport(cell);
1975
- }
1976
- else if (options?.revealBehavior === ScrollToRevealBehavior.fullCell) {
1977
- await this.revealInView(cell);
1978
- }
1979
- else {
1980
- await this.revealInCenterIfOutsideViewport(cell);
1981
- }
1982
- }
1983
- this._list.focusView();
1984
- this.updateEditorFocus();
1985
- }
1986
- }
1987
- async focusNextNotebookCell(cell, focusItem) {
1988
- const idx = this.viewModel?.getCellIndex(cell);
1989
- if (typeof idx !== 'number') {
1990
- return;
1991
- }
1992
- const newCell = this.viewModel?.cellAt(idx + 1);
1993
- if (!newCell) {
1994
- return;
1995
- }
1996
- await this.focusNotebookCell(newCell, focusItem);
1997
- }
1998
- async _warmupCell(viewCell) {
1999
- if (viewCell.isOutputCollapsed) {
2000
- return;
2001
- }
2002
- const outputs = viewCell.outputsViewModels;
2003
- for (const output of outputs.slice(0, outputDisplayLimit)) {
2004
- const [mimeTypes, pick] = output.resolveMimeTypes(this.textModel, undefined);
2005
- if (!mimeTypes.find(mimeType => mimeType.isTrusted) || mimeTypes.length === 0) {
2006
- continue;
2007
- }
2008
- const pickedMimeTypeRenderer = mimeTypes[pick];
2009
- if (!pickedMimeTypeRenderer) {
2010
- return;
2011
- }
2012
- const renderer = this._notebookService.getRendererInfo(pickedMimeTypeRenderer.rendererId);
2013
- if (!renderer) {
2014
- return;
2015
- }
2016
- const result = { type: 1 , renderer, source: output, mimeType: pickedMimeTypeRenderer.mimeType };
2017
- const inset = this._webview?.insetMapping.get(result.source);
2018
- if (!inset || !inset.initialized) {
2019
- const p = ( (new Promise(resolve => {
2020
- this._register(Event.any(this.onDidRenderOutput, this.onDidRemoveOutput)(e => {
2021
- if (e.model === result.source.model) {
2022
- resolve();
2023
- }
2024
- }));
2025
- })));
2026
- this.createOutput(viewCell, result, 0, false);
2027
- await p;
2028
- }
2029
- else {
2030
- this.createOutput(viewCell, result, 0, false);
2031
- }
2032
- return;
2033
- }
2034
- }
2035
- async _warmupAll(includeOutput) {
2036
- if (!this.hasModel() || !this.viewModel) {
2037
- return;
2038
- }
2039
- const cells = this.viewModel.viewCells;
2040
- const requests = [];
2041
- for (let i = 0; i < cells.length; i++) {
2042
- if (cells[i].cellKind === CellKind.Markup && !( (this._webview.markupPreviewMapping.has(cells[i].id)))) {
2043
- requests.push(this.createMarkupPreview(cells[i]));
2044
- }
2045
- }
2046
- if (includeOutput && this._list) {
2047
- for (let i = 0; i < this._list.length; i++) {
2048
- const cell = this._list.element(i);
2049
- if (cell?.cellKind === CellKind.Code) {
2050
- requests.push(this._warmupCell(cell));
2051
- }
2052
- }
2053
- }
2054
- return Promise.all(requests);
2055
- }
2056
- async find(query, options, token, skipWarmup = false, shouldGetSearchPreviewInfo = false, ownerID) {
2057
- if (!this._notebookViewModel) {
2058
- return [];
2059
- }
2060
- if (!ownerID) {
2061
- ownerID = this.getId();
2062
- }
2063
- const findMatches = this._notebookViewModel.find(query, options).filter(match => match.length > 0);
2064
- if ((!options.includeMarkupPreview && !options.includeOutput) || options.findScope?.findScopeType === NotebookFindScopeType.Text) {
2065
- this._webview?.findStop(ownerID);
2066
- return findMatches;
2067
- }
2068
- const matchMap = {};
2069
- findMatches.forEach(match => {
2070
- matchMap[match.cell.id] = match;
2071
- });
2072
- if (this._webview) {
2073
- const start = Date.now();
2074
- await this._warmupAll(!!options.includeOutput);
2075
- const end = Date.now();
2076
- this.logService.debug('Find', `Warmup time: ${end - start}ms`);
2077
- if (token.isCancellationRequested) {
2078
- return [];
2079
- }
2080
- let findIds = [];
2081
- if (options.findScope && options.findScope.findScopeType === NotebookFindScopeType.Cells && options.findScope.selectedCellRanges) {
2082
- const selectedIndexes = cellRangesToIndexes(options.findScope.selectedCellRanges);
2083
- findIds = ( (selectedIndexes.map(index => this._notebookViewModel?.viewCells[index].id ?? '')));
2084
- }
2085
- const webviewMatches = await this._webview.find(query, { caseSensitive: options.caseSensitive, wholeWord: options.wholeWord, includeMarkup: !!options.includeMarkupPreview, includeOutput: !!options.includeOutput, shouldGetSearchPreviewInfo, ownerID, findIds: findIds });
2086
- if (token.isCancellationRequested) {
2087
- return [];
2088
- }
2089
- webviewMatches.forEach(match => {
2090
- const cell = this._notebookViewModel.viewCells.find(cell => cell.id === match.cellId);
2091
- if (!cell) {
2092
- return;
2093
- }
2094
- if (match.type === 'preview') {
2095
- if (cell.getEditState() === CellEditState.Preview && !options.includeMarkupPreview) {
2096
- return;
2097
- }
2098
- if (cell.getEditState() === CellEditState.Editing && options.includeMarkupInput) {
2099
- return;
2100
- }
2101
- }
2102
- else {
2103
- if (!options.includeOutput) {
2104
- return;
2105
- }
2106
- }
2107
- const exisitingMatch = matchMap[match.cellId];
2108
- if (exisitingMatch) {
2109
- exisitingMatch.webviewMatches.push(match);
2110
- }
2111
- else {
2112
- matchMap[match.cellId] = ( (new CellFindMatchModel(
2113
- this._notebookViewModel.viewCells.find(cell => cell.id === match.cellId),
2114
- this._notebookViewModel.viewCells.findIndex(cell => cell.id === match.cellId),
2115
- [],
2116
- [match]
2117
- )));
2118
- }
2119
- });
2120
- }
2121
- const ret = [];
2122
- this._notebookViewModel.viewCells.forEach((cell, index) => {
2123
- if (matchMap[cell.id]) {
2124
- ret.push(( (new CellFindMatchModel(
2125
- cell,
2126
- index,
2127
- matchMap[cell.id].contentMatches,
2128
- matchMap[cell.id].webviewMatches
2129
- ))));
2130
- }
2131
- });
2132
- return ret;
2133
- }
2134
- async findHighlightCurrent(matchIndex, ownerID) {
2135
- if (!this._webview) {
2136
- return 0;
2137
- }
2138
- return this._webview?.findHighlightCurrent(matchIndex, ownerID ?? this.getId());
2139
- }
2140
- async findUnHighlightCurrent(matchIndex, ownerID) {
2141
- if (!this._webview) {
2142
- return;
2143
- }
2144
- return this._webview?.findUnHighlightCurrent(matchIndex, ownerID ?? this.getId());
2145
- }
2146
- findStop(ownerID) {
2147
- this._webview?.findStop(ownerID ?? this.getId());
2148
- }
2149
- getLayoutInfo() {
2150
- if (!this._list) {
2151
- throw ( (new Error('Editor is not initalized successfully')));
2152
- }
2153
- if (!this._fontInfo) {
2154
- this._generateFontInfo();
2155
- }
2156
- return {
2157
- width: this._dimension?.width ?? 0,
2158
- height: this._dimension?.height ?? 0,
2159
- scrollHeight: this._list?.getScrollHeight() ?? 0,
2160
- fontInfo: this._fontInfo,
2161
- stickyHeight: this._notebookStickyScroll?.getCurrentStickyHeight() ?? 0
2162
- };
2163
- }
2164
- async createMarkupPreview(cell) {
2165
- if (!this._webview) {
2166
- return;
2167
- }
2168
- if (!this._webview.isResolved()) {
2169
- await this._resolveWebview();
2170
- }
2171
- if (!this._webview || !this._list.webviewElement) {
2172
- return;
2173
- }
2174
- if (!this.viewModel || !this._list.viewModel) {
2175
- return;
2176
- }
2177
- if (this.viewModel.getCellIndex(cell) === -1) {
2178
- return;
2179
- }
2180
- if (this.cellIsHidden(cell)) {
2181
- return;
2182
- }
2183
- const webviewTop = parseInt(this._list.webviewElement.domNode.style.top, 10);
2184
- const top = !!webviewTop ? (0 - webviewTop) : 0;
2185
- const cellTop = this._list.getCellViewScrollTop(cell);
2186
- await this._webview.showMarkupPreview({
2187
- mime: cell.mime,
2188
- cellHandle: cell.handle,
2189
- cellId: cell.id,
2190
- content: cell.getText(),
2191
- offset: cellTop + top,
2192
- visible: true,
2193
- metadata: cell.metadata,
2194
- });
2195
- }
2196
- cellIsHidden(cell) {
2197
- const modelIndex = this.viewModel.getCellIndex(cell);
2198
- const foldedRanges = this.viewModel.getHiddenRanges();
2199
- return (
2200
- (foldedRanges.some(range => modelIndex >= range.start && modelIndex <= range.end))
2201
- );
2202
- }
2203
- async unhideMarkupPreviews(cells) {
2204
- if (!this._webview) {
2205
- return;
2206
- }
2207
- if (!this._webview.isResolved()) {
2208
- await this._resolveWebview();
2209
- }
2210
- await this._webview?.unhideMarkupPreviews(( (cells.map(cell => cell.id))));
2211
- }
2212
- async hideMarkupPreviews(cells) {
2213
- if (!this._webview || !cells.length) {
2214
- return;
2215
- }
2216
- if (!this._webview.isResolved()) {
2217
- await this._resolveWebview();
2218
- }
2219
- await this._webview?.hideMarkupPreviews(( (cells.map(cell => cell.id))));
2220
- }
2221
- async deleteMarkupPreviews(cells) {
2222
- if (!this._webview) {
2223
- return;
2224
- }
2225
- if (!this._webview.isResolved()) {
2226
- await this._resolveWebview();
2227
- }
2228
- await this._webview?.deleteMarkupPreviews(( (cells.map(cell => cell.id))));
2229
- }
2230
- async updateSelectedMarkdownPreviews() {
2231
- if (!this._webview) {
2232
- return;
2233
- }
2234
- if (!this._webview.isResolved()) {
2235
- await this._resolveWebview();
2236
- }
2237
- const selectedCells = ( (this.getSelectionViewModels().map(cell => cell.id)));
2238
- await this._webview?.updateMarkupPreviewSelections(selectedCells.length > 1 ? selectedCells : []);
2239
- }
2240
- async createOutput(cell, output, offset, createWhenIdle) {
2241
- this._insetModifyQueueByOutputId.queue(output.source.model.outputId, async () => {
2242
- if (this._isDisposed || !this._webview) {
2243
- return;
2244
- }
2245
- if (!this._webview.isResolved()) {
2246
- await this._resolveWebview();
2247
- }
2248
- if (!this._webview) {
2249
- return;
2250
- }
2251
- if (!this._list.webviewElement) {
2252
- return;
2253
- }
2254
- if (output.type === 1 ) {
2255
- this.notebookRendererMessaging.prepare(output.renderer.id);
2256
- }
2257
- const webviewTop = parseInt(this._list.webviewElement.domNode.style.top, 10);
2258
- const top = !!webviewTop ? (0 - webviewTop) : 0;
2259
- const cellTop = this._list.getCellViewScrollTop(cell) + top;
2260
- const existingOutput = this._webview.insetMapping.get(output.source);
2261
- if (!existingOutput
2262
- || ((!existingOutput.renderer && output.type === 1) )) {
2263
- if (createWhenIdle) {
2264
- this._webview.requestCreateOutputWhenWebviewIdle({ cellId: cell.id, cellHandle: cell.handle, cellUri: cell.uri, executionId: cell.internalMetadata.executionId }, output, cellTop, offset);
2265
- }
2266
- else {
2267
- this._webview.createOutput({ cellId: cell.id, cellHandle: cell.handle, cellUri: cell.uri, executionId: cell.internalMetadata.executionId }, output, cellTop, offset);
2268
- }
2269
- }
2270
- else if (existingOutput.renderer
2271
- && output.type === 1
2272
- && existingOutput.renderer.id !== output.renderer.id) {
2273
- this._webview.removeInsets([output.source]);
2274
- this._webview.createOutput({ cellId: cell.id, cellHandle: cell.handle, cellUri: cell.uri }, output, cellTop, offset);
2275
- }
2276
- else if (existingOutput.versionId !== output.source.model.versionId) {
2277
- this._webview.updateOutput({ cellId: cell.id, cellHandle: cell.handle, cellUri: cell.uri, executionId: cell.internalMetadata.executionId }, output, cellTop, offset);
2278
- }
2279
- else {
2280
- const outputIndex = cell.outputsViewModels.indexOf(output.source);
2281
- const outputOffset = cell.getOutputOffset(outputIndex);
2282
- this._webview.updateScrollTops([{
2283
- cell,
2284
- output: output.source,
2285
- cellTop,
2286
- outputOffset,
2287
- forceDisplay: !cell.isOutputCollapsed,
2288
- }], []);
2289
- }
2290
- });
2291
- }
2292
- async updateOutput(cell, output, offset) {
2293
- this._insetModifyQueueByOutputId.queue(output.source.model.outputId, async () => {
2294
- if (this._isDisposed || !this._webview || cell.isOutputCollapsed) {
2295
- return;
2296
- }
2297
- if (!this._webview.isResolved()) {
2298
- await this._resolveWebview();
2299
- }
2300
- if (!this._webview || !this._list.webviewElement) {
2301
- return;
2302
- }
2303
- if (!( (this._webview.insetMapping.has(output.source)))) {
2304
- return this.createOutput(cell, output, offset, false);
2305
- }
2306
- if (output.type === 1 ) {
2307
- this.notebookRendererMessaging.prepare(output.renderer.id);
2308
- }
2309
- const webviewTop = parseInt(this._list.webviewElement.domNode.style.top, 10);
2310
- const top = !!webviewTop ? (0 - webviewTop) : 0;
2311
- const cellTop = this._list.getCellViewScrollTop(cell) + top;
2312
- this._webview.updateOutput({ cellId: cell.id, cellHandle: cell.handle, cellUri: cell.uri }, output, cellTop, offset);
2313
- });
2314
- }
2315
- async copyOutputImage(cellOutput) {
2316
- this._webview?.copyImage(cellOutput);
2317
- }
2318
- removeInset(output) {
2319
- this._insetModifyQueueByOutputId.queue(output.model.outputId, async () => {
2320
- if (this._isDisposed || !this._webview) {
2321
- return;
2322
- }
2323
- if (this._webview?.isResolved()) {
2324
- this._webview.removeInsets([output]);
2325
- }
2326
- this._onDidRemoveOutput.fire(output);
2327
- });
2328
- }
2329
- hideInset(output) {
2330
- this._insetModifyQueueByOutputId.queue(output.model.outputId, async () => {
2331
- if (this._isDisposed || !this._webview) {
2332
- return;
2333
- }
2334
- if (this._webview?.isResolved()) {
2335
- this._webview.hideInset(output);
2336
- }
2337
- });
2338
- }
2339
- postMessage(message) {
2340
- if (this._webview?.isResolved()) {
2341
- this._webview.postKernelMessage(message);
2342
- }
2343
- }
2344
- addClassName(className) {
2345
- this._overlayContainer.classList.add(className);
2346
- }
2347
- removeClassName(className) {
2348
- this._overlayContainer.classList.remove(className);
2349
- }
2350
- cellAt(index) {
2351
- return this.viewModel?.cellAt(index);
2352
- }
2353
- getCellByInfo(cellInfo) {
2354
- const { cellHandle } = cellInfo;
2355
- return this.viewModel?.viewCells.find(vc => vc.handle === cellHandle);
2356
- }
2357
- getCellByHandle(handle) {
2358
- return this.viewModel?.getCellByHandle(handle);
2359
- }
2360
- getCellIndex(cell) {
2361
- return this.viewModel?.getCellIndexByHandle(cell.handle);
2362
- }
2363
- getNextVisibleCellIndex(index) {
2364
- return this.viewModel?.getNextVisibleCellIndex(index);
2365
- }
2366
- getPreviousVisibleCellIndex(index) {
2367
- return this.viewModel?.getPreviousVisibleCellIndex(index);
2368
- }
2369
- _updateScrollHeight() {
2370
- if (this._isDisposed || !this._webview?.isResolved()) {
2371
- return;
2372
- }
2373
- if (!this._list.webviewElement) {
2374
- return;
2375
- }
2376
- const scrollHeight = this._list.scrollHeight;
2377
- this._webview.element.style.height = `${scrollHeight + NOTEBOOK_WEBVIEW_BOUNDARY * 2}px`;
2378
- const webviewTop = parseInt(this._list.webviewElement.domNode.style.top, 10);
2379
- const top = !!webviewTop ? (0 - webviewTop) : 0;
2380
- const updateItems = [];
2381
- const removedItems = [];
2382
- this._webview?.insetMapping.forEach((value, key) => {
2383
- const cell = this.viewModel?.getCellByHandle(value.cellInfo.cellHandle);
2384
- if (!cell || !(cell instanceof CodeCellViewModel)) {
2385
- return;
2386
- }
2387
- this.viewModel?.viewCells.find(cell => cell.handle === value.cellInfo.cellHandle);
2388
- const viewIndex = this._list.getViewIndex(cell);
2389
- if (viewIndex === undefined) {
2390
- return;
2391
- }
2392
- if (cell.outputsViewModels.indexOf(key) < 0) {
2393
- removedItems.push(key);
2394
- }
2395
- const cellTop = this._list.getCellViewScrollTop(cell);
2396
- const outputIndex = cell.outputsViewModels.indexOf(key);
2397
- const outputOffset = cell.getOutputOffset(outputIndex);
2398
- updateItems.push({
2399
- cell,
2400
- output: key,
2401
- cellTop: cellTop + top,
2402
- outputOffset,
2403
- forceDisplay: false,
2404
- });
2405
- });
2406
- this._webview.removeInsets(removedItems);
2407
- const markdownUpdateItems = [];
2408
- for (const cellId of ( (this._webview.markupPreviewMapping.keys()))) {
2409
- const cell = this.viewModel?.viewCells.find(cell => cell.id === cellId);
2410
- if (cell) {
2411
- const cellTop = this._list.getCellViewScrollTop(cell);
2412
- markdownUpdateItems.push({ id: cellId, top: cellTop + top });
2413
- }
2414
- }
2415
- if (markdownUpdateItems.length || updateItems.length) {
2416
- this._debug('_list.onDidChangeContentHeight/markdown', markdownUpdateItems);
2417
- this._webview?.updateScrollTops(updateItems, markdownUpdateItems);
2418
- }
2419
- }
2420
- _updateOutputHeight(cellInfo, output, outputHeight, isInit, source) {
2421
- const cell = this.viewModel?.viewCells.find(vc => vc.handle === cellInfo.cellHandle);
2422
- if (cell && cell instanceof CodeCellViewModel) {
2423
- const outputIndex = cell.outputsViewModels.indexOf(output);
2424
- this._debug('update cell output', cell.handle, outputHeight);
2425
- cell.updateOutputHeight(outputIndex, outputHeight, source);
2426
- this.layoutNotebookCell(cell, cell.layoutInfo.totalHeight);
2427
- if (isInit) {
2428
- this._onDidRenderOutput.fire(output);
2429
- }
2430
- }
2431
- }
2432
- _scheduleOutputHeightAck(cellInfo, outputId, height) {
2433
- const wasEmpty = this._pendingOutputHeightAcks.size === 0;
2434
- this._pendingOutputHeightAcks.set(outputId, { cellId: cellInfo.cellId, outputId, height });
2435
- if (wasEmpty) {
2436
- scheduleAtNextAnimationFrame(getWindow(this.getDomNode()), () => {
2437
- this._debug('ack height');
2438
- this._updateScrollHeight();
2439
- this._webview?.ackHeight([...( (this._pendingOutputHeightAcks.values()))]);
2440
- this._pendingOutputHeightAcks.clear();
2441
- }, -1);
2442
- }
2443
- }
2444
- _getCellById(cellId) {
2445
- return this.viewModel?.viewCells.find(vc => vc.id === cellId);
2446
- }
2447
- _updateMarkupCellHeight(cellId, height, isInit) {
2448
- const cell = this._getCellById(cellId);
2449
- if (cell && cell instanceof MarkupCellViewModel) {
2450
- const { bottomToolbarGap } = this._notebookOptions.computeBottomToolbarDimensions(this.viewModel?.viewType);
2451
- this._debug('updateMarkdownCellHeight', cell.handle, height + bottomToolbarGap, isInit);
2452
- cell.renderedMarkdownHeight = height;
2453
- }
2454
- }
2455
- _setMarkupCellEditState(cellId, editState) {
2456
- const cell = this._getCellById(cellId);
2457
- if (cell instanceof MarkupCellViewModel) {
2458
- this.revealInView(cell);
2459
- cell.updateEditState(editState, 'setMarkdownCellEditState');
2460
- }
2461
- }
2462
- _didStartDragMarkupCell(cellId, event) {
2463
- const cell = this._getCellById(cellId);
2464
- if (cell instanceof MarkupCellViewModel) {
2465
- const webviewOffset = this._list.webviewElement ? -parseInt(this._list.webviewElement.domNode.style.top, 10) : 0;
2466
- this._dndController?.startExplicitDrag(cell, event.dragOffsetY - webviewOffset);
2467
- }
2468
- }
2469
- _didDragMarkupCell(cellId, event) {
2470
- const cell = this._getCellById(cellId);
2471
- if (cell instanceof MarkupCellViewModel) {
2472
- const webviewOffset = this._list.webviewElement ? -parseInt(this._list.webviewElement.domNode.style.top, 10) : 0;
2473
- this._dndController?.explicitDrag(cell, event.dragOffsetY - webviewOffset);
2474
- }
2475
- }
2476
- _didDropMarkupCell(cellId, event) {
2477
- const cell = this._getCellById(cellId);
2478
- if (cell instanceof MarkupCellViewModel) {
2479
- const webviewOffset = this._list.webviewElement ? -parseInt(this._list.webviewElement.domNode.style.top, 10) : 0;
2480
- event.dragOffsetY -= webviewOffset;
2481
- this._dndController?.explicitDrop(cell, event);
2482
- }
2483
- }
2484
- _didEndDragMarkupCell(cellId) {
2485
- const cell = this._getCellById(cellId);
2486
- if (cell instanceof MarkupCellViewModel) {
2487
- this._dndController?.endExplicitDrag(cell);
2488
- }
2489
- }
2490
- _didResizeOutput(cellId) {
2491
- const cell = this._getCellById(cellId);
2492
- if (cell) {
2493
- this._onDidResizeOutputEmitter.fire(cell);
2494
- }
2495
- }
2496
- _updatePerformanceMetadata(cellId, executionId, duration, rendererId) {
2497
- if (!this.hasModel()) {
2498
- return;
2499
- }
2500
- const cell = this._getCellById(cellId);
2501
- const cellIndex = !cell ? undefined : this.getCellIndex(cell);
2502
- if (cell?.internalMetadata.executionId === executionId && cellIndex !== undefined) {
2503
- const renderDurationMap = cell.internalMetadata.renderDuration || {};
2504
- renderDurationMap[rendererId] = (renderDurationMap[rendererId] ?? 0) + duration;
2505
- this.textModel.applyEdits([
2506
- {
2507
- editType: 9 ,
2508
- index: cellIndex,
2509
- internalMetadata: {
2510
- executionId: executionId,
2511
- renderDuration: renderDurationMap
2512
- }
2513
- }
2514
- ], true, undefined, () => undefined, undefined, false);
2515
- }
2516
- }
2517
- getContribution(id) {
2518
- return (this._contributions.get(id) || null);
2519
- }
2520
- dispose() {
2521
- this._isDisposed = true;
2522
- this._webview?.dispose();
2523
- this._webview = null;
2524
- this.notebookEditorService.removeNotebookEditor(this);
2525
- dispose(( (this._contributions.values())));
2526
- this._contributions.clear();
2527
- this._localStore.clear();
2528
- dispose(this._localCellStateListeners);
2529
- this._list.dispose();
2530
- this._listTopCellToolbar?.dispose();
2531
- this._overlayContainer.remove();
2532
- this.viewModel?.dispose();
2533
- this._renderedEditors.clear();
2534
- this._baseCellEditorOptions.forEach(v => v.dispose());
2535
- this._baseCellEditorOptions.clear();
2536
- this._notebookOverviewRulerContainer.remove();
2537
- super.dispose();
2538
- this._webview = null;
2539
- this._webviewResolvePromise = null;
2540
- this._webviewTransparentCover = null;
2541
- this._dndController = null;
2542
- this._listTopCellToolbar = null;
2543
- this._notebookViewModel = undefined;
2544
- this._cellContextKeyManager = null;
2545
- this._notebookTopToolbar = null;
2546
- this._list = null;
2547
- this._listViewInfoAccessor = null;
2548
- this._pendingLayouts = null;
2549
- this._listDelegate = null;
2550
- }
2551
- toJSON() {
2552
- return {
2553
- notebookUri: this.viewModel?.uri,
2554
- };
2555
- }
2556
- };
2557
- NotebookEditorWidget = ( (__decorate([
2558
- ( (__param(2, IInstantiationService))),
2559
- ( (__param(3, IEditorGroupsService))),
2560
- ( (__param(4, INotebookRendererMessagingService))),
2561
- ( (__param(5, INotebookEditorService))),
2562
- ( (__param(6, INotebookKernelService))),
2563
- ( (__param(7, INotebookService))),
2564
- ( (__param(8, IConfigurationService))),
2565
- ( (__param(9, IContextKeyService))),
2566
- ( (__param(10, ILayoutService))),
2567
- ( (__param(11, IContextMenuService))),
2568
- ( (__param(12, ITelemetryService))),
2569
- ( (__param(13, INotebookExecutionService))),
2570
- ( (__param(14, INotebookExecutionStateService))),
2571
- ( (__param(15, IEditorProgressService))),
2572
- ( (__param(16, INotebookLoggingService))),
2573
- ( (__param(17, IKeybindingService)))
2574
- ], NotebookEditorWidget)));
2575
- registerZIndex(ZIndex.Base, 5, 'notebook-progress-bar');
2576
- registerZIndex(ZIndex.Base, 10, 'notebook-list-insertion-indicator');
2577
- registerZIndex(ZIndex.Base, 20, 'notebook-cell-editor-outline');
2578
- registerZIndex(ZIndex.Base, 25, 'notebook-scrollbar');
2579
- registerZIndex(ZIndex.Base, 26, 'notebook-cell-status');
2580
- registerZIndex(ZIndex.Base, 26, 'notebook-folding-indicator');
2581
- registerZIndex(ZIndex.Base, 27, 'notebook-output');
2582
- registerZIndex(ZIndex.Base, 28, 'notebook-cell-bottom-toolbar-container');
2583
- registerZIndex(ZIndex.Base, 29, 'notebook-run-button-container');
2584
- registerZIndex(ZIndex.Base, 29, 'notebook-input-collapse-condicon');
2585
- registerZIndex(ZIndex.Base, 30, 'notebook-cell-output-toolbar');
2586
- registerZIndex(ZIndex.Sash, 1, 'notebook-cell-expand-part-button');
2587
- registerZIndex(ZIndex.Sash, 2, 'notebook-cell-toolbar');
2588
- registerZIndex(ZIndex.Sash, 3, 'notebook-cell-toolbar-dropdown-active');
2589
- const notebookCellBorder = registerColor('notebook.cellBorderColor', {
2590
- dark: ( (transparent(listInactiveSelectionBackground, 1))),
2591
- light: ( (transparent(listInactiveSelectionBackground, 1))),
2592
- hcDark: PANEL_BORDER,
2593
- hcLight: PANEL_BORDER
2594
- }, ( localize(8132, "The border color for notebook cells.")));
2595
- registerColor('notebook.focusedEditorBorder', focusBorder, ( localize(8133, "The color of the notebook cell editor border.")));
2596
- const cellStatusIconSuccess = registerColor('notebookStatusSuccessIcon.foreground', debugIconStartForeground, ( localize(8134, "The error icon color of notebook cells in the cell status bar.")));
2597
- const runningCellRulerDecorationColor = registerColor('notebookEditorOverviewRuler.runningCellForeground', debugIconStartForeground, ( localize(
2598
- 8135,
2599
- "The color of the running cell decoration in the notebook editor overview ruler."
2600
- )));
2601
- const cellStatusIconError = registerColor('notebookStatusErrorIcon.foreground', errorForeground, ( localize(8136, "The error icon color of notebook cells in the cell status bar.")));
2602
- registerColor('notebookStatusRunningIcon.foreground', foreground, ( localize(8137, "The running icon color of notebook cells in the cell status bar.")));
2603
- registerColor('notebook.outputContainerBorderColor', null, ( localize(8138, "The border color of the notebook output container.")));
2604
- registerColor('notebook.outputContainerBackgroundColor', null, ( localize(8139, "The color of the notebook output container background.")));
2605
- registerColor('notebook.cellToolbarSeparator', {
2606
- dark: ( (( (Color.fromHex('#808080'))).transparent(0.35))),
2607
- light: ( (( (Color.fromHex('#808080'))).transparent(0.35))),
2608
- hcDark: contrastBorder,
2609
- hcLight: contrastBorder
2610
- }, ( localize(8140, "The color of the separator in the cell bottom toolbar")));
2611
- const focusedCellBackground = registerColor('notebook.focusedCellBackground', null, ( localize(8141, "The background color of a cell when the cell is focused.")));
2612
- registerColor('notebook.selectedCellBackground', {
2613
- dark: listInactiveSelectionBackground,
2614
- light: listInactiveSelectionBackground,
2615
- hcDark: null,
2616
- hcLight: null
2617
- }, ( localize(8142, "The background color of a cell when the cell is selected.")));
2618
- registerColor('notebook.cellHoverBackground', {
2619
- dark: ( (transparent(focusedCellBackground, .5))),
2620
- light: ( (transparent(focusedCellBackground, .7))),
2621
- hcDark: null,
2622
- hcLight: null
2623
- }, ( localize(8143, "The background color of a cell when the cell is hovered.")));
2624
- registerColor('notebook.selectedCellBorder', {
2625
- dark: notebookCellBorder,
2626
- light: notebookCellBorder,
2627
- hcDark: contrastBorder,
2628
- hcLight: contrastBorder
2629
- }, ( localize(
2630
- 8144,
2631
- "The color of the cell's top and bottom border when the cell is selected but not focused."
2632
- )));
2633
- registerColor('notebook.inactiveSelectedCellBorder', {
2634
- dark: null,
2635
- light: null,
2636
- hcDark: focusBorder,
2637
- hcLight: focusBorder
2638
- }, ( localize(8145, "The color of the cell's borders when multiple cells are selected.")));
2639
- registerColor('notebook.focusedCellBorder', focusBorder, ( localize(
2640
- 8146,
2641
- "The color of the cell's focus indicator borders when the cell is focused."
2642
- )));
2643
- registerColor('notebook.inactiveFocusedCellBorder', notebookCellBorder, ( localize(
2644
- 8147,
2645
- "The color of the cell's top and bottom border when a cell is focused while the primary focus is outside of the editor."
2646
- )));
2647
- registerColor('notebook.cellStatusBarItemHoverBackground', {
2648
- light: ( (new Color( (new RGBA(0, 0, 0, 0.08))))),
2649
- dark: ( (new Color( (new RGBA(255, 255, 255, 0.15))))),
2650
- hcDark: ( (new Color( (new RGBA(255, 255, 255, 0.15))))),
2651
- hcLight: ( (new Color( (new RGBA(0, 0, 0, 0.08))))),
2652
- }, ( localize(8148, "The background color of notebook cell status bar items.")));
2653
- registerColor('notebook.cellInsertionIndicator', focusBorder, ( localize(8149, "The color of the notebook cell insertion indicator.")));
2654
- registerColor('notebookScrollbarSlider.background', scrollbarSliderBackground, ( localize(8150, "Notebook scrollbar slider background color.")));
2655
- registerColor('notebookScrollbarSlider.hoverBackground', scrollbarSliderHoverBackground, ( localize(8151, "Notebook scrollbar slider background color when hovering.")));
2656
- registerColor('notebookScrollbarSlider.activeBackground', scrollbarSliderActiveBackground, ( localize(8152, "Notebook scrollbar slider background color when clicked on.")));
2657
- registerColor('notebook.symbolHighlightBackground', {
2658
- dark: ( (Color.fromHex('#ffffff0b'))),
2659
- light: ( (Color.fromHex('#fdff0033'))),
2660
- hcDark: null,
2661
- hcLight: null
2662
- }, ( localize(8153, "Background color of highlighted cell")));
2663
- registerColor('notebook.cellEditorBackground', {
2664
- light: SIDE_BAR_BACKGROUND,
2665
- dark: SIDE_BAR_BACKGROUND,
2666
- hcDark: null,
2667
- hcLight: null
2668
- }, ( localize(8154, "Cell editor background color.")));
2669
- const notebookEditorBackground = registerColor('notebook.editorBackground', {
2670
- light: EDITOR_PANE_BACKGROUND,
2671
- dark: EDITOR_PANE_BACKGROUND,
2672
- hcDark: null,
2673
- hcLight: null
2674
- }, ( localize(8155, "Notebook background color.")));
2675
- export { NotebookEditorWidget, cellStatusIconError, cellStatusIconSuccess, focusedCellBackground, getDefaultNotebookCreationOptions, notebookCellBorder, runningCellRulerDecorationColor };