@codingame/monaco-vscode-api 9.0.3 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1272) hide show
  1. package/README.md +2 -0
  2. package/_virtual/semver.js +3 -2
  3. package/_virtual/semver2.js +2 -0
  4. package/api.js +7 -6
  5. package/debugProtocol.d.ts +10 -1
  6. package/extensions.d.ts +0 -2
  7. package/extensions.js +1 -1
  8. package/external/vscode-semver/semver.js +988 -983
  9. package/lifecycle.js +4 -7
  10. package/localExtensionHost.js +11 -7
  11. package/missing-services.js +126 -42
  12. package/monaco.js +42 -10
  13. package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +1 -1
  14. package/package.json +15 -8
  15. package/service-override/textmate.d.ts +1 -0
  16. package/service-override/tools/editor.js +60 -22
  17. package/service-override/tools/views.js +34 -19
  18. package/service-override/treesitter.d.ts +5 -0
  19. package/services.js +4 -5
  20. package/tools/injection.js +4 -1
  21. package/tools.js +4 -2
  22. package/vscode/src/vs/base/browser/browser.js +1 -2
  23. package/vscode/src/vs/base/browser/canIUse.js +4 -10
  24. package/vscode/src/vs/base/browser/dom.js +8 -10
  25. package/vscode/src/vs/base/browser/domObservable.js +3 -2
  26. package/vscode/src/vs/base/browser/formattedTextRenderer.js +24 -36
  27. package/vscode/src/vs/base/browser/keyboardEvent.js +24 -24
  28. package/vscode/src/vs/base/browser/markdownRenderer.js +8 -12
  29. package/vscode/src/vs/base/browser/performance.js +18 -24
  30. package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +1 -1
  31. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +14 -20
  32. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.d.ts +2 -2
  33. package/vscode/src/vs/base/browser/ui/breadcrumbs/breadcrumbsWidget.js +2 -3
  34. package/vscode/src/vs/base/browser/ui/button/button.js +5 -6
  35. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
  36. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +15 -41
  37. package/vscode/src/vs/base/browser/ui/dialog/dialog.js +12 -13
  38. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +2 -4
  39. package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +3 -4
  40. package/vscode/src/vs/base/browser/ui/findinput/findInput.js +5 -6
  41. package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -3
  42. package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +6 -7
  43. package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +8 -12
  44. package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +3 -4
  45. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.css.js +1 -1
  46. package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +15 -23
  47. package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +1 -1
  48. package/vscode/src/vs/base/browser/ui/list/list.js +1 -12
  49. package/vscode/src/vs/base/browser/ui/list/listView.js +9 -17
  50. package/vscode/src/vs/base/browser/ui/list/listWidget.js +26 -30
  51. package/vscode/src/vs/base/browser/ui/menu/menu.js +15 -17
  52. package/vscode/src/vs/base/browser/ui/menu/menubar.js +13 -13
  53. package/vscode/src/vs/base/browser/ui/resizable/resizable.js +9 -9
  54. package/vscode/src/vs/base/browser/ui/sash/sash.js +16 -28
  55. package/vscode/src/vs/base/browser/ui/scrollbar/horizontalScrollbar.js +4 -5
  56. package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +3 -3
  57. package/vscode/src/vs/base/browser/ui/scrollbar/scrollbarVisibilityController.js +2 -3
  58. package/vscode/src/vs/base/browser/ui/scrollbar/verticalScrollbar.js +2 -3
  59. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +21 -23
  60. package/vscode/src/vs/base/browser/ui/selectBox/selectBoxNative.js +2 -3
  61. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +23 -25
  62. package/vscode/src/vs/base/browser/ui/splitview/splitview.js +27 -33
  63. package/vscode/src/vs/base/browser/ui/table/tableWidget.js +3 -5
  64. package/vscode/src/vs/base/browser/ui/toggle/toggle.js +1 -2
  65. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +3 -3
  66. package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +307 -210
  67. package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +395 -22
  68. package/vscode/src/vs/base/browser/ui/tree/compressedObjectTreeModel.js +25 -32
  69. package/vscode/src/vs/base/browser/ui/tree/dataTree.js +2 -2
  70. package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +25 -31
  71. package/vscode/src/vs/base/browser/ui/tree/objectTree.js +9 -5
  72. package/vscode/src/vs/base/browser/ui/tree/objectTreeModel.js +4 -7
  73. package/vscode/src/vs/base/browser/ui/tree/tree.js +1 -13
  74. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
  75. package/vscode/src/vs/base/common/actions.js +1 -1
  76. package/vscode/src/vs/base/common/amd.js +10 -27
  77. package/vscode/src/vs/base/common/arrays.js +1 -7
  78. package/vscode/src/vs/base/common/async.js +14 -25
  79. package/vscode/src/vs/base/common/codicons.d.ts +7 -0
  80. package/vscode/src/vs/base/common/color.d.ts +28 -0
  81. package/vscode/src/vs/base/common/color.js +71 -24
  82. package/vscode/src/vs/base/common/date.js +61 -61
  83. package/vscode/src/vs/base/common/diff/diff.js +10 -15
  84. package/vscode/src/vs/base/common/errorMessage.js +6 -6
  85. package/vscode/src/vs/base/common/errors.js +5 -1
  86. package/vscode/src/vs/base/common/event.d.ts +2 -2
  87. package/vscode/src/vs/base/common/event.js +23 -1
  88. package/vscode/src/vs/base/common/extpath.js +8 -9
  89. package/vscode/src/vs/base/common/filters.js +31 -39
  90. package/vscode/src/vs/base/common/fuzzyScorer.js +9 -10
  91. package/vscode/src/vs/base/common/glob.js +1 -2
  92. package/vscode/src/vs/base/common/hash.js +10 -15
  93. package/vscode/src/vs/base/common/hotReloadHelpers.js +9 -17
  94. package/vscode/src/vs/base/common/htmlContent.js +3 -8
  95. package/vscode/src/vs/base/common/json.js +149 -323
  96. package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -10
  97. package/vscode/src/vs/base/common/jsonFormatter.js +30 -30
  98. package/vscode/src/vs/base/common/keyCodes.js +249 -591
  99. package/vscode/src/vs/base/common/keybindingLabels.js +23 -24
  100. package/vscode/src/vs/base/common/keybindings.js +17 -30
  101. package/vscode/src/vs/base/common/labels.js +11 -12
  102. package/vscode/src/vs/base/common/map.js +67 -20
  103. package/vscode/src/vs/base/common/marshalling.js +4 -5
  104. package/vscode/src/vs/base/common/naturalLanguage/korean.js +129 -213
  105. package/vscode/src/vs/base/common/network.js +2 -2
  106. package/vscode/src/vs/base/common/observableInternal/api.js +3 -1
  107. package/vscode/src/vs/base/common/observableInternal/autorun.js +46 -35
  108. package/vscode/src/vs/base/common/observableInternal/base.js +3 -1
  109. package/vscode/src/vs/base/common/observableInternal/derived.js +55 -40
  110. package/vscode/src/vs/base/common/observableInternal/promise.js +1 -55
  111. package/vscode/src/vs/base/common/observableInternal/utils.js +41 -5
  112. package/vscode/src/vs/base/common/observableInternal/utilsCancellation.js +79 -0
  113. package/vscode/src/vs/base/common/performance.js +1 -3
  114. package/vscode/src/vs/base/common/platform.js +10 -23
  115. package/vscode/src/vs/base/common/processes.js +1 -8
  116. package/vscode/src/vs/base/common/product.d.ts +2 -0
  117. package/vscode/src/vs/base/common/resources.js +3 -4
  118. package/vscode/src/vs/base/common/scrollable.js +1 -7
  119. package/vscode/src/vs/base/common/strings.js +47 -66
  120. package/vscode/src/vs/base/common/ternarySearchTree.js +39 -54
  121. package/vscode/src/vs/base/common/uint.js +5 -14
  122. package/vscode/src/vs/base/common/uri.js +39 -41
  123. package/vscode/src/vs/base/common/uriIpc.js +1 -2
  124. package/vscode/src/vs/base/common/worker/simpleWorker.js +13 -22
  125. package/vscode/src/vs/base/parts/ipc/common/ipc.js +55 -77
  126. package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +51 -108
  127. package/vscode/src/vs/editor/browser/config/charWidthReader.js +4 -10
  128. package/vscode/src/vs/editor/browser/config/editorConfiguration.js +3 -4
  129. package/vscode/src/vs/editor/browser/config/fontMeasurements.js +21 -21
  130. package/vscode/src/vs/editor/browser/controller/editContext/clipboardUtils.js +45 -0
  131. package/vscode/src/vs/editor/browser/controller/editContext/editContextUtils.js +4 -0
  132. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.css.js +4 -0
  133. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +315 -0
  134. package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js +35 -0
  135. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +131 -0
  136. package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +107 -0
  137. package/vscode/src/vs/editor/browser/controller/{textAreaHandler.css.js → editContext/textArea/textAreaEditContext.css.js} +1 -1
  138. package/vscode/src/vs/editor/browser/controller/{textAreaHandler.js → editContext/textArea/textAreaEditContext.js} +86 -147
  139. package/vscode/src/vs/editor/browser/controller/{textAreaInput.js → editContext/textArea/textAreaEditContextInput.js} +23 -43
  140. package/vscode/src/vs/editor/browser/controller/{textAreaState.js → editContext/textArea/textAreaEditContextState.js} +8 -54
  141. package/vscode/src/vs/editor/browser/controller/mouseHandler.js +25 -28
  142. package/vscode/src/vs/editor/browser/controller/mouseTarget.js +51 -69
  143. package/vscode/src/vs/editor/browser/controller/pointerHandler.js +4 -6
  144. package/vscode/src/vs/editor/browser/coreCommands.js +203 -220
  145. package/vscode/src/vs/editor/browser/editorBrowser.js +1 -30
  146. package/vscode/src/vs/editor/browser/editorExtensions.js +15 -16
  147. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +109 -0
  148. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasPage.js +86 -0
  149. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasShelfAllocator.js +107 -0
  150. package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlasSlabAllocator.js +258 -0
  151. package/vscode/src/vs/editor/browser/gpu/bufferDirtyTracker.js +32 -0
  152. package/vscode/src/vs/editor/browser/gpu/fullFileRenderStrategy.js +160 -0
  153. package/vscode/src/vs/editor/browser/gpu/fullFileRenderStrategy.wgsl.js +88 -0
  154. package/vscode/src/vs/editor/browser/gpu/gpuDisposable.js +42 -0
  155. package/vscode/src/vs/editor/browser/gpu/gpuUtils.js +44 -0
  156. package/vscode/src/vs/editor/browser/gpu/objectCollectionBuffer.js +117 -0
  157. package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +152 -0
  158. package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.js +186 -0
  159. package/vscode/src/vs/editor/browser/gpu/rectangleRenderer.wgsl.js +63 -0
  160. package/vscode/src/vs/editor/browser/gpu/taskQueue.js +69 -0
  161. package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +86 -0
  162. package/vscode/src/vs/editor/browser/observableCodeEditor.js +7 -39
  163. package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +18 -28
  164. package/vscode/src/vs/editor/browser/services/editorWorkerService.js +1 -2
  165. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +5 -7
  166. package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +61 -69
  167. package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +2 -3
  168. package/vscode/src/vs/editor/browser/services/markerDecorations.js +2 -2
  169. package/vscode/src/vs/editor/browser/stableEditorScroll.js +2 -3
  170. package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +21 -27
  171. package/vscode/src/vs/editor/browser/view/renderingContext.js +4 -3
  172. package/vscode/src/vs/editor/browser/view/viewController.js +4 -5
  173. package/vscode/src/vs/editor/browser/view/viewLayer.js +1 -2
  174. package/vscode/src/vs/editor/browser/view/viewOverlays.js +8 -9
  175. package/vscode/src/vs/editor/browser/view/viewPart.js +2 -15
  176. package/vscode/src/vs/editor/browser/view/viewUserInputEvents.js +1 -2
  177. package/vscode/src/vs/editor/browser/view.js +74 -26
  178. package/vscode/src/vs/editor/browser/viewParts/blockDecorations/blockDecorations.js +1 -2
  179. package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +17 -20
  180. package/vscode/src/vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight.js +6 -7
  181. package/vscode/src/vs/editor/browser/viewParts/decorations/decorations.js +2 -3
  182. package/vscode/src/vs/editor/browser/viewParts/editorScrollbar/editorScrollbar.js +17 -19
  183. package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +10 -16
  184. package/vscode/src/vs/editor/browser/viewParts/indentGuides/indentGuides.js +6 -7
  185. package/vscode/src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.js +8 -9
  186. package/vscode/src/vs/editor/browser/viewParts/linesDecorations/linesDecorations.js +2 -3
  187. package/vscode/src/vs/editor/browser/viewParts/margin/margin.js +4 -5
  188. package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.js +28 -34
  189. package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRenderer.js +9 -9
  190. package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRendererFactory.js +22 -22
  191. package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharSheet.js +7 -20
  192. package/vscode/src/vs/editor/browser/viewParts/overlayWidgets/overlayWidgets.js +12 -14
  193. package/vscode/src/vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler.js +19 -37
  194. package/vscode/src/vs/editor/browser/viewParts/overviewRuler/overviewRuler.js +6 -7
  195. package/vscode/src/vs/editor/browser/viewParts/rulers/rulers.js +4 -5
  196. package/vscode/src/vs/editor/browser/viewParts/rulersGpu/rulersGpu.js +57 -0
  197. package/vscode/src/vs/editor/browser/viewParts/scrollDecoration/scrollDecoration.js +3 -4
  198. package/vscode/src/vs/editor/browser/viewParts/selections/selections.js +26 -33
  199. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +9 -9
  200. package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +24 -23
  201. package/vscode/src/vs/editor/browser/viewParts/{lines → viewLines}/rangeUtil.js +3 -4
  202. package/vscode/src/vs/editor/browser/viewParts/{lines → viewLines}/viewLine.js +23 -59
  203. package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +40 -0
  204. package/vscode/src/vs/editor/browser/viewParts/{lines → viewLines}/viewLines.js +33 -36
  205. package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +299 -0
  206. package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +5 -6
  207. package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +16 -18
  208. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorContributions.js +11 -12
  209. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +105 -113
  210. package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +1 -1
  211. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +17 -19
  212. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +40 -40
  213. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorDecorations.js +3 -2
  214. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +3 -3
  215. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +7 -6
  216. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +15 -17
  217. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +13 -16
  218. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/renderLines.js +10 -10
  219. package/vscode/src/vs/editor/browser/widget/diffEditor/delegatingEditorImpl.js +18 -19
  220. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
  221. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +13 -12
  222. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +14 -18
  223. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +29 -30
  224. package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +2 -2
  225. package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +52 -53
  226. package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +25 -27
  227. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +7 -6
  228. package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +4 -4
  229. package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +5 -4
  230. package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
  231. package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +4 -3
  232. package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +3 -2
  233. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +5 -3
  234. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
  235. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +8 -7
  236. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +16 -8
  237. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +9 -10
  238. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +26 -15
  239. package/vscode/src/vs/editor/common/commands/replaceCommand.js +2 -2
  240. package/vscode/src/vs/editor/common/commands/shiftCommand.js +5 -6
  241. package/vscode/src/vs/editor/common/commands/trimTrailingWhitespaceCommand.js +1 -2
  242. package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +64 -52
  243. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +15 -0
  244. package/vscode/src/vs/editor/common/config/editorOptions.js +619 -732
  245. package/vscode/src/vs/editor/common/config/fontInfo.js +8 -8
  246. package/vscode/src/vs/editor/common/core/characterClassifier.js +3 -8
  247. package/vscode/src/vs/editor/common/core/cursorColumns.js +4 -5
  248. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +72 -72
  249. package/vscode/src/vs/editor/common/core/eolCounter.js +8 -16
  250. package/vscode/src/vs/editor/common/core/offsetEdit.js +248 -0
  251. package/vscode/src/vs/editor/common/core/offsetRange.d.ts +2 -0
  252. package/vscode/src/vs/editor/common/core/offsetRange.js +8 -0
  253. package/vscode/src/vs/editor/common/core/selection.js +7 -12
  254. package/vscode/src/vs/editor/common/core/textEdit.d.ts +22 -1
  255. package/vscode/src/vs/editor/common/core/textEdit.js +49 -3
  256. package/vscode/src/vs/editor/common/core/textLength.d.ts +2 -0
  257. package/vscode/src/vs/editor/common/core/textLength.js +6 -0
  258. package/vscode/src/vs/editor/common/core/wordCharacterClassifier.js +5 -12
  259. package/vscode/src/vs/editor/common/cursor/cursor.js +31 -34
  260. package/vscode/src/vs/editor/common/cursor/cursorAtomicMoveOperations.js +10 -17
  261. package/vscode/src/vs/editor/common/cursor/cursorColumnSelection.js +3 -3
  262. package/vscode/src/vs/editor/common/cursor/cursorDeleteOperations.js +4 -4
  263. package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.js +50 -52
  264. package/vscode/src/vs/editor/common/cursor/cursorMoveOperations.js +12 -14
  265. package/vscode/src/vs/editor/common/cursor/cursorTypeEditOperations.js +32 -34
  266. package/vscode/src/vs/editor/common/cursor/cursorTypeOperations.js +2 -2
  267. package/vscode/src/vs/editor/common/cursor/cursorWordOperations.js +65 -79
  268. package/vscode/src/vs/editor/common/cursor/oneCursor.js +6 -7
  269. package/vscode/src/vs/editor/common/cursorCommon.js +38 -54
  270. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +0 -1
  271. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +8 -58
  272. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js +1 -2
  273. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js +30 -43
  274. package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/utils.js +1 -2
  275. package/vscode/src/vs/editor/common/diff/legacyLinesDiffComputer.js +4 -5
  276. package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +5 -1
  277. package/vscode/src/vs/editor/common/diff/rangeMapping.js +80 -1
  278. package/vscode/src/vs/editor/common/editorCommon.js +1 -16
  279. package/vscode/src/vs/editor/common/editorContextKeys.js +46 -47
  280. package/vscode/src/vs/editor/common/encodedTokenAttributes.js +19 -71
  281. package/vscode/src/vs/editor/common/languages/autoIndent.js +6 -8
  282. package/vscode/src/vs/editor/common/languages/languageConfiguration.js +7 -9
  283. package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +2 -2
  284. package/vscode/src/vs/editor/common/languages/linkComputer.js +69 -94
  285. package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
  286. package/vscode/src/vs/editor/common/languages/nullTokenize.js +5 -6
  287. package/vscode/src/vs/editor/common/languages/supports/indentRules.js +5 -12
  288. package/vscode/src/vs/editor/common/languages/supports/indentationLineProcessor.js +3 -4
  289. package/vscode/src/vs/editor/common/languages/supports/onEnter.js +3 -4
  290. package/vscode/src/vs/editor/common/languages/supports/tokenization.js +24 -25
  291. package/vscode/src/vs/editor/common/languages/supports.js +1 -6
  292. package/vscode/src/vs/editor/common/languages/textToHtmlTokenizer.js +12 -14
  293. package/vscode/src/vs/editor/common/languages.d.ts +23 -3
  294. package/vscode/src/vs/editor/common/languages.js +119 -205
  295. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.js +10 -18
  296. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree.js +16 -18
  297. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/brackets.js +4 -4
  298. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees.js +3 -3
  299. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser.js +7 -8
  300. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/tokenizer.js +33 -15
  301. package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/fixBrackets.js +4 -5
  302. package/vscode/src/vs/editor/common/model/editStack.js +5 -7
  303. package/vscode/src/vs/editor/common/model/indentationGuesser.js +6 -7
  304. package/vscode/src/vs/editor/common/model/intervalTree.js +71 -119
  305. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase.js +16 -17
  306. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +11 -11
  307. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder.js +3 -5
  308. package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase.js +41 -46
  309. package/vscode/src/vs/editor/common/model/textModel.js +27 -35
  310. package/vscode/src/vs/editor/common/model/textModelSearch.js +14 -15
  311. package/vscode/src/vs/editor/common/model/textModelText.js +3 -0
  312. package/vscode/src/vs/editor/common/model/textModelTokens.js +18 -16
  313. package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +10 -14
  314. package/vscode/src/vs/editor/common/model/tokens.js +1 -2
  315. package/vscode/src/vs/editor/common/model/treeSitterTokens.js +10 -4
  316. package/vscode/src/vs/editor/common/model/utils.js +2 -3
  317. package/vscode/src/vs/editor/common/model.d.ts +5 -0
  318. package/vscode/src/vs/editor/common/model.js +1 -46
  319. package/vscode/src/vs/editor/common/modelLineProjectionData.js +10 -10
  320. package/vscode/src/vs/editor/common/services/editorBaseApi.js +5 -5
  321. package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -2
  322. package/vscode/src/vs/editor/common/services/languageFeaturesService.js +2 -2
  323. package/vscode/src/vs/editor/common/services/languageService.js +4 -4
  324. package/vscode/src/vs/editor/common/services/languagesRegistry.js +3 -4
  325. package/vscode/src/vs/editor/common/services/markerDecorationsService.js +18 -19
  326. package/vscode/src/vs/editor/common/services/modelService.js +8 -9
  327. package/vscode/src/vs/editor/common/services/semanticTokensDto.js +3 -8
  328. package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +15 -27
  329. package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -2
  330. package/vscode/src/vs/editor/common/services/treeSitterParserService.js +2 -1
  331. package/vscode/src/vs/editor/common/services/treeViewsDndService.js +2 -2
  332. package/vscode/src/vs/editor/common/services/unicodeTextModelHighlighter.js +18 -31
  333. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +116 -114
  334. package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
  335. package/vscode/src/vs/editor/common/textModelEvents.js +6 -14
  336. package/vscode/src/vs/editor/common/tokenizationRegistry.js +2 -3
  337. package/vscode/src/vs/editor/common/tokenizationTextModelPart.js +13 -6
  338. package/vscode/src/vs/editor/common/tokens/contiguousTokensStore.js +7 -7
  339. package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +10 -7
  340. package/vscode/src/vs/editor/common/tokens/lineTokens.js +48 -33
  341. package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +4 -5
  342. package/vscode/src/vs/editor/common/tokens/sparseTokensStore.js +6 -7
  343. package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +25 -0
  344. package/vscode/src/vs/editor/common/tokens/tokenArray.js +53 -0
  345. package/vscode/src/vs/editor/common/viewEventHandler.js +18 -19
  346. package/vscode/src/vs/editor/common/viewEvents.js +19 -50
  347. package/vscode/src/vs/editor/common/viewLayout/lineDecorations.js +6 -9
  348. package/vscode/src/vs/editor/common/viewLayout/linePart.js +3 -12
  349. package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +23 -25
  350. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +74 -99
  351. package/vscode/src/vs/editor/common/viewModel/minimapTokensColorTracker.js +2 -3
  352. package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +23 -7
  353. package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +19 -30
  354. package/vscode/src/vs/editor/common/viewModel/overviewZoneManager.js +1 -5
  355. package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +9 -11
  356. package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +41 -45
  357. package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +8 -15
  358. package/vscode/src/vs/editor/common/viewModel.js +2 -9
  359. package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +14 -30
  360. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +16 -18
  361. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +18 -21
  362. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  363. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +3 -5
  364. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +47 -44
  365. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -4
  366. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +45 -47
  367. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +10 -10
  368. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +14 -16
  369. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +2 -2
  370. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +11 -12
  371. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +18 -20
  372. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +28 -31
  373. package/vscode/src/vs/editor/contrib/codeAction/common/types.js +4 -10
  374. package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +6 -6
  375. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +14 -15
  376. package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.js +2 -4
  377. package/vscode/src/vs/editor/contrib/colorPicker/browser/color.js +2 -23
  378. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +6 -9
  379. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerContribution.js +42 -0
  380. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParticipantUtils.js +51 -0
  381. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerBody.js +71 -0
  382. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +28 -0
  383. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +75 -0
  384. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerInsertButton.js +21 -0
  385. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerSaturationBox.js +101 -0
  386. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerStrip.js +92 -0
  387. package/vscode/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js +1 -3
  388. package/vscode/src/vs/editor/contrib/colorPicker/browser/{colorContributions.js → hoverColorPicker/hoverColorPickerContribution.js} +9 -17
  389. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +131 -0
  390. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerWidget.js +30 -0
  391. package/vscode/src/vs/editor/contrib/colorPicker/browser/{standaloneColorPickerActions.js → standaloneColorPicker/standaloneColorPickerActions.js} +17 -23
  392. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerController.js +48 -0
  393. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerParticipant.js +115 -0
  394. package/vscode/src/vs/editor/contrib/colorPicker/browser/{standaloneColorPickerWidget.js → standaloneColorPicker/standaloneColorPickerWidget.js} +22 -69
  395. package/vscode/src/vs/editor/contrib/comment/browser/blockCommentCommand.js +4 -5
  396. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +22 -24
  397. package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +12 -20
  398. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +28 -33
  399. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +6 -8
  400. package/vscode/src/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js +4 -4
  401. package/vscode/src/vs/editor/contrib/dnd/browser/dnd.js +12 -17
  402. package/vscode/src/vs/editor/contrib/documentSymbols/browser/outlineModel.js +2 -2
  403. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +9 -11
  404. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +19 -20
  405. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  406. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +9 -11
  407. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +6 -7
  408. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +4 -6
  409. package/vscode/src/vs/editor/contrib/editorState/browser/editorState.js +9 -16
  410. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +5 -7
  411. package/vscode/src/vs/editor/contrib/find/browser/findController.js +101 -111
  412. package/vscode/src/vs/editor/contrib/find/browser/findDecorations.js +8 -8
  413. package/vscode/src/vs/editor/contrib/find/browser/findModel.js +25 -31
  414. package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.js +1 -2
  415. package/vscode/src/vs/editor/contrib/find/browser/findState.js +11 -17
  416. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +71 -72
  417. package/vscode/src/vs/editor/contrib/find/browser/replacePattern.js +19 -25
  418. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +111 -89
  419. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +22 -23
  420. package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.js +6 -6
  421. package/vscode/src/vs/editor/contrib/folding/browser/foldingRanges.js +14 -20
  422. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  423. package/vscode/src/vs/editor/contrib/format/browser/format.js +12 -23
  424. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +19 -21
  425. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +22 -25
  426. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +19 -22
  427. package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +2 -2
  428. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +79 -80
  429. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +7 -9
  430. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +8 -10
  431. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +31 -34
  432. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  433. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +7 -11
  434. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +14 -10
  435. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +11 -13
  436. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +119 -0
  437. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +8 -21
  438. package/vscode/src/vs/editor/contrib/hover/browser/{contentHoverController2.js → contentHoverController.js} +9 -12
  439. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +10 -9
  440. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +8 -8
  441. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +11 -15
  442. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidgetWrapper.js +31 -39
  443. package/vscode/src/vs/editor/contrib/hover/browser/{marginHoverComputer.js → glyphHoverComputer.js} +6 -20
  444. package/vscode/src/vs/editor/contrib/hover/browser/{marginHoverController.js → glyphHoverController.js} +23 -25
  445. package/vscode/src/vs/editor/contrib/hover/browser/{marginHoverWidget.js → glyphHoverWidget.js} +30 -33
  446. package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +1 -1
  447. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +12 -12
  448. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  449. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +50 -54
  450. package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +5 -5
  451. package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.js +64 -66
  452. package/vscode/src/vs/editor/contrib/hover/browser/hoverTypes.js +7 -12
  453. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +21 -19
  454. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +11 -13
  455. package/vscode/src/vs/editor/contrib/hover/browser/resizableContentWidget.js +4 -6
  456. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +13 -12
  457. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +27 -30
  458. package/vscode/src/vs/editor/contrib/indentation/common/indentation.js +1 -2
  459. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsContribution.js +2 -2
  460. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +101 -42
  461. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +10 -12
  462. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +2 -3
  463. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +88 -35
  464. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +14 -7
  465. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +96 -54
  466. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +12 -13
  467. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +15 -17
  468. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +10 -6
  469. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js +3 -4
  470. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/{singleTextEdit.js → computeGhostText.js} +3 -23
  471. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +94 -47
  472. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +63 -21
  473. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.js +12 -0
  474. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +83 -0
  475. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +6 -3
  476. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/singleTextEditHelpers.js +25 -0
  477. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdaptor.js +3 -3
  478. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +44 -19
  479. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/{ghostTextView.css.js → ghostText/ghostTextView.css.js} +2 -2
  480. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +295 -0
  481. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.css.js +4 -0
  482. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +357 -0
  483. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils.js +70 -0
  484. package/vscode/src/vs/editor/contrib/inlineEdit/browser/commands.js +10 -12
  485. package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +20 -14
  486. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.js +2 -2
  487. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +21 -17
  488. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +6 -8
  489. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditSideBySideWidget.js +6 -6
  490. package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgress.js +4 -7
  491. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +4 -7
  492. package/vscode/src/vs/editor/contrib/linesOperations/browser/copyLinesCommand.js +2 -2
  493. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +63 -65
  494. package/vscode/src/vs/editor/contrib/linesOperations/browser/moveLinesCommand.js +2 -4
  495. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +12 -16
  496. package/vscode/src/vs/editor/contrib/links/browser/links.js +20 -23
  497. package/vscode/src/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js +4 -6
  498. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +10 -15
  499. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +73 -75
  500. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +14 -16
  501. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +16 -18
  502. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +8 -9
  503. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +24 -25
  504. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +3 -3
  505. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderTextContribution.js +7 -7
  506. package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +2 -4
  507. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +8 -10
  508. package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +36 -37
  509. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +5 -6
  510. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +31 -33
  511. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +17 -21
  512. package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +12 -15
  513. package/vscode/src/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js +2 -2
  514. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +15 -18
  515. package/vscode/src/vs/editor/contrib/smartSelect/browser/wordSelections.js +2 -3
  516. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +14 -17
  517. package/vscode/src/vs/editor/contrib/snippet/browser/snippetParser.js +81 -100
  518. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +7 -10
  519. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  520. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +16 -18
  521. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollContribution.js +2 -2
  522. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +19 -20
  523. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +1 -2
  524. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -3
  525. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +12 -14
  526. package/vscode/src/vs/editor/contrib/suggest/browser/completionModel.js +10 -18
  527. package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css.js +1 -1
  528. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +24 -32
  529. package/vscode/src/vs/editor/contrib/suggest/browser/suggestCommitCharacters.js +2 -4
  530. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +79 -93
  531. package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +4 -6
  532. package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +6 -6
  533. package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +57 -66
  534. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +101 -98
  535. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +12 -8
  536. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +11 -12
  537. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +2 -3
  538. package/vscode/src/vs/editor/contrib/suggest/browser/wordDistance.js +2 -4
  539. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  540. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +8 -10
  541. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  542. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +49 -52
  543. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +11 -12
  544. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +19 -19
  545. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +87 -62
  546. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +51 -55
  547. package/vscode/src/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js +19 -21
  548. package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +9 -12
  549. package/vscode/src/vs/editor/editor.api.d.ts +3 -0
  550. package/vscode/src/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js +4 -6
  551. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -4
  552. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditorService.js +4 -5
  553. package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +4 -4
  554. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +44 -47
  555. package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +5 -5
  556. package/vscode/src/vs/editor/standalone/browser/standaloneTreeSitterService.js +4 -0
  557. package/vscode/src/vs/nls.js +1 -1
  558. package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +3 -3
  559. package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +1 -31
  560. package/vscode/src/vs/platform/accessibility/common/accessibility.js +1 -7
  561. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +52 -51
  562. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  563. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +12 -17
  564. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +21 -23
  565. package/vscode/src/vs/platform/actions/browser/actionViewItemService.service.js +3 -0
  566. package/vscode/src/vs/platform/actions/browser/buttonbar.js +3 -3
  567. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +7 -6
  568. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +9 -11
  569. package/vscode/src/vs/platform/actions/browser/toolbar.js +34 -17
  570. package/vscode/src/vs/platform/actions/common/actions.contribution.js +0 -1
  571. package/vscode/src/vs/platform/actions/common/actions.d.ts +9 -12
  572. package/vscode/src/vs/platform/actions/common/actions.js +8 -11
  573. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  574. package/vscode/src/vs/platform/actions/common/menuService.js +6 -7
  575. package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +20 -0
  576. package/vscode/src/vs/platform/clipboard/common/clipboardService.service.d.ts +5 -0
  577. package/vscode/src/vs/platform/configuration/common/configuration.js +8 -8
  578. package/vscode/src/vs/platform/configuration/common/configurationModels.js +3 -4
  579. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +31 -31
  580. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +3 -5
  581. package/vscode/src/vs/platform/contextkey/common/contextkey.js +89 -109
  582. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +10 -10
  583. package/vscode/src/vs/platform/contextkey/common/scanner.js +74 -99
  584. package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -2
  585. package/vscode/src/vs/platform/contextview/browser/contextViewService.js +6 -6
  586. package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
  587. package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
  588. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  589. package/vscode/src/vs/platform/editor/common/editor.js +1 -14
  590. package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +8 -9
  591. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +80 -127
  592. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +1 -1
  593. package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +3 -3
  594. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  595. package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.js +12 -13
  596. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +9 -16
  597. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +35 -35
  598. package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +4 -6
  599. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +42 -27
  600. package/vscode/src/vs/platform/extensions/common/extensions.js +1 -22
  601. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +2 -7
  602. package/vscode/src/vs/platform/externalServices/common/serviceMachineId.js +2 -3
  603. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +6 -6
  604. package/vscode/src/vs/platform/files/common/files.js +25 -53
  605. package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.js +10 -10
  606. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +8 -9
  607. package/vscode/src/vs/platform/hover/browser/hover.js +1 -2
  608. package/vscode/src/vs/platform/instantiation/common/extensions.js +1 -6
  609. package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +1 -1
  610. package/vscode/src/vs/platform/instantiation/common/instantiationService.js +5 -12
  611. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +10 -11
  612. package/vscode/src/vs/platform/keybinding/common/keybindingResolver.js +9 -15
  613. package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.js +4 -12
  614. package/vscode/src/vs/platform/keybinding/common/resolvedKeybindingItem.js +1 -2
  615. package/vscode/src/vs/platform/keybinding/common/usLayoutResolvedKeybinding.js +63 -64
  616. package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
  617. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
  618. package/vscode/src/vs/platform/list/browser/listService.js +31 -38
  619. package/vscode/src/vs/platform/log/common/bufferLog.js +4 -3
  620. package/vscode/src/vs/platform/markers/common/markers.js +4 -9
  621. package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +4 -2
  622. package/vscode/src/vs/platform/observable/common/wrapInHotClass.js +25 -0
  623. package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.js +8 -43
  624. package/vscode/src/vs/platform/opener/browser/link.js +1 -2
  625. package/vscode/src/vs/platform/product/common/product.js +1 -1
  626. package/vscode/src/vs/platform/progress/common/progress.js +1 -10
  627. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +16 -17
  628. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +32 -33
  629. package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +2 -3
  630. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +10 -11
  631. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +9 -12
  632. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +2 -3
  633. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +4 -5
  634. package/vscode/src/vs/platform/quickinput/common/quickInput.js +1 -7
  635. package/vscode/src/vs/platform/remote/common/remoteAgentConnection.js +15 -29
  636. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.js +3 -8
  637. package/vscode/src/vs/platform/request/common/request.js +31 -26
  638. package/vscode/src/vs/platform/storage/common/storage.js +22 -22
  639. package/vscode/src/vs/platform/telemetry/common/telemetry.js +1 -15
  640. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +12 -12
  641. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +41 -0
  642. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.js +345 -0
  643. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +296 -0
  644. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +761 -0
  645. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +29 -0
  646. package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +22 -0
  647. package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +48 -0
  648. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +94 -0
  649. package/vscode/src/vs/platform/terminal/common/environmentVariable.js +7 -0
  650. package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +196 -0
  651. package/vscode/src/vs/platform/terminal/common/terminal.js +1 -155
  652. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +40 -0
  653. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +107 -0
  654. package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +67 -0
  655. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +346 -0
  656. package/vscode/src/vs/platform/theme/common/colorUtils.js +17 -27
  657. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  658. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +9 -9
  659. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +93 -93
  660. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +45 -45
  661. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  662. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  663. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  664. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +8 -8
  665. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  666. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  667. package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
  668. package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
  669. package/vscode/src/vs/platform/tunnel/common/tunnel.js +1 -3
  670. package/vscode/src/vs/platform/undoRedo/common/undoRedo.js +1 -6
  671. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +44 -49
  672. package/vscode/src/vs/platform/update/common/update.js +10 -37
  673. package/vscode/src/vs/platform/uriIdentity/common/uriIdentityService.js +1 -3
  674. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +2 -0
  675. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +146 -145
  676. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +60 -58
  677. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +14 -81
  678. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +6 -7
  679. package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +48 -49
  680. package/vscode/src/vs/platform/window/common/window.js +7 -23
  681. package/vscode/src/vs/platform/workspace/common/workspace.js +2 -8
  682. package/vscode/src/vs/workbench/api/browser/statusBarService.js +10 -16
  683. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +27 -14
  684. package/vscode/src/vs/workbench/api/common/extHost.common.services.js +28 -28
  685. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +3 -65
  686. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +9 -4
  687. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +56 -29
  688. package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +47 -0
  689. package/vscode/src/vs/workbench/api/common/extHostComments.js +17 -18
  690. package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +9 -10
  691. package/vscode/src/vs/workbench/api/common/extHostCustomEditors.js +6 -11
  692. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +45 -36
  693. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  694. package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +19 -19
  695. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +4 -4
  696. package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +15 -17
  697. package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +2 -2
  698. package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +67 -30
  699. package/vscode/src/vs/workbench/api/common/extHostFileSystemInfo.js +1 -2
  700. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +117 -94
  701. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +46 -9
  702. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +43 -35
  703. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  704. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +13 -11
  705. package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +11 -6
  706. package/vscode/src/vs/workbench/api/common/extHostSCM.js +38 -30
  707. package/vscode/src/vs/workbench/api/common/extHostSearch.js +7 -0
  708. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  709. package/vscode/src/vs/workbench/api/common/extHostTask.js +2 -2
  710. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +6 -7
  711. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +7 -9
  712. package/vscode/src/vs/workbench/api/common/extHostTestItem.js +7 -7
  713. package/vscode/src/vs/workbench/api/common/extHostTesting.js +27 -33
  714. package/vscode/src/vs/workbench/api/common/extHostTimeline.js +1 -2
  715. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
  716. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +5 -5
  717. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +218 -193
  718. package/vscode/src/vs/workbench/api/common/extHostTypes.js +24 -26
  719. package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.js +22 -23
  720. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +14 -13
  721. package/vscode/src/vs/workbench/api/common/extensionHostMain.js +1 -1
  722. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +14 -14
  723. package/vscode/src/vs/workbench/api/worker/extHost.worker.services.js +3 -3
  724. package/vscode/src/vs/workbench/api/worker/extensionHostWorker.js +4 -4
  725. package/vscode/src/vs/workbench/browser/actions/developerActions.js +39 -42
  726. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +220 -215
  727. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +8 -9
  728. package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +7 -8
  729. package/vscode/src/vs/workbench/browser/actions/windowActions.js +46 -47
  730. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +37 -38
  731. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
  732. package/vscode/src/vs/workbench/browser/codeeditor.js +9 -12
  733. package/vscode/src/vs/workbench/browser/editor.js +2 -2
  734. package/vscode/src/vs/workbench/browser/labels.js +2 -2
  735. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +2 -1
  736. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +19 -22
  737. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +34 -20
  738. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
  739. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
  740. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +69 -70
  741. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +44 -45
  742. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +2 -4
  743. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +1 -1
  744. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +17 -18
  745. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution._autosave.js +2 -2
  746. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +316 -323
  747. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +27 -30
  748. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +100 -100
  749. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +54 -58
  750. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +14 -15
  751. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.js +3 -4
  752. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +24 -11
  753. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +12 -14
  754. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +11 -12
  755. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +81 -87
  756. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +21 -13
  757. package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +17 -19
  758. package/vscode/src/vs/workbench/browser/parts/editor/media/editorplaceholder.css.js +1 -1
  759. package/vscode/src/vs/workbench/browser/parts/editor/media/editortabscontrol.css.js +1 -1
  760. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +23 -26
  761. package/vscode/src/vs/workbench/browser/parts/editor/noEditorTabsControl.js +9 -2
  762. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +16 -17
  763. package/vscode/src/vs/workbench/browser/parts/editor/singleEditorTabsControl.js +4 -4
  764. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -3
  765. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +8 -10
  766. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +11 -13
  767. package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +4 -7
  768. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +25 -30
  769. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
  770. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +5 -6
  771. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +14 -16
  772. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +43 -44
  773. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
  774. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +19 -21
  775. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +10 -14
  776. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +9 -10
  777. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.d.ts +4 -2
  778. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +1 -1
  779. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +62 -61
  780. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +3 -1
  781. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +57 -61
  782. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +16 -23
  783. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
  784. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +8 -9
  785. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +9 -10
  786. package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +1 -0
  787. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +18 -16
  788. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +54 -63
  789. package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
  790. package/vscode/src/vs/workbench/browser/window.js +18 -19
  791. package/vscode/src/vs/workbench/browser/workbench.contribution.js +257 -249
  792. package/vscode/src/vs/workbench/common/configuration.js +28 -30
  793. package/vscode/src/vs/workbench/common/contextkeys.js +70 -70
  794. package/vscode/src/vs/workbench/common/contributions.js +22 -23
  795. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +17 -17
  796. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +27 -27
  797. package/vscode/src/vs/workbench/common/editor/editorInput.js +7 -8
  798. package/vscode/src/vs/workbench/common/editor/editorOptions.js +4 -5
  799. package/vscode/src/vs/workbench/common/editor/filteredEditorGroupModel.js +6 -7
  800. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +12 -13
  801. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +8 -8
  802. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +3 -4
  803. package/vscode/src/vs/workbench/common/editor.js +5 -53
  804. package/vscode/src/vs/workbench/common/memento.js +9 -10
  805. package/vscode/src/vs/workbench/common/notifications.js +11 -32
  806. package/vscode/src/vs/workbench/common/theme.js +156 -156
  807. package/vscode/src/vs/workbench/common/views.js +8 -8
  808. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +170 -197
  809. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +66 -70
  810. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +8 -11
  811. package/vscode/src/vs/workbench/contrib/callHierarchy/common/callHierarchy.js +1 -6
  812. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +161 -36
  813. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +35 -21
  814. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +17 -14
  815. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTitleActions.js +51 -33
  816. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -1
  817. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +11 -17
  818. package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +2 -2
  819. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +78 -28
  820. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +1 -1
  821. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCommandContentPart.js +1 -1
  822. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationContentPart.js +2 -2
  823. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatConfirmationWidget.js +1 -1
  824. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownContentPart.js +29 -15
  825. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatProgressContentPart.js +3 -3
  826. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.js +107 -34
  827. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTextEditContentPart.js +2 -5
  828. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatToolInvocationPart.js +68 -0
  829. package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatTreeContentPart.js +1 -1
  830. package/vscode/src/vs/workbench/contrib/chat/browser/chatDragAndDrop.js +206 -0
  831. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditingService.js +751 -0
  832. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +3 -4
  833. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +1 -1
  834. package/vscode/src/vs/workbench/contrib/chat/browser/chatImagePaste.js +73 -0
  835. package/vscode/src/vs/workbench/contrib/chat/browser/chatInlineAnchorWidget.js +228 -0
  836. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +469 -103
  837. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +91 -96
  838. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +25 -27
  839. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownRenderer.js +21 -2
  840. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +175 -70
  841. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +1 -1
  842. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +46 -44
  843. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatContextAttachments.js +53 -0
  844. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +2 -2
  845. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.js +532 -0
  846. package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
  847. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css.js +1 -1
  848. package/vscode/src/vs/workbench/contrib/chat/browser/media/chatInlineAnchorWidget.css.js +4 -0
  849. package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +32 -3
  850. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +18 -7
  851. package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.service.js +3 -0
  852. package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +6 -6
  853. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +34 -19
  854. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.js +3 -0
  855. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +44 -74
  856. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +8 -4
  857. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +4 -2
  858. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +2 -5
  859. package/vscode/src/vs/workbench/contrib/chat/common/codeBlockModelCollection.js +20 -8
  860. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActions.contribution.js +1 -2
  861. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +17 -17
  862. package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
  863. package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
  864. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +14 -18
  865. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +10 -11
  866. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +6 -5
  867. package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +2 -2
  868. package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu.js +5 -7
  869. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +17 -14
  870. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.css.js +4 -0
  871. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +545 -0
  872. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +5 -5
  873. package/vscode/src/vs/workbench/contrib/codeEditor/browser/menuPreventer.js +4 -5
  874. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +11 -15
  875. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +16 -19
  876. package/vscode/src/vs/workbench/contrib/codeEditor/browser/simpleEditorOptions.js +2 -1
  877. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +3 -5
  878. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +3 -3
  879. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +5 -6
  880. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  881. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  882. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +19 -22
  883. package/vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch.js +2 -2
  884. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
  885. package/vscode/src/vs/workbench/contrib/comments/browser/commentFormActions.js +24 -6
  886. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +20 -11
  887. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +45 -35
  888. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +14 -10
  889. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +9 -5
  890. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +13 -7
  891. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +4 -5
  892. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +9 -11
  893. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +27 -26
  894. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +33 -22
  895. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +54 -29
  896. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  897. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +17 -24
  898. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +39 -28
  899. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +38 -36
  900. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
  901. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +11 -12
  902. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +13 -9
  903. package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +1 -2
  904. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +17 -17
  905. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +43 -45
  906. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +46 -47
  907. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +185 -147
  908. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +5 -6
  909. package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +370 -0
  910. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  911. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +96 -100
  912. package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +160 -0
  913. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  914. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
  915. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +21 -17
  916. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  917. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +6 -6
  918. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +4 -40
  919. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +28 -33
  920. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +2 -3
  921. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  922. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
  923. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +14 -6
  924. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +357 -330
  925. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
  926. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -24
  927. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  928. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +3 -4
  929. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +5 -7
  930. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
  931. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +5 -6
  932. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +3 -4
  933. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +16 -23
  934. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +16 -19
  935. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +2 -3
  936. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +30 -32
  937. package/vscode/src/vs/workbench/contrib/files/browser/explorerFileContrib.js +2 -6
  938. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +21 -23
  939. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +93 -96
  940. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +28 -29
  941. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  942. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +44 -46
  943. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +77 -77
  944. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +9 -9
  945. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +3 -3
  946. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
  947. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +132 -25
  948. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +74 -58
  949. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +43 -49
  950. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
  951. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +2 -3
  952. package/vscode/src/vs/workbench/contrib/files/common/explorerFileNestingTrie.js +8 -15
  953. package/vscode/src/vs/workbench/contrib/files/common/explorerModel.js +3 -5
  954. package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -39
  955. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +4 -5
  956. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +26 -27
  957. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +10 -20
  958. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +3 -3
  959. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +8 -10
  960. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +77 -71
  961. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +110 -153
  962. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +18 -25
  963. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +19 -6
  964. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +30 -41
  965. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +20 -20
  966. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +19 -13
  967. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +1 -1
  968. package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +1 -2
  969. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +62 -84
  970. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +4 -5
  971. package/vscode/src/vs/workbench/contrib/list/browser/list.contribution.js +2 -2
  972. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  973. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  974. package/vscode/src/vs/workbench/contrib/markdown/browser/markdownDocumentRenderer.js +3 -2
  975. package/vscode/src/vs/workbench/contrib/markdown/browser/markedGfmHeadingIdPlugin.js +39 -0
  976. package/vscode/src/vs/workbench/contrib/markers/common/markers.js +2 -7
  977. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +8 -6
  978. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +45 -47
  979. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +3 -2
  980. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +2 -3
  981. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +3 -3
  982. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +26 -30
  983. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +8 -13
  984. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +13 -24
  985. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +5 -5
  986. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +32 -31
  987. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
  988. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
  989. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +13 -13
  990. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +17 -7
  991. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +12 -12
  992. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +21 -23
  993. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +6 -7
  994. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +17 -18
  995. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +8 -4
  996. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
  997. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +4 -5
  998. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +37 -48
  999. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +24 -26
  1000. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffCellEditorOptions.js +4 -1
  1001. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +347 -127
  1002. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +12 -14
  1003. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementViewModel.js +230 -67
  1004. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/editorHeightCalculator.js +59 -0
  1005. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +13 -10
  1006. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +7 -6
  1007. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +148 -37
  1008. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffOverviewRuler.js +2 -0
  1009. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffViewModel.js +125 -71
  1010. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +13 -6
  1011. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/unchangedEditorRegions.js +36 -0
  1012. package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css.js +1 -1
  1013. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +32 -13
  1014. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookBrowser.js +1 -21
  1015. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +18 -20
  1016. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +56 -49
  1017. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -28
  1018. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +13 -14
  1019. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +48 -36
  1020. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +3 -2
  1021. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDnd.js +3 -3
  1022. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellDragRenderer.js +3 -5
  1023. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
  1024. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +26 -35
  1025. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +22 -16
  1026. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +2 -3
  1027. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +8 -14
  1028. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
  1029. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +10 -11
  1030. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
  1031. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +5 -5
  1032. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +6 -6
  1033. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +25 -33
  1034. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +14 -14
  1035. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +8 -4
  1036. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +8 -5
  1037. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +1 -2
  1038. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellOutputViewModel.js +3 -3
  1039. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +3 -3
  1040. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/foldingModel.js +2 -3
  1041. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +2 -2
  1042. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +12 -11
  1043. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +2 -3
  1044. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +4 -5
  1045. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +39 -49
  1046. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  1047. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +2 -2
  1048. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
  1049. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookCellTextModel.js +32 -21
  1050. package/vscode/src/vs/workbench/contrib/notebook/common/model/notebookMetadataTextModel.js +85 -0
  1051. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +21 -35
  1052. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +2 -1
  1053. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +17 -19
  1054. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +4 -7
  1055. package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +2 -8
  1056. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +6 -8
  1057. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +12 -12
  1058. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +32 -36
  1059. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
  1060. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +24 -31
  1061. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +6 -4
  1062. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
  1063. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +39 -36
  1064. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
  1065. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +77 -79
  1066. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
  1067. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +45 -49
  1068. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +250 -0
  1069. package/vscode/src/vs/workbench/contrib/scm/browser/util.js +131 -0
  1070. package/vscode/src/vs/workbench/contrib/scm/common/scm.js +1 -13
  1071. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +11 -12
  1072. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +2 -2
  1073. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
  1074. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +29 -32
  1075. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +418 -266
  1076. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +11 -11
  1077. package/vscode/src/vs/workbench/contrib/search/common/cellSearchModel.js +2 -3
  1078. package/vscode/src/vs/workbench/contrib/search/common/constants.js +1 -50
  1079. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +1 -1
  1080. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
  1081. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +8 -9
  1082. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +5 -11
  1083. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +22 -25
  1084. package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +11 -11
  1085. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +31 -37
  1086. package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +0 -1
  1087. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  1088. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +5 -5
  1089. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +14 -83
  1090. package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +119 -0
  1091. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +2 -0
  1092. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +1 -27
  1093. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +1770 -0
  1094. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +40 -0
  1095. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +9 -12
  1096. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +25 -0
  1097. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIconPicker.js +72 -0
  1098. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +16 -0
  1099. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +2218 -0
  1100. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +8 -9
  1101. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +628 -0
  1102. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +143 -0
  1103. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalResizeDebouncer.js +61 -0
  1104. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +315 -0
  1105. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +121 -0
  1106. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +39 -0
  1107. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +36 -0
  1108. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +498 -0
  1109. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +123 -0
  1110. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +55 -0
  1111. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +571 -0
  1112. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +0 -6
  1113. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +732 -0
  1114. package/vscode/src/vs/workbench/contrib/terminal/common/history.js +378 -0
  1115. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +62 -165
  1116. package/vscode/src/vs/workbench/contrib/terminal/common/terminalClipboard.js +80 -0
  1117. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
  1118. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +141 -89
  1119. package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +282 -0
  1120. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +28 -28
  1121. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminal.accessibility.js +2 -10
  1122. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css.js +4 -0
  1123. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChat.js +46 -0
  1124. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +302 -0
  1125. package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +203 -0
  1126. package/vscode/src/vs/workbench/contrib/terminalContrib/find/common/terminal.find.js +9 -20
  1127. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/media/stickyScroll.css.js +4 -0
  1128. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollColorRegistry.js +22 -0
  1129. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollContribution.js +97 -0
  1130. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/browser/terminalStickyScrollOverlay.js +372 -0
  1131. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminal.suggest.js +9 -20
  1132. package/vscode/src/vs/workbench/contrib/testing/common/getComputedState.js +3 -4
  1133. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.d.ts +1 -1
  1134. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +3 -1
  1135. package/vscode/src/vs/workbench/contrib/testing/common/testId.js +18 -29
  1136. package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +41 -51
  1137. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +24 -35
  1138. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +39 -99
  1139. package/vscode/src/vs/workbench/contrib/testing/common/testingStates.js +14 -15
  1140. package/vscode/src/vs/workbench/contrib/timeline/common/timeline.js +2 -1
  1141. package/vscode/src/vs/workbench/contrib/typeHierarchy/common/typeHierarchy.js +1 -6
  1142. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainService.js +1 -2
  1143. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +9 -10
  1144. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
  1145. package/vscode/src/vs/workbench/contrib/webview/browser/webview.js +2 -9
  1146. package/vscode/src/vs/workbench/contrib/webview/common/webview.js +3 -4
  1147. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +3 -4
  1148. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +1 -2
  1149. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +1 -2
  1150. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  1151. package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +10 -1
  1152. package/vscode/src/vs/workbench/services/activity/common/activity.js +29 -6
  1153. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +4 -6
  1154. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -6
  1155. package/vscode/src/vs/workbench/services/configuration/common/configuration.js +7 -8
  1156. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
  1157. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
  1158. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
  1159. package/vscode/src/vs/workbench/services/driver/browser/driver.js +1 -2
  1160. package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +1 -3
  1161. package/vscode/src/vs/workbench/services/editor/browser/editorService.js +26 -29
  1162. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +0 -1
  1163. package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.js +5 -5
  1164. package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +5 -5
  1165. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +2 -2
  1166. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +2 -7
  1167. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +6 -5
  1168. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +2 -21
  1169. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +13 -7
  1170. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -7
  1171. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +2 -8
  1172. package/vscode/src/vs/workbench/services/extensions/common/extensionHostKind.js +10 -16
  1173. package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.js +7 -18
  1174. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +0 -1
  1175. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.js +3 -4
  1176. package/vscode/src/vs/workbench/services/extensions/common/extensions.js +7 -18
  1177. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +82 -82
  1178. package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +64 -103
  1179. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +20 -36
  1180. package/vscode/src/vs/workbench/services/language/common/languageService.js +29 -30
  1181. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +27 -71
  1182. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js +8 -28
  1183. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +11 -11
  1184. package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +12 -2
  1185. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  1186. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  1187. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +2 -2
  1188. package/vscode/src/vs/workbench/services/progress/browser/progressIndicator.js +18 -20
  1189. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +6 -1
  1190. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +20 -16
  1191. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.d.ts +3 -3
  1192. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +1 -0
  1193. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +34 -22
  1194. package/vscode/src/vs/workbench/services/search/common/fileSearchManager.js +11 -7
  1195. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +15 -7
  1196. package/vscode/src/vs/workbench/services/search/common/replace.js +11 -12
  1197. package/vscode/src/vs/workbench/services/search/common/search.js +1 -32
  1198. package/vscode/src/vs/workbench/services/search/common/searchExtConversionTypes.js +1 -0
  1199. package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +3 -3
  1200. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +1 -6
  1201. package/vscode/src/vs/workbench/services/storage/browser/storageService.js +13 -13
  1202. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  1203. package/vscode/src/vs/workbench/services/textMate/common/TMHelper.js +107 -0
  1204. package/vscode/src/vs/workbench/services/textfile/common/encoding.js +2 -6
  1205. package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +0 -1
  1206. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +30 -32
  1207. package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +3 -27
  1208. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +24 -24
  1209. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +933 -0
  1210. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +15 -15
  1211. package/vscode/src/vs/workbench/services/themes/common/plistParser.js +400 -0
  1212. package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +120 -0
  1213. package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +76 -0
  1214. package/vscode/src/vs/workbench/services/treeSitter/browser/treeSitterTokenizationFeature.service.js +3 -0
  1215. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +2 -2
  1216. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +2 -2
  1217. package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +11 -12
  1218. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
  1219. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
  1220. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +16 -22
  1221. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +51 -43
  1222. package/vscode/src/vs/workbench/services/views/common/viewsService.service.d.ts +1 -0
  1223. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +2 -3
  1224. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +46 -59
  1225. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopy.js +1 -7
  1226. package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +14 -17
  1227. package/vscode-dts/vscode.proposed.aiTextSearchProvider.d.ts +6 -0
  1228. package/vscode-dts/vscode.proposed.aiTextSearchProviderNew.d.ts +5 -0
  1229. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +30 -3
  1230. package/vscode-dts/vscode.proposed.chatProvider.d.ts +4 -0
  1231. package/vscode-dts/vscode.proposed.contribChatParticipantDetection.d.ts +1 -0
  1232. package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts +1 -2
  1233. package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +8 -2
  1234. package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +1 -1
  1235. package/vscode-dts/vscode.proposed.lmTools.d.ts +47 -9
  1236. package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +43 -1
  1237. package/vscode-dts/vscode.proposed.notebookReplDocument.d.ts +17 -4
  1238. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +35 -33
  1239. package/workbench.js +3 -1
  1240. package/vscode/src/vs/base/common/charCode.js +0 -296
  1241. package/vscode/src/vs/base/common/hotReload.js +0 -77
  1242. package/vscode/src/vs/base/common/marshallingIds.js +0 -22
  1243. package/vscode/src/vs/editor/common/cursorEvents.js +0 -11
  1244. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +0 -265
  1245. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +0 -376
  1246. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostTextView.js +0 -271
  1247. package/vscode/src/vs/editor/contrib/inlineEdits/browser/commands.js +0 -125
  1248. package/vscode/src/vs/editor/contrib/inlineEdits/browser/consts.js +0 -8
  1249. package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEdits.contribution.js +0 -9
  1250. package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsController.js +0 -82
  1251. package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsModel.js +0 -240
  1252. package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.css.js +0 -4
  1253. package/vscode/src/vs/editor/contrib/inlineEdits/browser/inlineEditsWidget.js +0 -322
  1254. package/vscode/src/vs/platform/label/common/label.js +0 -7
  1255. package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.js +0 -14
  1256. package/vscode/src/vs/platform/workspace/common/workspaceTrust.js +0 -7
  1257. package/vscode/src/vs/workbench/contrib/accessibility/common/accessibilityCommands.js +0 -16
  1258. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +0 -164
  1259. package/vscode/src/vs/workbench/contrib/comments/common/commentCommandIds.js +0 -15
  1260. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +0 -271
  1261. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +0 -175
  1262. package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +0 -4
  1263. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellWidgets.js +0 -7
  1264. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +0 -720
  1265. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +0 -106
  1266. package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +0 -11
  1267. package/vscode/src/vs/workbench/services/outline/browser/outline.js +0 -22
  1268. package/vscode/src/vs/workbench/services/workingCopy/common/fileWorkingCopy.js +0 -6
  1269. package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemChangesMenu.d.ts +0 -7
  1270. package/vscode-dts/vscode.proposed.contribSourceControlHistoryItemGroupMenu.d.ts +0 -10
  1271. /package/vscode/src/vs/editor/browser/viewParts/{lines → viewLines}/domReadingContext.js +0 -0
  1272. /package/vscode/src/vs/editor/browser/viewParts/{lines → viewLines}/viewLines.css.js +0 -0
@@ -0,0 +1,761 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import { RunOnceScheduler } from '../../../../base/common/async.js';
3
+ import { debounce } from '../../../../base/common/decorators.js';
4
+ import { Emitter } from '../../../../base/common/event.js';
5
+ import { Disposable, MandatoryMutableDisposable, MutableDisposable } from '../../../../base/common/lifecycle.js';
6
+ import { ILogService } from '../../../log/common/log.service.js';
7
+ import { PartialTerminalCommand, TerminalCommand } from './commandDetection/terminalCommand.js';
8
+ import { PromptInputModel } from './commandDetection/promptInputModel.js';
9
+ let CommandDetectionCapability = class CommandDetectionCapability extends Disposable {
10
+ get promptInputModel() { return this._promptInputModel; }
11
+ get commands() { return this._commands; }
12
+ get executingCommand() { return this._currentCommand.command; }
13
+ get executingCommandObject() {
14
+ if (this._currentCommand.commandStartMarker) {
15
+ return { marker: this._currentCommand.commandStartMarker };
16
+ }
17
+ return undefined;
18
+ }
19
+ get currentCommand() {
20
+ return this._currentCommand;
21
+ }
22
+ get cwd() { return this._cwd; }
23
+ get promptTerminator() { return this._promptTerminator; }
24
+ constructor(_terminal, _logService) {
25
+ super();
26
+ this._terminal = _terminal;
27
+ this._logService = _logService;
28
+ this.type = 2 ;
29
+ this._commands = [];
30
+ this._currentCommand = ( new PartialTerminalCommand(this._terminal));
31
+ this._commandMarkers = [];
32
+ this.__isCommandStorageDisabled = false;
33
+ this._onCommandStarted = this._register(( new Emitter()));
34
+ this.onCommandStarted = this._onCommandStarted.event;
35
+ this._onBeforeCommandFinished = this._register(( new Emitter()));
36
+ this.onBeforeCommandFinished = this._onBeforeCommandFinished.event;
37
+ this._onCommandFinished = this._register(( new Emitter()));
38
+ this.onCommandFinished = this._onCommandFinished.event;
39
+ this._onCommandExecuted = this._register(( new Emitter()));
40
+ this.onCommandExecuted = this._onCommandExecuted.event;
41
+ this._onCommandInvalidated = this._register(( new Emitter()));
42
+ this.onCommandInvalidated = this._onCommandInvalidated.event;
43
+ this._onCurrentCommandInvalidated = this._register(( new Emitter()));
44
+ this.onCurrentCommandInvalidated = this._onCurrentCommandInvalidated.event;
45
+ this._promptInputModel = this._register(( new PromptInputModel(
46
+ this._terminal,
47
+ this.onCommandStarted,
48
+ this.onCommandExecuted,
49
+ this._logService
50
+ )));
51
+ this._register(this.onCommandExecuted(command => {
52
+ if (command.commandLineConfidence !== 'high') {
53
+ const typedCommand = command;
54
+ command.command = typedCommand.extractCommandLine();
55
+ command.commandLineConfidence = 'low';
56
+ if ('getOutput' in typedCommand) {
57
+ if (
58
+ typedCommand.promptStartMarker && typedCommand.marker && typedCommand.executedMarker &&
59
+ command.command.indexOf('\n') === -1 &&
60
+ typedCommand.startX !== undefined && typedCommand.startX > 0) {
61
+ command.commandLineConfidence = 'medium';
62
+ }
63
+ }
64
+ else {
65
+ if (
66
+ typedCommand.promptStartMarker && typedCommand.commandStartMarker && typedCommand.commandExecutedMarker &&
67
+ command.command.indexOf('\n') === -1 &&
68
+ typedCommand.commandStartX !== undefined && typedCommand.commandStartX > 0) {
69
+ command.commandLineConfidence = 'medium';
70
+ }
71
+ }
72
+ }
73
+ }));
74
+ const that = this;
75
+ this._ptyHeuristicsHooks = new (class {
76
+ get onCurrentCommandInvalidatedEmitter() { return that._onCurrentCommandInvalidated; }
77
+ get onCommandStartedEmitter() { return that._onCommandStarted; }
78
+ get onCommandExecutedEmitter() { return that._onCommandExecuted; }
79
+ get dimensions() { return that._dimensions; }
80
+ get isCommandStorageDisabled() { return that.__isCommandStorageDisabled; }
81
+ get commandMarkers() { return that._commandMarkers; }
82
+ set commandMarkers(value) { that._commandMarkers = value; }
83
+ get clearCommandsInViewport() { return that._clearCommandsInViewport.bind(that); }
84
+ commitCommandFinished() {
85
+ that._commitCommandFinished?.flush();
86
+ that._commitCommandFinished = undefined;
87
+ }
88
+ });
89
+ this._ptyHeuristics = this._register(( new MandatoryMutableDisposable(( new UnixPtyHeuristics(this._terminal, this, this._ptyHeuristicsHooks, this._logService)))));
90
+ this._dimensions = {
91
+ cols: this._terminal.cols,
92
+ rows: this._terminal.rows
93
+ };
94
+ this._register(this._terminal.onResize(e => this._handleResize(e)));
95
+ this._register(this._terminal.onCursorMove(() => this._handleCursorMove()));
96
+ }
97
+ _handleResize(e) {
98
+ this._ptyHeuristics.value.preHandleResize?.(e);
99
+ this._dimensions.cols = e.cols;
100
+ this._dimensions.rows = e.rows;
101
+ }
102
+ _handleCursorMove() {
103
+ if (this._store.isDisposed) {
104
+ return;
105
+ }
106
+ if (this._terminal.buffer.active === this._terminal.buffer.normal && this._currentCommand.commandStartMarker) {
107
+ if (this._terminal.buffer.active.baseY + this._terminal.buffer.active.cursorY < this._currentCommand.commandStartMarker.line) {
108
+ this._clearCommandsInViewport();
109
+ this._currentCommand.isInvalid = true;
110
+ this._onCurrentCommandInvalidated.fire({ reason: "windows" });
111
+ }
112
+ }
113
+ }
114
+ _clearCommandsInViewport() {
115
+ let count = 0;
116
+ for (let i = this._commands.length - 1; i >= 0; i--) {
117
+ const line = this._commands[i].marker?.line;
118
+ if (line && line < this._terminal.buffer.active.baseY) {
119
+ break;
120
+ }
121
+ count++;
122
+ }
123
+ if (count > 0) {
124
+ this._onCommandInvalidated.fire(this._commands.splice(this._commands.length - count, count));
125
+ }
126
+ }
127
+ setContinuationPrompt(value) {
128
+ this._promptInputModel.setContinuationPrompt(value);
129
+ }
130
+ setPromptTerminator(promptTerminator, lastPromptLine) {
131
+ this._logService.debug('CommandDetectionCapability#setPromptTerminator', promptTerminator);
132
+ this._promptTerminator = promptTerminator;
133
+ this._promptInputModel.setLastPromptLine(lastPromptLine);
134
+ }
135
+ setCwd(value) {
136
+ this._cwd = value;
137
+ }
138
+ setIsWindowsPty(value) {
139
+ if (value && !(this._ptyHeuristics.value instanceof WindowsPtyHeuristics)) {
140
+ const that = this;
141
+ this._ptyHeuristics.value = ( new WindowsPtyHeuristics(this._terminal, this, new (class {
142
+ get onCurrentCommandInvalidatedEmitter() { return that._onCurrentCommandInvalidated; }
143
+ get onCommandStartedEmitter() { return that._onCommandStarted; }
144
+ get onCommandExecutedEmitter() { return that._onCommandExecuted; }
145
+ get dimensions() { return that._dimensions; }
146
+ get isCommandStorageDisabled() { return that.__isCommandStorageDisabled; }
147
+ get commandMarkers() { return that._commandMarkers; }
148
+ set commandMarkers(value) { that._commandMarkers = value; }
149
+ get clearCommandsInViewport() { return that._clearCommandsInViewport.bind(that); }
150
+ commitCommandFinished() {
151
+ that._commitCommandFinished?.flush();
152
+ that._commitCommandFinished = undefined;
153
+ }
154
+ }), this._logService));
155
+ }
156
+ else if (!value && !(this._ptyHeuristics.value instanceof UnixPtyHeuristics)) {
157
+ this._ptyHeuristics.value = ( new UnixPtyHeuristics(this._terminal, this, this._ptyHeuristicsHooks, this._logService));
158
+ }
159
+ }
160
+ setIsCommandStorageDisabled() {
161
+ this.__isCommandStorageDisabled = true;
162
+ }
163
+ getCommandForLine(line) {
164
+ if (this._currentCommand.promptStartMarker && line >= this._currentCommand.promptStartMarker?.line) {
165
+ return this._currentCommand;
166
+ }
167
+ if (this._commands.length === 0) {
168
+ return undefined;
169
+ }
170
+ if ((this._commands[0].promptStartMarker ?? this._commands[0].marker).line > line) {
171
+ return undefined;
172
+ }
173
+ for (let i = this.commands.length - 1; i >= 0; i--) {
174
+ if ((this.commands[i].promptStartMarker ?? this.commands[i].marker).line <= line) {
175
+ return this.commands[i];
176
+ }
177
+ }
178
+ return undefined;
179
+ }
180
+ getCwdForLine(line) {
181
+ if (this._currentCommand.promptStartMarker && line >= this._currentCommand.promptStartMarker?.line) {
182
+ return this._cwd;
183
+ }
184
+ const command = this.getCommandForLine(line);
185
+ if (command && 'cwd' in command) {
186
+ return command.cwd;
187
+ }
188
+ return undefined;
189
+ }
190
+ handlePromptStart(options) {
191
+ const lastCommand = this.commands.at(-1);
192
+ if (lastCommand?.endMarker && lastCommand?.executedMarker && lastCommand.endMarker.line === lastCommand.executedMarker.line) {
193
+ this._logService.debug('CommandDetectionCapability#handlePromptStart adjusted commandFinished', `${lastCommand.endMarker.line} -> ${lastCommand.executedMarker.line + 1}`);
194
+ lastCommand.endMarker = cloneMarker(this._terminal, lastCommand.executedMarker, 1);
195
+ }
196
+ this._currentCommand.promptStartMarker = options?.marker || (lastCommand?.endMarker ? cloneMarker(this._terminal, lastCommand.endMarker) : this._terminal.registerMarker(0));
197
+ this._logService.debug('CommandDetectionCapability#handlePromptStart', this._terminal.buffer.active.cursorX, this._currentCommand.promptStartMarker?.line);
198
+ }
199
+ handleContinuationStart() {
200
+ this._currentCommand.currentContinuationMarker = this._terminal.registerMarker(0);
201
+ this._logService.debug('CommandDetectionCapability#handleContinuationStart', this._currentCommand.currentContinuationMarker);
202
+ }
203
+ handleContinuationEnd() {
204
+ if (!this._currentCommand.currentContinuationMarker) {
205
+ this._logService.warn('CommandDetectionCapability#handleContinuationEnd Received continuation end without start');
206
+ return;
207
+ }
208
+ if (!this._currentCommand.continuations) {
209
+ this._currentCommand.continuations = [];
210
+ }
211
+ this._currentCommand.continuations.push({
212
+ marker: this._currentCommand.currentContinuationMarker,
213
+ end: this._terminal.buffer.active.cursorX
214
+ });
215
+ this._currentCommand.currentContinuationMarker = undefined;
216
+ this._logService.debug('CommandDetectionCapability#handleContinuationEnd', this._currentCommand.continuations[this._currentCommand.continuations.length - 1]);
217
+ }
218
+ handleRightPromptStart() {
219
+ this._currentCommand.commandRightPromptStartX = this._terminal.buffer.active.cursorX;
220
+ this._logService.debug('CommandDetectionCapability#handleRightPromptStart', this._currentCommand.commandRightPromptStartX);
221
+ }
222
+ handleRightPromptEnd() {
223
+ this._currentCommand.commandRightPromptEndX = this._terminal.buffer.active.cursorX;
224
+ this._logService.debug('CommandDetectionCapability#handleRightPromptEnd', this._currentCommand.commandRightPromptEndX);
225
+ }
226
+ handleCommandStart(options) {
227
+ this._handleCommandStartOptions = options;
228
+ this._currentCommand.cwd = this._cwd;
229
+ this._currentCommand.commandStartMarker = options?.marker || this._currentCommand.commandStartMarker;
230
+ if (this._currentCommand.commandStartMarker?.line === this._terminal.buffer.active.cursorY) {
231
+ this._currentCommand.commandStartX = this._terminal.buffer.active.cursorX;
232
+ this._logService.debug('CommandDetectionCapability#handleCommandStart', this._currentCommand.commandStartX, this._currentCommand.commandStartMarker?.line);
233
+ return;
234
+ }
235
+ this._ptyHeuristics.value.handleCommandStart(options);
236
+ }
237
+ handleGenericCommand(options) {
238
+ if (options?.markProperties?.disableCommandStorage) {
239
+ this.setIsCommandStorageDisabled();
240
+ }
241
+ this.handlePromptStart(options);
242
+ this.handleCommandStart(options);
243
+ this.handleCommandExecuted(options);
244
+ this.handleCommandFinished(undefined, options);
245
+ }
246
+ handleCommandExecuted(options) {
247
+ this._ptyHeuristics.value.handleCommandExecuted(options);
248
+ this._currentCommand.markExecutedTime();
249
+ }
250
+ handleCommandFinished(exitCode, options) {
251
+ this._currentCommand.markFinishedTime();
252
+ this._ptyHeuristics.value.preHandleCommandFinished?.();
253
+ this._logService.debug('CommandDetectionCapability#handleCommandFinished', this._terminal.buffer.active.cursorX, options?.marker?.line, this._currentCommand.command, this._currentCommand);
254
+ if (exitCode === undefined) {
255
+ const lastCommand = this.commands.length > 0 ? this.commands[this.commands.length - 1] : undefined;
256
+ if (this._currentCommand.command && this._currentCommand.command.length > 0 && lastCommand?.command === this._currentCommand.command) {
257
+ exitCode = lastCommand.exitCode;
258
+ }
259
+ }
260
+ if (this._currentCommand.commandStartMarker === undefined || !this._terminal.buffer.active) {
261
+ return;
262
+ }
263
+ this._currentCommand.commandFinishedMarker = options?.marker || this._terminal.registerMarker(0);
264
+ this._ptyHeuristics.value.postHandleCommandFinished?.();
265
+ const newCommand = this._currentCommand.promoteToFullCommand(this._cwd, exitCode, this._handleCommandStartOptions?.ignoreCommandLine ?? false, options?.markProperties);
266
+ if (newCommand) {
267
+ this._commands.push(newCommand);
268
+ this._commitCommandFinished = ( new RunOnceScheduler(() => {
269
+ this._onBeforeCommandFinished.fire(newCommand);
270
+ if (!this._currentCommand.isInvalid) {
271
+ this._logService.debug('CommandDetectionCapability#onCommandFinished', newCommand);
272
+ this._onCommandFinished.fire(newCommand);
273
+ }
274
+ }, 50));
275
+ this._commitCommandFinished.schedule();
276
+ }
277
+ this._currentCommand = ( new PartialTerminalCommand(this._terminal));
278
+ this._handleCommandStartOptions = undefined;
279
+ }
280
+ setCommandLine(commandLine, isTrusted) {
281
+ this._logService.debug('CommandDetectionCapability#setCommandLine', commandLine, isTrusted);
282
+ this._currentCommand.command = commandLine;
283
+ this._currentCommand.commandLineConfidence = 'high';
284
+ this._currentCommand.isTrusted = isTrusted;
285
+ if (isTrusted) {
286
+ this._promptInputModel.setConfidentCommandLine(commandLine);
287
+ }
288
+ }
289
+ serialize() {
290
+ const commands = ( this.commands.map(e => e.serialize(this.__isCommandStorageDisabled)));
291
+ const partialCommand = this._currentCommand.serialize(this._cwd);
292
+ if (partialCommand) {
293
+ commands.push(partialCommand);
294
+ }
295
+ return {
296
+ isWindowsPty: this._ptyHeuristics.value instanceof WindowsPtyHeuristics,
297
+ commands,
298
+ promptInputModel: this._promptInputModel.serialize(),
299
+ };
300
+ }
301
+ deserialize(serialized) {
302
+ if (serialized.isWindowsPty) {
303
+ this.setIsWindowsPty(serialized.isWindowsPty);
304
+ }
305
+ const buffer = this._terminal.buffer.normal;
306
+ for (const e of serialized.commands) {
307
+ if (!e.endLine) {
308
+ const marker = e.startLine !== undefined ? this._terminal.registerMarker(e.startLine - (buffer.baseY + buffer.cursorY)) : undefined;
309
+ if (!marker) {
310
+ continue;
311
+ }
312
+ this._currentCommand.commandStartMarker = e.startLine !== undefined ? this._terminal.registerMarker(e.startLine - (buffer.baseY + buffer.cursorY)) : undefined;
313
+ this._currentCommand.commandStartX = e.startX;
314
+ this._currentCommand.promptStartMarker = e.promptStartLine !== undefined ? this._terminal.registerMarker(e.promptStartLine - (buffer.baseY + buffer.cursorY)) : undefined;
315
+ this._cwd = e.cwd;
316
+ this._onCommandStarted.fire({ marker });
317
+ continue;
318
+ }
319
+ const newCommand = TerminalCommand.deserialize(this._terminal, e, this.__isCommandStorageDisabled);
320
+ if (!newCommand) {
321
+ continue;
322
+ }
323
+ this._commands.push(newCommand);
324
+ this._logService.debug('CommandDetectionCapability#onCommandFinished', newCommand);
325
+ this._onCommandFinished.fire(newCommand);
326
+ }
327
+ if (serialized.promptInputModel) {
328
+ this._promptInputModel.deserialize(serialized.promptInputModel);
329
+ }
330
+ }
331
+ };
332
+ CommandDetectionCapability.__decorator = ( __decorate([
333
+ debounce(500)
334
+ ], CommandDetectionCapability.prototype, "_handleCursorMove", null));
335
+ CommandDetectionCapability = ( __decorate([
336
+ ( __param(1, ILogService))
337
+ ], CommandDetectionCapability));
338
+ class UnixPtyHeuristics extends Disposable {
339
+ constructor(_terminal, _capability, _hooks, _logService) {
340
+ super();
341
+ this._terminal = _terminal;
342
+ this._capability = _capability;
343
+ this._hooks = _hooks;
344
+ this._logService = _logService;
345
+ this._register(_terminal.parser.registerCsiHandler({ final: 'J' }, params => {
346
+ if (params.length >= 1 && (params[0] === 2 || params[0] === 3)) {
347
+ _hooks.clearCommandsInViewport();
348
+ }
349
+ return false;
350
+ }));
351
+ }
352
+ handleCommandStart(options) {
353
+ this._hooks.commitCommandFinished();
354
+ const currentCommand = this._capability.currentCommand;
355
+ currentCommand.commandStartX = this._terminal.buffer.active.cursorX;
356
+ currentCommand.commandStartMarker = options?.marker || this._terminal.registerMarker(0);
357
+ currentCommand.commandExecutedMarker?.dispose();
358
+ currentCommand.commandExecutedMarker = undefined;
359
+ currentCommand.commandExecutedX = undefined;
360
+ for (const m of this._hooks.commandMarkers) {
361
+ m.dispose();
362
+ }
363
+ this._hooks.commandMarkers.length = 0;
364
+ this._hooks.onCommandStartedEmitter.fire({ marker: options?.marker || currentCommand.commandStartMarker, markProperties: options?.markProperties });
365
+ this._logService.debug('CommandDetectionCapability#handleCommandStart', currentCommand.commandStartX, currentCommand.commandStartMarker?.line);
366
+ }
367
+ handleCommandExecuted(options) {
368
+ const currentCommand = this._capability.currentCommand;
369
+ currentCommand.commandExecutedMarker = options?.marker || this._terminal.registerMarker(0);
370
+ currentCommand.commandExecutedX = this._terminal.buffer.active.cursorX;
371
+ this._logService.debug('CommandDetectionCapability#handleCommandExecuted', currentCommand.commandExecutedX, currentCommand.commandExecutedMarker?.line);
372
+ if (!currentCommand.commandStartMarker || !currentCommand.commandExecutedMarker || currentCommand.commandStartX === undefined) {
373
+ return;
374
+ }
375
+ currentCommand.command = this._hooks.isCommandStorageDisabled ? '' : this._terminal.buffer.active.getLine(currentCommand.commandStartMarker.line)?.translateToString(true, currentCommand.commandStartX, currentCommand.commandRightPromptStartX).trim();
376
+ let y = currentCommand.commandStartMarker.line + 1;
377
+ const commandExecutedLine = currentCommand.commandExecutedMarker.line;
378
+ for (; y < commandExecutedLine; y++) {
379
+ const line = this._terminal.buffer.active.getLine(y);
380
+ if (line) {
381
+ const continuation = currentCommand.continuations?.find(e => e.marker.line === y);
382
+ if (continuation) {
383
+ currentCommand.command += '\n';
384
+ }
385
+ const startColumn = continuation?.end ?? 0;
386
+ currentCommand.command += line.translateToString(true, startColumn);
387
+ }
388
+ }
389
+ if (y === commandExecutedLine) {
390
+ currentCommand.command += this._terminal.buffer.active.getLine(commandExecutedLine)?.translateToString(true, undefined, currentCommand.commandExecutedX) || '';
391
+ }
392
+ this._hooks.onCommandExecutedEmitter.fire(currentCommand);
393
+ }
394
+ }
395
+ let WindowsPtyHeuristics = class WindowsPtyHeuristics extends Disposable {
396
+ constructor(_terminal, _capability, _hooks, _logService) {
397
+ super();
398
+ this._terminal = _terminal;
399
+ this._capability = _capability;
400
+ this._hooks = _hooks;
401
+ this._logService = _logService;
402
+ this._onCursorMoveListener = this._register(( new MutableDisposable()));
403
+ this._tryAdjustCommandStartMarkerScannedLineCount = 0;
404
+ this._tryAdjustCommandStartMarkerPollCount = 0;
405
+ this._register(_terminal.parser.registerCsiHandler({ final: 'J' }, params => {
406
+ if (params.length >= 1 && (params[0] === 2 || params[0] === 3)) {
407
+ this._hooks.clearCommandsInViewport();
408
+ }
409
+ return false;
410
+ }));
411
+ this._register(this._capability.onBeforeCommandFinished(command => {
412
+ if (command.command.trim().toLowerCase() === 'clear' || command.command.trim().toLowerCase() === 'cls') {
413
+ this._tryAdjustCommandStartMarkerScheduler?.cancel();
414
+ this._tryAdjustCommandStartMarkerScheduler = undefined;
415
+ this._hooks.clearCommandsInViewport();
416
+ this._capability.currentCommand.isInvalid = true;
417
+ this._hooks.onCurrentCommandInvalidatedEmitter.fire({ reason: "windows" });
418
+ }
419
+ }));
420
+ }
421
+ preHandleResize(e) {
422
+ const baseY = this._terminal.buffer.active.baseY;
423
+ const rowsDifference = e.rows - this._hooks.dimensions.rows;
424
+ if (rowsDifference > 0) {
425
+ this._waitForCursorMove().then(() => {
426
+ const potentialShiftedLineCount = Math.min(rowsDifference, baseY);
427
+ for (let i = this._capability.commands.length - 1; i >= 0; i--) {
428
+ const command = this._capability.commands[i];
429
+ if (!command.marker || command.marker.line < baseY || command.commandStartLineContent === undefined) {
430
+ break;
431
+ }
432
+ const line = this._terminal.buffer.active.getLine(command.marker.line);
433
+ if (!line || line.translateToString(true) === command.commandStartLineContent) {
434
+ continue;
435
+ }
436
+ const shiftedY = command.marker.line - potentialShiftedLineCount;
437
+ const shiftedLine = this._terminal.buffer.active.getLine(shiftedY);
438
+ if (shiftedLine?.translateToString(true) !== command.commandStartLineContent) {
439
+ continue;
440
+ }
441
+ this._terminal._core._bufferService.buffer.lines.onDeleteEmitter.fire({
442
+ index: this._terminal.buffer.active.baseY,
443
+ amount: potentialShiftedLineCount
444
+ });
445
+ }
446
+ });
447
+ }
448
+ }
449
+ handleCommandStart() {
450
+ this._capability.currentCommand.commandStartX = this._terminal.buffer.active.cursorX;
451
+ this._hooks.commandMarkers.length = 0;
452
+ const initialCommandStartMarker = this._capability.currentCommand.commandStartMarker = (this._capability.currentCommand.promptStartMarker
453
+ ? cloneMarker(this._terminal, this._capability.currentCommand.promptStartMarker)
454
+ : this._terminal.registerMarker(0));
455
+ this._capability.currentCommand.commandStartX = 0;
456
+ this._tryAdjustCommandStartMarkerScannedLineCount = 0;
457
+ this._tryAdjustCommandStartMarkerPollCount = 0;
458
+ this._tryAdjustCommandStartMarkerScheduler = ( new RunOnceScheduler(
459
+ () => this._tryAdjustCommandStartMarker(initialCommandStartMarker),
460
+ 20
461
+ ));
462
+ this._tryAdjustCommandStartMarkerScheduler.schedule();
463
+ }
464
+ _tryAdjustCommandStartMarker(start) {
465
+ if (this._store.isDisposed) {
466
+ return;
467
+ }
468
+ const buffer = this._terminal.buffer.active;
469
+ let scannedLineCount = this._tryAdjustCommandStartMarkerScannedLineCount;
470
+ while (scannedLineCount < 10 && start.line + scannedLineCount < buffer.baseY + this._terminal.rows) {
471
+ if (this._cursorOnNextLine()) {
472
+ const prompt = this._getWindowsPrompt(start.line + scannedLineCount);
473
+ if (prompt) {
474
+ const adjustedPrompt = typeof prompt === 'string' ? prompt : prompt.prompt;
475
+ this._capability.currentCommand.commandStartMarker = this._terminal.registerMarker(0);
476
+ if (typeof prompt === 'object' && prompt.likelySingleLine) {
477
+ this._logService.debug('CommandDetectionCapability#_tryAdjustCommandStartMarker adjusted promptStart', `${this._capability.currentCommand.promptStartMarker?.line} -> ${this._capability.currentCommand.commandStartMarker.line}`);
478
+ this._capability.currentCommand.promptStartMarker?.dispose();
479
+ this._capability.currentCommand.promptStartMarker = cloneMarker(this._terminal, this._capability.currentCommand.commandStartMarker);
480
+ const lastCommand = this._capability.commands.at(-1);
481
+ if (lastCommand && this._capability.currentCommand.commandStartMarker.line !== lastCommand.endMarker?.line) {
482
+ lastCommand.endMarker?.dispose();
483
+ lastCommand.endMarker = cloneMarker(this._terminal, this._capability.currentCommand.commandStartMarker);
484
+ }
485
+ }
486
+ this._capability.currentCommand.commandStartX = adjustedPrompt.length;
487
+ this._logService.debug('CommandDetectionCapability#_tryAdjustCommandStartMarker adjusted commandStart', `${start.line} -> ${this._capability.currentCommand.commandStartMarker.line}:${this._capability.currentCommand.commandStartX}`);
488
+ this._flushPendingHandleCommandStartTask();
489
+ return;
490
+ }
491
+ }
492
+ scannedLineCount++;
493
+ }
494
+ if (scannedLineCount < 10 ) {
495
+ this._tryAdjustCommandStartMarkerScannedLineCount = scannedLineCount;
496
+ if (++this._tryAdjustCommandStartMarkerPollCount < 10 ) {
497
+ this._tryAdjustCommandStartMarkerScheduler?.schedule();
498
+ }
499
+ else {
500
+ this._flushPendingHandleCommandStartTask();
501
+ }
502
+ }
503
+ else {
504
+ this._flushPendingHandleCommandStartTask();
505
+ }
506
+ }
507
+ _flushPendingHandleCommandStartTask() {
508
+ if (this._tryAdjustCommandStartMarkerScheduler) {
509
+ this._tryAdjustCommandStartMarkerPollCount = 10 ;
510
+ this._tryAdjustCommandStartMarkerScheduler.flush();
511
+ this._tryAdjustCommandStartMarkerScheduler = undefined;
512
+ }
513
+ this._hooks.commitCommandFinished();
514
+ if (!this._capability.currentCommand.commandExecutedMarker) {
515
+ this._onCursorMoveListener.value = this._terminal.onCursorMove(() => {
516
+ if (this._hooks.commandMarkers.length === 0 || this._hooks.commandMarkers[this._hooks.commandMarkers.length - 1].line !== this._terminal.buffer.active.cursorY) {
517
+ const marker = this._terminal.registerMarker(0);
518
+ if (marker) {
519
+ this._hooks.commandMarkers.push(marker);
520
+ }
521
+ }
522
+ });
523
+ }
524
+ if (this._capability.currentCommand.commandStartMarker) {
525
+ const line = this._terminal.buffer.active.getLine(this._capability.currentCommand.commandStartMarker.line);
526
+ if (line) {
527
+ this._capability.currentCommand.commandStartLineContent = line.translateToString(true);
528
+ }
529
+ }
530
+ this._hooks.onCommandStartedEmitter.fire({ marker: this._capability.currentCommand.commandStartMarker });
531
+ this._logService.debug('CommandDetectionCapability#_handleCommandStartWindows', this._capability.currentCommand.commandStartX, this._capability.currentCommand.commandStartMarker?.line);
532
+ }
533
+ handleCommandExecuted(options) {
534
+ if (this._tryAdjustCommandStartMarkerScheduler) {
535
+ this._flushPendingHandleCommandStartTask();
536
+ }
537
+ this._onCursorMoveListener.clear();
538
+ this._evaluateCommandMarkers();
539
+ this._capability.currentCommand.commandExecutedX = this._terminal.buffer.active.cursorX;
540
+ this._hooks.onCommandExecutedEmitter.fire(this._capability.currentCommand);
541
+ this._logService.debug('CommandDetectionCapability#handleCommandExecuted', this._capability.currentCommand.commandExecutedX, this._capability.currentCommand.commandExecutedMarker?.line);
542
+ }
543
+ preHandleCommandFinished() {
544
+ if (this._capability.currentCommand.commandExecutedMarker) {
545
+ return;
546
+ }
547
+ if (this._hooks.commandMarkers.length === 0) {
548
+ if (!this._capability.currentCommand.commandStartMarker) {
549
+ this._capability.currentCommand.commandStartMarker = this._terminal.registerMarker(0);
550
+ }
551
+ if (this._capability.currentCommand.commandStartMarker) {
552
+ this._hooks.commandMarkers.push(this._capability.currentCommand.commandStartMarker);
553
+ }
554
+ }
555
+ this._evaluateCommandMarkers();
556
+ }
557
+ postHandleCommandFinished() {
558
+ const currentCommand = this._capability.currentCommand;
559
+ const commandText = currentCommand.command;
560
+ const commandLine = currentCommand.commandStartMarker?.line;
561
+ const executedLine = currentCommand.commandExecutedMarker?.line;
562
+ if (!commandText || commandText.length === 0 ||
563
+ commandLine === undefined || commandLine === -1 ||
564
+ executedLine === undefined || executedLine === -1) {
565
+ return;
566
+ }
567
+ let current = 0;
568
+ let found = false;
569
+ for (let i = commandLine; i <= executedLine; i++) {
570
+ const line = this._terminal.buffer.active.getLine(i);
571
+ if (!line) {
572
+ break;
573
+ }
574
+ const text = line.translateToString(true);
575
+ for (let j = 0; j < text.length; j++) {
576
+ while (commandText.length < current && commandText[current] === ' ') {
577
+ current++;
578
+ }
579
+ if (text[j] === commandText[current]) {
580
+ current++;
581
+ }
582
+ if (current === commandText.length) {
583
+ const wrapsToNextLine = j >= this._terminal.cols - 1;
584
+ currentCommand.commandExecutedMarker = this._terminal.registerMarker(i - (this._terminal.buffer.active.baseY + this._terminal.buffer.active.cursorY) + (wrapsToNextLine ? 1 : 0));
585
+ currentCommand.commandExecutedX = wrapsToNextLine ? 0 : j + 1;
586
+ found = true;
587
+ break;
588
+ }
589
+ }
590
+ if (found) {
591
+ break;
592
+ }
593
+ }
594
+ }
595
+ _evaluateCommandMarkers() {
596
+ if (this._hooks.commandMarkers.length === 0) {
597
+ return;
598
+ }
599
+ this._hooks.commandMarkers = this._hooks.commandMarkers.sort((a, b) => a.line - b.line);
600
+ this._capability.currentCommand.commandStartMarker = this._hooks.commandMarkers[0];
601
+ if (this._capability.currentCommand.commandStartMarker) {
602
+ const line = this._terminal.buffer.active.getLine(this._capability.currentCommand.commandStartMarker.line);
603
+ if (line) {
604
+ this._capability.currentCommand.commandStartLineContent = line.translateToString(true);
605
+ }
606
+ }
607
+ this._capability.currentCommand.commandExecutedMarker = this._hooks.commandMarkers[this._hooks.commandMarkers.length - 1];
608
+ this._hooks.onCommandExecutedEmitter.fire(this._capability.currentCommand);
609
+ }
610
+ _cursorOnNextLine() {
611
+ const lastCommand = this._capability.commands.at(-1);
612
+ if (!lastCommand) {
613
+ return true;
614
+ }
615
+ const cursorYAbsolute = this._terminal.buffer.active.baseY + this._terminal.buffer.active.cursorY;
616
+ const lastCommandYAbsolute = (lastCommand.endMarker ? lastCommand.endMarker.line : lastCommand.marker?.line) ?? -1;
617
+ return cursorYAbsolute > lastCommandYAbsolute;
618
+ }
619
+ _waitForCursorMove() {
620
+ const cursorX = this._terminal.buffer.active.cursorX;
621
+ const cursorY = this._terminal.buffer.active.cursorY;
622
+ let totalDelay = 0;
623
+ return ( new Promise((resolve, reject) => {
624
+ const interval = setInterval(() => {
625
+ if (cursorX !== this._terminal.buffer.active.cursorX || cursorY !== this._terminal.buffer.active.cursorY) {
626
+ resolve();
627
+ clearInterval(interval);
628
+ return;
629
+ }
630
+ totalDelay += 10;
631
+ if (totalDelay > 1000) {
632
+ clearInterval(interval);
633
+ resolve();
634
+ }
635
+ }, 10);
636
+ }));
637
+ }
638
+ _getWindowsPrompt(y = this._terminal.buffer.active.baseY + this._terminal.buffer.active.cursorY) {
639
+ const line = this._terminal.buffer.active.getLine(y);
640
+ if (!line) {
641
+ return;
642
+ }
643
+ const lineText = line.translateToString(true);
644
+ if (!lineText) {
645
+ return;
646
+ }
647
+ const pwshPrompt = lineText.match(/(?<prompt>(\(.+\)\s)?(?:PS.+>\s?))/)?.groups?.prompt;
648
+ if (pwshPrompt) {
649
+ const adjustedPrompt = this._adjustPrompt(pwshPrompt, lineText, '>');
650
+ if (adjustedPrompt) {
651
+ return {
652
+ prompt: adjustedPrompt,
653
+ likelySingleLine: true
654
+ };
655
+ }
656
+ }
657
+ const customPrompt = lineText.match(/.*\u276f(?=[^\u276f]*$)/g)?.[0];
658
+ if (customPrompt) {
659
+ const adjustedPrompt = this._adjustPrompt(customPrompt, lineText, '\u276f');
660
+ if (adjustedPrompt) {
661
+ return adjustedPrompt;
662
+ }
663
+ }
664
+ const bashPrompt = lineText.match(/^(?<prompt>\$)/)?.groups?.prompt;
665
+ if (bashPrompt) {
666
+ const adjustedPrompt = this._adjustPrompt(bashPrompt, lineText, '$');
667
+ if (adjustedPrompt) {
668
+ return adjustedPrompt;
669
+ }
670
+ }
671
+ const pythonPrompt = lineText.match(/^(?<prompt>>>> )/g)?.groups?.prompt;
672
+ if (pythonPrompt) {
673
+ return {
674
+ prompt: pythonPrompt,
675
+ likelySingleLine: true
676
+ };
677
+ }
678
+ if (this._capability.promptTerminator && lineText.trim().endsWith(this._capability.promptTerminator)) {
679
+ const adjustedPrompt = this._adjustPrompt(lineText, lineText, this._capability.promptTerminator);
680
+ if (adjustedPrompt) {
681
+ return adjustedPrompt;
682
+ }
683
+ }
684
+ const cmdMatch = lineText.match(/^(?<prompt>(\(.+\)\s)?(?:[A-Z]:\\.*>))/);
685
+ return cmdMatch?.groups?.prompt ? {
686
+ prompt: cmdMatch.groups.prompt,
687
+ likelySingleLine: true
688
+ } : undefined;
689
+ }
690
+ _adjustPrompt(prompt, lineText, char) {
691
+ if (!prompt) {
692
+ return;
693
+ }
694
+ if (lineText === prompt && prompt.endsWith(char)) {
695
+ prompt += ' ';
696
+ }
697
+ return prompt;
698
+ }
699
+ };
700
+ WindowsPtyHeuristics = ( __decorate([
701
+ ( __param(3, ILogService))
702
+ ], WindowsPtyHeuristics));
703
+ function getLinesForCommand(buffer, command, cols, outputMatcher) {
704
+ if (!outputMatcher) {
705
+ return undefined;
706
+ }
707
+ const executedMarker = command.executedMarker;
708
+ const endMarker = command.endMarker;
709
+ if (!executedMarker || !endMarker) {
710
+ return undefined;
711
+ }
712
+ const startLine = executedMarker.line;
713
+ const endLine = endMarker.line;
714
+ const linesToCheck = outputMatcher.length;
715
+ const lines = [];
716
+ if (outputMatcher.anchor === 'bottom') {
717
+ for (let i = endLine - (outputMatcher.offset || 0); i >= startLine; i--) {
718
+ let wrappedLineStart = i;
719
+ const wrappedLineEnd = i;
720
+ while (wrappedLineStart >= startLine && buffer.getLine(wrappedLineStart)?.isWrapped) {
721
+ wrappedLineStart--;
722
+ }
723
+ i = wrappedLineStart;
724
+ lines.unshift(getXtermLineContent(buffer, wrappedLineStart, wrappedLineEnd, cols));
725
+ if (lines.length > linesToCheck) {
726
+ lines.pop();
727
+ }
728
+ }
729
+ }
730
+ else {
731
+ for (let i = startLine + (outputMatcher.offset || 0); i < endLine; i++) {
732
+ const wrappedLineStart = i;
733
+ let wrappedLineEnd = i;
734
+ while (wrappedLineEnd + 1 < endLine && buffer.getLine(wrappedLineEnd + 1)?.isWrapped) {
735
+ wrappedLineEnd++;
736
+ }
737
+ i = wrappedLineEnd;
738
+ lines.push(getXtermLineContent(buffer, wrappedLineStart, wrappedLineEnd, cols));
739
+ if (lines.length === linesToCheck) {
740
+ lines.shift();
741
+ }
742
+ }
743
+ }
744
+ return lines;
745
+ }
746
+ function getXtermLineContent(buffer, lineStart, lineEnd, cols) {
747
+ const maxLineLength = Math.max(2048 / cols * 2);
748
+ lineEnd = Math.min(lineEnd, lineStart + maxLineLength);
749
+ let content = '';
750
+ for (let i = lineStart; i <= lineEnd; i++) {
751
+ const line = buffer.getLine(i);
752
+ if (line) {
753
+ content += line.translateToString(true, 0, cols);
754
+ }
755
+ }
756
+ return content;
757
+ }
758
+ function cloneMarker(xterm, marker, offset = 0) {
759
+ return xterm.registerMarker(marker.line - (xterm.buffer.active.baseY + xterm.buffer.active.cursorY) + offset);
760
+ }
761
+ export { CommandDetectionCapability, getLinesForCommand };