@codingame/monaco-vscode-api 4.4.1 → 4.5.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 (1116) hide show
  1. package/README.md +2 -8
  2. package/extensions.js +4 -4
  3. package/lifecycle.js +2 -2
  4. package/localExtensionHost.js +9 -8
  5. package/missing-services.js +200 -194
  6. package/monaco.d.ts +1 -1
  7. package/monaco.js +8 -8
  8. package/package.json +8 -8
  9. package/service-override/tools/editor.d.ts +13 -13
  10. package/service-override/tools/editor.js +10 -10
  11. package/service-override/tools/views.js +6 -6
  12. package/services.d.ts +69 -58
  13. package/services.js +62 -59
  14. package/tools/l10n.js +2 -2
  15. package/vscode/src/vs/base/common/labels.js +2 -2
  16. package/vscode/src/vs/base/common/worker/simpleWorker.js +2 -6
  17. package/vscode/src/vs/editor/browser/config/editorConfiguration.js +1 -1
  18. package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +1 -1
  19. package/vscode/src/vs/editor/browser/controller/textAreaInput.js +2 -2
  20. package/vscode/src/vs/editor/browser/editorExtensions.d.ts +1 -1
  21. package/vscode/src/vs/editor/browser/editorExtensions.js +4 -3
  22. package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +1 -1
  23. package/vscode/src/vs/editor/browser/services/editorWorkerService.js +1 -1
  24. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +6 -5
  25. package/vscode/src/vs/editor/browser/services/hoverService/hoverService.js +5 -5
  26. package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +4 -4
  27. package/vscode/src/vs/editor/browser/services/openerService.js +1 -1
  28. package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +9 -6
  29. package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +5 -5
  30. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +1 -1
  31. package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +2 -1
  32. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
  33. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +2 -2
  34. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.js +1 -1
  35. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +4 -3
  36. package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +1 -1
  37. package/vscode/src/vs/editor/browser/widget/diffEditor/embeddedDiffEditorWidget.js +3 -3
  38. package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +3 -2
  39. package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
  40. package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +1 -1
  41. package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
  42. package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +1 -1
  43. package/vscode/src/vs/editor/common/languages/nullTokenize.js +1 -1
  44. package/vscode/src/vs/editor/common/model/textModel.js +1 -1
  45. package/vscode/src/vs/editor/common/services/languageFeatureDebounce.js +2 -2
  46. package/vscode/src/vs/editor/common/services/markerDecorationsService.js +2 -1
  47. package/vscode/src/vs/editor/common/services/modelService.js +2 -2
  48. package/vscode/src/vs/editor/common/services/semanticTokensProviderStyling.js +3 -2
  49. package/vscode/src/vs/editor/common/services/semanticTokensStylingService.js +2 -2
  50. package/vscode/src/vs/editor/common/standaloneStrings.js +17 -1
  51. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +2 -1
  52. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +1 -1
  53. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +4 -3
  54. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +5 -5
  55. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionKeybindingResolver.js +1 -1
  56. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +2 -2
  57. package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +2 -1
  58. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +3 -3
  59. package/vscode/src/vs/editor/contrib/colorPicker/browser/color.js +1 -1
  60. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +1 -1
  61. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js +1 -1
  62. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +2 -2
  63. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +8 -6
  64. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +3 -3
  65. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +1 -1
  66. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +1 -1
  67. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +3 -3
  68. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +2 -1
  69. package/vscode/src/vs/editor/contrib/find/browser/findController.js +13 -9
  70. package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +2 -2
  71. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +4 -3
  72. package/vscode/src/vs/editor/contrib/format/browser/format.js +3 -2
  73. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +6 -3
  74. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +2 -1
  75. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +6 -5
  76. package/vscode/src/vs/editor/contrib/gotoError/browser/markerNavigationService.js +3 -2
  77. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +4 -3
  78. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  79. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +7 -5
  80. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +2 -2
  81. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +4 -4
  82. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +4 -3
  83. package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +4 -4
  84. package/vscode/src/vs/editor/contrib/hover/browser/hover.js +2 -2
  85. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +2 -2
  86. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +1 -1
  87. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +1 -1
  88. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +6 -3
  89. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +2 -2
  90. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js +7 -5
  91. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +1 -1
  92. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +3 -3
  93. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +6 -5
  94. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +7 -6
  95. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +1 -1
  96. package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +1 -1
  97. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -3
  98. package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +6 -5
  99. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +1 -1
  100. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -1
  101. package/vscode/src/vs/editor/contrib/links/browser/links.js +2 -2
  102. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +3 -2
  103. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +2 -2
  104. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +2 -1
  105. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +4 -4
  106. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +5 -4
  107. package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +2 -2
  108. package/vscode/src/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js +2 -2
  109. package/vscode/src/vs/editor/contrib/semanticTokens/common/getSemanticTokens.js +2 -1
  110. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +3 -2
  111. package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +2 -2
  112. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +1 -1
  113. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +2 -2
  114. package/vscode/src/vs/editor/contrib/suggest/browser/suggestAlternatives.js +2 -1
  115. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +6 -4
  116. package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +1 -1
  117. package/vscode/src/vs/editor/contrib/suggest/browser/suggestMemory.js +3 -2
  118. package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +6 -6
  119. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +3 -3
  120. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +1 -1
  121. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +3 -2
  122. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +2 -1
  123. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +4 -4
  124. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +1 -2
  125. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -2
  126. package/vscode/src/vs/editor/editor.api.d.ts +80 -22
  127. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +3 -3
  128. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +13 -11
  129. package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditorService.js +2 -2
  130. package/vscode/src/vs/editor/standalone/browser/standaloneLayoutService.js +1 -1
  131. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +31 -26
  132. package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +3 -3
  133. package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -17
  134. package/vscode/src/vs/platform/accessibility/common/accessibility.js +1 -3
  135. package/vscode/src/vs/platform/accessibility/common/accessibility.service.d.ts +19 -0
  136. package/vscode/src/vs/platform/accessibility/common/accessibility.service.js +3 -0
  137. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +1 -20
  138. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +4 -6
  139. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +22 -0
  140. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.js +3 -0
  141. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +2 -2
  142. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +3 -2
  143. package/vscode/src/vs/platform/actions/browser/buttonbar.js +6 -5
  144. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +5 -5
  145. package/vscode/src/vs/platform/actions/browser/floatingMenu.js +2 -2
  146. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +9 -8
  147. package/vscode/src/vs/platform/actions/browser/toolbar.js +6 -5
  148. package/vscode/src/vs/platform/actions/common/actions.d.ts +8 -24
  149. package/vscode/src/vs/platform/actions/common/actions.js +5 -5
  150. package/vscode/src/vs/platform/actions/common/actions.service.d.ts +25 -0
  151. package/vscode/src/vs/platform/actions/common/actions.service.js +3 -0
  152. package/vscode/src/vs/platform/actions/common/menuService.js +3 -3
  153. package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +2 -2
  154. package/vscode/src/vs/platform/clipboard/common/{clipboardService.d.ts → clipboardService.service.d.ts} +14 -14
  155. package/vscode/src/vs/platform/commands/common/commands.d.ts +2 -10
  156. package/vscode/src/vs/platform/commands/common/commands.js +2 -3
  157. package/vscode/src/vs/platform/commands/common/commands.service.d.ts +13 -0
  158. package/vscode/src/vs/platform/commands/common/commands.service.js +3 -0
  159. package/vscode/src/vs/platform/configuration/common/configuration.d.ts +10 -57
  160. package/vscode/src/vs/platform/configuration/common/configuration.js +1 -3
  161. package/vscode/src/vs/platform/configuration/common/configuration.service.d.ts +56 -0
  162. package/vscode/src/vs/platform/configuration/common/configuration.service.js +3 -0
  163. package/vscode/src/vs/platform/configuration/common/configurations.js +2 -2
  164. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +3 -2
  165. package/vscode/src/vs/platform/contextkey/common/contextkey.d.ts +2 -16
  166. package/vscode/src/vs/platform/contextkey/common/contextkey.js +1 -3
  167. package/vscode/src/vs/platform/contextkey/common/contextkey.service.d.ts +22 -0
  168. package/vscode/src/vs/platform/contextkey/common/contextkey.service.js +3 -0
  169. package/vscode/src/vs/platform/contextview/browser/contextMenuService.js +7 -6
  170. package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +3 -21
  171. package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +25 -0
  172. package/vscode/src/vs/platform/contextview/browser/contextViewService.js +1 -1
  173. package/vscode/src/vs/platform/diagnostics/common/diagnostics.js +1 -3
  174. package/vscode/src/vs/platform/diagnostics/common/diagnostics.service.js +4 -0
  175. package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +1 -121
  176. package/vscode/src/vs/platform/dialogs/common/dialogs.js +7 -4
  177. package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +125 -0
  178. package/vscode/src/vs/platform/dialogs/common/dialogs.service.js +4 -0
  179. package/vscode/src/vs/platform/dnd/browser/dnd.js +3 -3
  180. package/vscode/src/vs/platform/environment/common/environment.d.ts +1 -41
  181. package/vscode/src/vs/platform/environment/common/environment.service.d.ts +45 -0
  182. package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +3 -2
  183. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -33
  184. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +1 -6
  185. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +37 -0
  186. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.js +6 -0
  187. package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.js +4 -6
  188. package/vscode/src/vs/platform/extensionManagement/common/extensionStorage.service.js +3 -0
  189. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.service.js +3 -0
  190. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.service.js +3 -0
  191. package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.service.js +3 -0
  192. package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +1 -3
  193. package/vscode/src/vs/platform/extensionResourceLoader/common/{extensionResourceLoader.d.ts → extensionResourceLoader.service.d.ts} +10 -10
  194. package/vscode/src/vs/platform/extensionResourceLoader/common/extensionResourceLoader.service.js +3 -0
  195. package/vscode/src/vs/platform/extensions/common/extensions.js +1 -3
  196. package/vscode/src/vs/platform/extensions/common/extensions.service.js +3 -0
  197. package/vscode/src/vs/platform/files/common/files.d.ts +2 -211
  198. package/vscode/src/vs/platform/files/common/files.js +1 -3
  199. package/vscode/src/vs/platform/files/common/files.service.d.ts +218 -0
  200. package/vscode/src/vs/platform/files/common/files.service.js +3 -0
  201. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +2 -1
  202. package/vscode/src/vs/platform/hover/browser/hover.d.ts +1 -35
  203. package/vscode/src/vs/platform/hover/browser/hover.js +3 -4
  204. package/vscode/src/vs/platform/hover/browser/hover.service.d.ts +38 -0
  205. package/vscode/src/vs/platform/hover/browser/hover.service.js +3 -0
  206. package/vscode/src/vs/platform/keybinding/common/keybinding.d.ts +1 -57
  207. package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +62 -0
  208. package/vscode/src/vs/platform/keybinding/common/keybindingResolver.d.ts +2 -1
  209. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +1 -3
  210. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.service.js +3 -0
  211. package/vscode/src/vs/platform/label/common/label.d.ts +1 -37
  212. package/vscode/src/vs/platform/label/common/label.service.d.ts +39 -0
  213. package/vscode/src/vs/platform/languagePacks/common/languagePacks.d.ts +1 -10
  214. package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +2 -4
  215. package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +13 -0
  216. package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.js +3 -0
  217. package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +1 -83
  218. package/vscode/src/vs/platform/layout/browser/layoutService.service.d.ts +84 -0
  219. package/vscode/src/vs/platform/list/browser/listService.js +8 -7
  220. package/vscode/src/vs/platform/list/browser/listService.service.js +3 -0
  221. package/vscode/src/vs/platform/log/common/log.d.ts +1 -77
  222. package/vscode/src/vs/platform/log/common/log.js +1 -4
  223. package/vscode/src/vs/platform/log/common/log.service.d.ts +87 -0
  224. package/vscode/src/vs/platform/log/common/log.service.js +4 -0
  225. package/vscode/src/vs/platform/markers/common/markers.d.ts +1 -19
  226. package/vscode/src/vs/platform/markers/common/markers.js +1 -3
  227. package/vscode/src/vs/platform/markers/common/markers.service.d.ts +22 -0
  228. package/vscode/src/vs/platform/markers/common/markers.service.js +3 -0
  229. package/vscode/src/vs/platform/notification/common/notification.d.ts +2 -91
  230. package/vscode/src/vs/platform/notification/common/notification.js +2 -5
  231. package/vscode/src/vs/platform/notification/common/notification.service.d.ts +94 -0
  232. package/vscode/src/vs/platform/notification/common/notification.service.js +3 -0
  233. package/vscode/src/vs/platform/opener/browser/link.js +1 -1
  234. package/vscode/src/vs/platform/opener/common/opener.d.ts +1 -41
  235. package/vscode/src/vs/platform/opener/common/opener.js +1 -3
  236. package/vscode/src/vs/platform/opener/common/opener.service.d.ts +45 -0
  237. package/vscode/src/vs/platform/opener/common/opener.service.js +3 -0
  238. package/vscode/src/vs/platform/policy/common/policy.js +1 -3
  239. package/vscode/src/vs/platform/policy/common/policy.service.js +3 -0
  240. package/vscode/src/vs/platform/product/common/productService.js +1 -3
  241. package/vscode/src/vs/platform/product/common/productService.service.js +3 -0
  242. package/vscode/src/vs/platform/progress/common/progress.js +2 -4
  243. package/vscode/src/vs/platform/progress/common/progress.service.js +4 -0
  244. package/vscode/src/vs/platform/quickinput/browser/quickAccess.js +2 -1
  245. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +3 -2
  246. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +1 -1
  247. package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +7 -5
  248. package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
  249. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +13 -81
  250. package/vscode/src/vs/platform/quickinput/common/quickInput.js +1 -3
  251. package/vscode/src/vs/platform/quickinput/common/quickInput.service.d.ts +82 -0
  252. package/vscode/src/vs/platform/quickinput/common/quickInput.service.js +3 -0
  253. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +1 -26
  254. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.js +1 -3
  255. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.service.d.ts +27 -0
  256. package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.service.js +3 -0
  257. package/vscode/src/vs/platform/remote/common/{remoteExtensionsScanner.js → remoteExtensionsScanner.service.js} +1 -2
  258. package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.d.ts +2 -16
  259. package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.service.d.ts +20 -0
  260. package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.service.js +3 -0
  261. package/vscode/src/vs/platform/request/common/request.js +1 -3
  262. package/vscode/src/vs/platform/request/common/request.service.js +3 -0
  263. package/vscode/src/vs/platform/secrets/common/secrets.d.ts +1 -10
  264. package/vscode/src/vs/platform/secrets/common/secrets.service.d.ts +11 -0
  265. package/vscode/src/vs/platform/secrets/common/secrets.service.js +3 -0
  266. package/vscode/src/vs/platform/sign/common/sign.js +1 -3
  267. package/vscode/src/vs/platform/sign/common/sign.service.js +4 -0
  268. package/vscode/src/vs/platform/storage/common/storage.d.ts +3 -151
  269. package/vscode/src/vs/platform/storage/common/storage.js +1 -3
  270. package/vscode/src/vs/platform/storage/common/storage.service.d.ts +158 -0
  271. package/vscode/src/vs/platform/storage/common/storage.service.js +3 -0
  272. package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +1 -34
  273. package/vscode/src/vs/platform/telemetry/common/telemetry.js +1 -4
  274. package/vscode/src/vs/platform/telemetry/common/telemetry.service.d.ts +35 -0
  275. package/vscode/src/vs/platform/telemetry/common/telemetry.service.js +4 -0
  276. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +1 -12
  277. package/vscode/src/vs/platform/terminal/common/terminal.js +1 -3
  278. package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +14 -0
  279. package/vscode/src/vs/platform/terminal/common/terminal.service.js +3 -0
  280. package/vscode/src/vs/platform/theme/common/themeService.d.ts +2 -14
  281. package/vscode/src/vs/platform/theme/common/themeService.js +1 -3
  282. package/vscode/src/vs/platform/theme/common/themeService.service.d.ts +16 -0
  283. package/vscode/src/vs/platform/theme/common/themeService.service.js +3 -0
  284. package/vscode/src/vs/platform/tunnel/common/tunnel.d.ts +1 -31
  285. package/vscode/src/vs/platform/tunnel/common/tunnel.js +3 -5
  286. package/vscode/src/vs/platform/tunnel/common/tunnel.service.d.ts +34 -0
  287. package/vscode/src/vs/platform/tunnel/common/tunnel.service.js +3 -0
  288. package/vscode/src/vs/platform/undoRedo/common/undoRedo.js +1 -3
  289. package/vscode/src/vs/platform/undoRedo/common/undoRedo.service.js +3 -0
  290. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +4 -4
  291. package/vscode/src/vs/platform/update/common/update.js +1 -3
  292. package/vscode/src/vs/platform/update/common/update.service.js +3 -0
  293. package/vscode/src/vs/platform/uriIdentity/common/uriIdentity.service.d.ts +38 -0
  294. package/vscode/src/vs/platform/uriIdentity/common/uriIdentityService.js +1 -1
  295. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +1 -23
  296. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +6 -7
  297. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.service.d.ts +27 -0
  298. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.service.js +3 -0
  299. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +11 -9
  300. package/vscode/src/vs/platform/userDataSync/common/ignoredExtensions.service.js +3 -0
  301. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +1 -11
  302. package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.js +11 -0
  303. package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.service.js +3 -0
  304. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +6 -8
  305. package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.service.js +3 -0
  306. package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +9 -7
  307. package/vscode/src/vs/platform/workspace/common/editSessions.js +1 -3
  308. package/vscode/src/vs/platform/workspace/common/editSessions.service.js +3 -0
  309. package/vscode/src/vs/platform/workspace/common/workspace.d.ts +1 -53
  310. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -3
  311. package/vscode/src/vs/platform/workspace/common/workspace.service.d.ts +57 -0
  312. package/vscode/src/vs/platform/workspace/common/workspace.service.js +3 -0
  313. package/vscode/src/vs/platform/workspace/common/workspaceTrust.d.ts +1 -42
  314. package/vscode/src/vs/platform/workspace/common/workspaceTrust.service.d.ts +46 -0
  315. package/vscode/src/vs/platform/workspace/common/workspaceTrust.service.js +5 -0
  316. package/vscode/src/vs/platform/workspaces/common/workspaces.js +1 -3
  317. package/vscode/src/vs/platform/workspaces/common/workspaces.service.js +3 -0
  318. package/vscode/src/vs/workbench/api/browser/statusBarService.js +1 -1
  319. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +2 -1
  320. package/vscode/src/vs/workbench/api/common/extHost.common.services.js +1 -1
  321. package/vscode/src/vs/workbench/api/common/extHostApiDeprecationService.js +1 -1
  322. package/vscode/src/vs/workbench/api/common/extHostCommands.js +1 -1
  323. package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +1 -1
  324. package/vscode/src/vs/workbench/api/common/extHostDecorations.js +1 -1
  325. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  326. package/vscode/src/vs/workbench/api/common/extHostDocumentsAndEditors.js +1 -1
  327. package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +1 -1
  328. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +1 -1
  329. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
  330. package/vscode/src/vs/workbench/api/common/extHostLocalizationService.js +1 -1
  331. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  332. package/vscode/src/vs/workbench/api/common/extHostMessageService.js +1 -1
  333. package/vscode/src/vs/workbench/api/common/extHostNotebookEditors.js +1 -1
  334. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +1 -1
  335. package/vscode/src/vs/workbench/api/common/extHostOutput.js +2 -1
  336. package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.js +1 -1
  337. package/vscode/src/vs/workbench/api/common/extHostSCM.js +1 -1
  338. package/vscode/src/vs/workbench/api/common/extHostSearch.js +1 -1
  339. package/vscode/src/vs/workbench/api/common/extHostStoragePaths.js +1 -1
  340. package/vscode/src/vs/workbench/api/common/extHostTask.js +1 -1
  341. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -1
  342. package/vscode/src/vs/workbench/api/common/extHostTesting.js +1 -1
  343. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +1 -1
  344. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +4 -3
  345. package/vscode/src/vs/workbench/api/common/extensionHostMain.js +1 -1
  346. package/vscode/src/vs/workbench/browser/actions/developerActions.js +15 -15
  347. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +13 -11
  348. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +3 -3
  349. package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +2 -1
  350. package/vscode/src/vs/workbench/browser/actions/windowActions.js +9 -9
  351. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +9 -9
  352. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +10 -9
  353. package/vscode/src/vs/workbench/browser/actions.d.ts +3 -2
  354. package/vscode/src/vs/workbench/browser/actions.js +3 -2
  355. package/vscode/src/vs/workbench/browser/codeeditor.js +5 -4
  356. package/vscode/src/vs/workbench/browser/composite.d.ts +3 -3
  357. package/vscode/src/vs/workbench/browser/dnd.js +9 -8
  358. package/vscode/src/vs/workbench/browser/editor.js +3 -3
  359. package/vscode/src/vs/workbench/browser/labels.js +7 -7
  360. package/vscode/src/vs/workbench/browser/panecomposite.d.ts +6 -6
  361. package/vscode/src/vs/workbench/browser/panecomposite.js +6 -6
  362. package/vscode/src/vs/workbench/browser/part.d.ts +4 -3
  363. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +2 -2
  364. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +6 -6
  365. package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +6 -6
  366. package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +1 -1
  367. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +2 -3
  368. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.js +3 -0
  369. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +15 -10
  370. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +3 -3
  371. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +8 -5
  372. package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +2 -2
  373. package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +1 -1
  374. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +15 -14
  375. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +8 -8
  376. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +14 -11
  377. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +16 -15
  378. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +5 -4
  379. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +6 -5
  380. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +7 -7
  381. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +8 -8
  382. package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +2 -2
  383. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +17 -13
  384. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +9 -8
  385. package/vscode/src/vs/workbench/browser/parts/editor/editorTitleControl.js +2 -1
  386. package/vscode/src/vs/workbench/browser/parts/editor/editorWithViewState.js +5 -5
  387. package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +2 -2
  388. package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +11 -10
  389. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +6 -6
  390. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
  391. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +9 -8
  392. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +6 -6
  393. package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +6 -6
  394. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +20 -18
  395. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +2 -2
  396. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +5 -4
  397. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +11 -8
  398. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +8 -5
  399. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +3 -3
  400. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +3 -2
  401. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsTelemetry.js +3 -2
  402. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +13 -11
  403. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +9 -7
  404. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +7 -5
  405. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +20 -16
  406. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +9 -9
  407. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +25 -18
  408. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.d.ts +3 -3
  409. package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +4 -3
  410. package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +9 -8
  411. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +10 -9
  412. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.d.ts +10 -9
  413. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +15 -12
  414. package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.js +9 -9
  415. package/vscode/src/vs/workbench/browser/quickaccess.js +4 -4
  416. package/vscode/src/vs/workbench/common/component.d.ts +4 -2
  417. package/vscode/src/vs/workbench/common/configuration.js +3 -3
  418. package/vscode/src/vs/workbench/common/contextkeys.js +3 -2
  419. package/vscode/src/vs/workbench/common/contributions.js +4 -4
  420. package/vscode/src/vs/workbench/common/editor/binaryEditorModel.js +1 -1
  421. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  422. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +1 -1
  423. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +5 -4
  424. package/vscode/src/vs/workbench/common/editor/resourceEditorInput.js +5 -4
  425. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  426. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +3 -2
  427. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +7 -6
  428. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +6 -6
  429. package/vscode/src/vs/workbench/common/editor/textResourceEditorModel.js +2 -2
  430. package/vscode/src/vs/workbench/common/editor.d.ts +1 -1
  431. package/vscode/src/vs/workbench/common/notifications.js +5 -4
  432. package/vscode/src/vs/workbench/common/resources.js +2 -2
  433. package/vscode/src/vs/workbench/common/views.d.ts +2 -50
  434. package/vscode/src/vs/workbench/common/views.js +1 -3
  435. package/vscode/src/vs/workbench/common/views.service.d.ts +53 -0
  436. package/vscode/src/vs/workbench/common/views.service.js +3 -0
  437. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +2 -1
  438. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +8 -6
  439. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.service.js +3 -0
  440. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +1 -1
  441. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +4 -4
  442. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +1 -0
  443. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +3 -2
  444. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +7 -5
  445. package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +6 -5
  446. package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +2 -2
  447. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +3 -3
  448. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +8 -8
  449. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +2 -2
  450. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +1 -1
  451. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +1 -6
  452. package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.js +6 -0
  453. package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +1 -1
  454. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +1 -1
  455. package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +3 -2
  456. package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +12 -10
  457. package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +7 -7
  458. package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +3 -3
  459. package/vscode/src/vs/workbench/contrib/chat/browser/chatOptions.js +3 -3
  460. package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +10 -10
  461. package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +3 -3
  462. package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +4 -4
  463. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +3 -4
  464. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js +3 -0
  465. package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +3 -2
  466. package/vscode/src/vs/workbench/contrib/chat/common/chatRequestParser.js +4 -3
  467. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +1 -3
  468. package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.js +3 -0
  469. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.js +3 -0
  470. package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +1 -1
  471. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.js +3 -0
  472. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.js +3 -0
  473. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +1 -1
  474. package/vscode/src/vs/workbench/contrib/codeActions/browser/documentationContribution.js +2 -1
  475. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +5 -3
  476. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +10 -7
  477. package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu.js +4 -3
  478. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +5 -3
  479. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -5
  480. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +2 -2
  481. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +2 -2
  482. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +1 -1
  483. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -2
  484. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +1 -1
  485. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +1 -1
  486. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +3 -2
  487. package/vscode/src/vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch.js +4 -4
  488. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +7 -7
  489. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
  490. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.js +3 -0
  491. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadAdditionalActions.js +1 -1
  492. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +2 -2
  493. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -4
  494. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +4 -4
  495. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +2 -2
  496. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +10 -9
  497. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +11 -9
  498. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +13 -12
  499. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +4 -4
  500. package/vscode/src/vs/workbench/contrib/contextmenu/browser/contextmenu.contribution.js +2 -2
  501. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +13 -13
  502. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.service.js +3 -0
  503. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +3 -3
  504. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +7 -7
  505. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +10 -9
  506. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.service.js +3 -0
  507. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +19 -15
  508. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +3 -3
  509. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +3 -193
  510. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +1 -3
  511. package/vscode/src/vs/workbench/contrib/debug/common/debug.service.d.ts +198 -0
  512. package/vscode/src/vs/workbench/contrib/debug/common/debug.service.js +3 -0
  513. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +3 -3
  514. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.d.ts +3 -3
  515. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.service.js +3 -0
  516. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.service.js +4 -0
  517. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +51 -44
  518. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +2 -3
  519. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.js +3 -0
  520. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +8 -6
  521. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +6 -8
  522. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.service.js +3 -0
  523. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +4 -4
  524. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +3 -3
  525. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +7 -7
  526. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +17 -16
  527. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +6 -6
  528. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +13 -10
  529. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +13 -11
  530. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +30 -26
  531. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.save.js +8 -6
  532. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +17 -14
  533. package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +1 -38
  534. package/vscode/src/vs/workbench/contrib/files/browser/files.editorPane.contribution.js +1 -1
  535. package/vscode/src/vs/workbench/contrib/files/browser/files.js +1 -3
  536. package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +43 -0
  537. package/vscode/src/vs/workbench/contrib/files/browser/files.service.js +3 -0
  538. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +11 -10
  539. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +2 -2
  540. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +24 -22
  541. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +23 -19
  542. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +13 -12
  543. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +11 -9
  544. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +4 -3
  545. package/vscode/src/vs/workbench/contrib/files/common/explorerModel.d.ts +4 -3
  546. package/vscode/src/vs/workbench/contrib/files/common/files.js +2 -2
  547. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +2 -2
  548. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +14 -12
  549. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -5
  550. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  551. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -2
  552. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +7 -6
  553. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +1 -1
  554. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +11 -11
  555. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +3 -3
  556. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +4 -4
  557. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +8 -6
  558. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +3 -3
  559. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +6 -6
  560. package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +1 -1
  561. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +1 -3
  562. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.service.js +3 -0
  563. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.service.js +3 -0
  564. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +5 -6
  565. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.service.js +3 -0
  566. package/vscode/src/vs/workbench/contrib/list/browser/list.contribution.js +1 -1
  567. package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.service.js +3 -0
  568. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +7 -7
  569. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +4 -5
  570. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +1 -1
  571. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -1
  572. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/telemetry.js +1 -1
  573. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +1 -1
  574. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +5 -3
  575. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +1 -3
  576. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.js +3 -0
  577. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +2 -2
  578. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellDiagnostics/cellDiagnostics.js +5 -4
  579. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +4 -3
  580. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
  581. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +3 -3
  582. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +4 -4
  583. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
  584. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +7 -6
  585. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +3 -3
  586. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +8 -9
  587. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +1 -1
  588. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +5 -5
  589. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +16 -15
  590. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +16 -15
  591. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +3 -3
  592. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +4 -4
  593. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellContextKeys.js +3 -2
  594. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +1 -1
  595. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellExecution.js +1 -1
  596. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +8 -7
  597. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellProgressBar.js +1 -1
  598. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +6 -6
  599. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +5 -4
  600. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +4 -4
  601. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +2 -1
  602. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +4 -3
  603. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +1 -1
  604. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
  605. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +4 -4
  606. package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +4 -3
  607. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +19 -18
  608. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +7 -7
  609. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +3 -3
  610. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +2 -2
  611. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +5 -4
  612. package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +3 -2
  613. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +1 -1
  614. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +7 -6
  615. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorWidgetContextKeys.js +5 -4
  616. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +11 -10
  617. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  618. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookOverviewRuler.js +2 -1
  619. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookTopCellToolbar.js +3 -2
  620. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +10 -10
  621. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +4 -3
  622. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.js +1 -3
  623. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.js +3 -0
  624. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.js +1 -3
  625. package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.js +3 -0
  626. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.js +1 -4
  627. package/vscode/src/vs/workbench/contrib/notebook/common/notebookKernelService.service.js +4 -0
  628. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.js +1 -3
  629. package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.js +3 -0
  630. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.js +1 -3
  631. package/vscode/src/vs/workbench/contrib/notebook/common/services/notebookWorkerService.service.js +4 -0
  632. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.service.js +3 -0
  633. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
  634. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +7 -6
  635. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +5 -4
  636. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.d.ts +1 -8
  637. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +1 -3
  638. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.d.ts +11 -0
  639. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.js +3 -0
  640. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +20 -17
  641. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +32 -25
  642. package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +2 -2
  643. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +17 -12
  644. package/vscode/src/vs/workbench/contrib/scm/common/scm.js +1 -4
  645. package/vscode/src/vs/workbench/contrib/scm/common/scm.service.js +4 -0
  646. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchService.js +8 -7
  647. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -11
  648. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +13 -13
  649. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.service.js +3 -0
  650. package/vscode/src/vs/workbench/contrib/search/common/search.js +3 -3
  651. package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.service.js +3 -0
  652. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +3 -3
  653. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +1 -1
  654. package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.d.ts +1 -15
  655. package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.service.d.ts +16 -0
  656. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.d.ts +2 -2
  657. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  658. package/vscode/src/vs/workbench/contrib/snippets/browser/tabCompletion.js +4 -3
  659. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +1 -3
  660. package/vscode/src/vs/workbench/contrib/speech/common/speechService.service.js +3 -0
  661. package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +0 -2
  662. package/vscode/src/vs/workbench/contrib/tags/common/{workspaceTags.js → workspaceTags.service.js} +0 -2
  663. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -18
  664. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.js +3 -0
  665. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.js +1 -6
  666. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +6 -0
  667. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +7 -7
  668. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +1 -1
  669. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessExtHostProxy.js +1 -1
  670. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +1 -4
  671. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.js +4 -0
  672. package/vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.service.js +3 -0
  673. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.js +1 -3
  674. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.js +3 -0
  675. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.service.js +3 -0
  676. package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.service.js +3 -0
  677. package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.service.js +3 -0
  678. package/vscode/src/vs/workbench/contrib/testing/common/testResultService.service.js +3 -0
  679. package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.service.js +3 -0
  680. package/vscode/src/vs/workbench/contrib/testing/common/testService.service.js +3 -0
  681. package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.service.js +3 -0
  682. package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.service.js +3 -0
  683. package/vscode/src/vs/workbench/contrib/timeline/common/timeline.js +1 -3
  684. package/vscode/src/vs/workbench/contrib/timeline/common/timeline.service.js +4 -0
  685. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +2 -2
  686. package/vscode/src/vs/workbench/contrib/webview/browser/webview.js +2 -4
  687. package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.js +3 -0
  688. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +9 -8
  689. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +2 -2
  690. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.js +6 -6
  691. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.js +3 -0
  692. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.service.js +3 -0
  693. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.service.js +3 -0
  694. package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +1 -38
  695. package/vscode/src/vs/workbench/services/activity/common/activity.js +1 -3
  696. package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +40 -0
  697. package/vscode/src/vs/workbench/services/activity/common/activity.service.js +3 -0
  698. package/vscode/src/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.service.js +3 -0
  699. package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.js +1 -3
  700. package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service.js +3 -0
  701. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.js +3 -0
  702. package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.service.js +3 -0
  703. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +2 -2
  704. package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.service.js +3 -0
  705. package/vscode/src/vs/workbench/services/authentication/common/authentication.js +1 -4
  706. package/vscode/src/vs/workbench/services/authentication/common/authentication.service.js +4 -0
  707. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service.js +3 -0
  708. package/vscode/src/vs/workbench/services/banner/browser/bannerService.d.ts +1 -11
  709. package/vscode/src/vs/workbench/services/banner/browser/bannerService.service.d.ts +14 -0
  710. package/vscode/src/vs/workbench/services/configuration/common/configuration.js +1 -4
  711. package/vscode/src/vs/workbench/services/configuration/common/configuration.service.js +4 -0
  712. package/vscode/src/vs/workbench/services/configuration/common/jsonEditing.service.js +3 -0
  713. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -3
  714. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.js +3 -0
  715. package/vscode/src/vs/workbench/services/editor/browser/codeEditorService.js +4 -3
  716. package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +12 -10
  717. package/vscode/src/vs/workbench/services/editor/browser/editorService.js +11 -9
  718. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.js +4 -5
  719. package/vscode/src/vs/workbench/services/editor/common/customEditorLabelService.service.js +3 -0
  720. package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +3 -2
  721. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +4 -48
  722. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +1 -3
  723. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +50 -0
  724. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.js +3 -0
  725. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +2 -62
  726. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -3
  727. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.d.ts +65 -0
  728. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.service.js +3 -0
  729. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +3 -211
  730. package/vscode/src/vs/workbench/services/editor/common/editorService.js +1 -3
  731. package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +214 -0
  732. package/vscode/src/vs/workbench/services/editor/common/editorService.service.js +3 -0
  733. package/vscode/src/vs/workbench/services/environment/browser/{environmentService.d.ts → environmentService.service.d.ts} +8 -8
  734. package/vscode/src/vs/workbench/services/environment/browser/environmentService.service.js +4 -0
  735. package/vscode/src/vs/workbench/services/environment/common/{environmentService.d.ts → environmentService.service.d.ts} +4 -4
  736. package/vscode/src/vs/workbench/services/environment/common/{environmentService.js → environmentService.service.js} +1 -1
  737. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.service.js +3 -0
  738. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.js +1 -3
  739. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.service.js +3 -0
  740. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +1 -8
  741. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.js +8 -0
  742. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +8 -7
  743. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.js +3 -0
  744. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.service.js +3 -0
  745. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.js +6 -7
  746. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.js +3 -0
  747. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +6 -131
  748. package/vscode/src/vs/workbench/services/extensions/common/extensions.js +1 -3
  749. package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +135 -0
  750. package/vscode/src/vs/workbench/services/extensions/common/extensions.service.js +3 -0
  751. package/vscode/src/vs/workbench/services/extensions/common/workspaceContains.js +1 -1
  752. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.d.ts +2 -27
  753. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +12 -10
  754. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +30 -0
  755. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.js +3 -0
  756. package/vscode/src/vs/workbench/services/history/common/history.d.ts +1 -76
  757. package/vscode/src/vs/workbench/services/history/common/history.js +1 -3
  758. package/vscode/src/vs/workbench/services/history/common/history.service.d.ts +77 -0
  759. package/vscode/src/vs/workbench/services/history/common/history.service.js +3 -0
  760. package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +102 -0
  761. package/vscode/src/vs/workbench/services/issue/browser/issueTroubleshoot.service.js +3 -0
  762. package/vscode/src/vs/workbench/services/keybinding/common/{keybindingEditing.d.ts → keybindingEditing.service.d.ts} +0 -1
  763. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.service.js +3 -0
  764. package/vscode/src/vs/workbench/services/language/common/languageService.js +4 -4
  765. package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +1 -3
  766. package/vscode/src/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.service.js +3 -0
  767. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.d.ts +3 -13
  768. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.service.d.ts +15 -0
  769. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.service.js +3 -0
  770. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +1 -160
  771. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +1 -4
  772. package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +161 -0
  773. package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.js +4 -0
  774. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.d.ts +1 -68
  775. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js +1 -3
  776. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.service.d.ts +70 -0
  777. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.service.js +3 -0
  778. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +3 -2
  779. package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +2 -3
  780. package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.service.js +3 -0
  781. package/vscode/src/vs/workbench/services/output/common/output.d.ts +1 -36
  782. package/vscode/src/vs/workbench/services/output/common/output.js +1 -3
  783. package/vscode/src/vs/workbench/services/output/common/output.service.d.ts +39 -0
  784. package/vscode/src/vs/workbench/services/output/common/output.service.js +3 -0
  785. package/vscode/src/vs/workbench/services/panecomposite/browser/{panecomposite.d.ts → panecomposite.service.d.ts} +18 -18
  786. package/vscode/src/vs/workbench/services/path/common/pathService.service.d.ts +65 -0
  787. package/vscode/src/vs/workbench/services/path/common/pathService.service.js +3 -0
  788. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +2 -2
  789. package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +2 -31
  790. package/vscode/src/vs/workbench/services/preferences/common/preferences.js +1 -3
  791. package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +35 -0
  792. package/vscode/src/vs/workbench/services/preferences/common/preferences.service.js +3 -0
  793. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +1 -1
  794. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.d.ts +2 -1
  795. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +2 -2
  796. package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.d.ts +2 -31
  797. package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.service.d.ts +34 -0
  798. package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.service.js +3 -0
  799. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +4 -5
  800. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.js +3 -0
  801. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +12 -11
  802. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -5
  803. package/vscode/src/vs/workbench/services/search/common/search.js +1 -3
  804. package/vscode/src/vs/workbench/services/search/common/search.service.js +3 -0
  805. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +2 -21
  806. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.js +1 -3
  807. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.d.ts +23 -0
  808. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.service.js +3 -0
  809. package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.service.js +3 -0
  810. package/vscode/src/vs/workbench/services/textfile/common/encoding.js +4 -4
  811. package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +7 -7
  812. package/vscode/src/vs/workbench/services/textfile/common/{textEditorService.d.ts → textEditorService.service.d.ts} +14 -15
  813. package/vscode/src/vs/workbench/services/textfile/common/textEditorService.service.js +3 -0
  814. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +12 -11
  815. package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +4 -97
  816. package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +1 -3
  817. package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +102 -0
  818. package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.js +3 -0
  819. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +1 -4
  820. package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.service.js +4 -0
  821. package/vscode/src/vs/workbench/services/timer/browser/timerService.service.js +3 -0
  822. package/vscode/src/vs/workbench/services/title/browser/{titleService.d.ts → titleService.service.d.ts} +4 -4
  823. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +8 -8
  824. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +7 -7
  825. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.service.js +3 -0
  826. package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.service.js +3 -0
  827. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.service.js +3 -0
  828. package/vscode/src/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles.service.js +3 -0
  829. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.d.ts +1 -11
  830. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +1 -5
  831. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.d.ts +15 -0
  832. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.service.js +5 -0
  833. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +1 -3
  834. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.service.js +3 -0
  835. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +14 -13
  836. package/vscode/src/vs/workbench/services/workingCopy/common/resourceWorkingCopy.js +1 -1
  837. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.d.ts +1 -1
  838. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +14 -11
  839. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopy.d.ts +1 -1
  840. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.js +3 -0
  841. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.d.ts +4 -109
  842. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +114 -0
  843. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.js +3 -0
  844. package/vscode/src/vs/workbench/services/workingCopy/common/{workingCopyHistory.js → workingCopyHistory.service.js} +1 -2
  845. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.js +3 -0
  846. package/vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.service.js +3 -0
  847. package/vscode/src/vs/workbench/services/workspaces/common/workspaceTrust.js +9 -8
  848. package/override/iconv.js +0 -43
  849. package/override/jschardet.js +0 -7
  850. package/override/vs/platform/dialogs/common/dialogs.js +0 -8
  851. package/service-override/tools/editorAssets.js +0 -3
  852. package/vscode/src/vs/base/browser/deviceAccess.js +0 -60
  853. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -178
  854. package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -492
  855. package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -4
  856. package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -1110
  857. package/vscode/src/vs/platform/environment/common/environmentService.js +0 -8
  858. package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +0 -333
  859. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +0 -901
  860. package/vscode/src/vs/platform/extensionRecommendations/common/extensionRecommendations.js +0 -10
  861. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +0 -10
  862. package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.d.ts +0 -13
  863. package/vscode/src/vs/platform/remote/common/remoteSocketFactoryService.js +0 -30
  864. package/vscode/src/vs/platform/secrets/common/secrets.js +0 -127
  865. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
  866. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +0 -272
  867. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -709
  868. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
  869. package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -48
  870. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
  871. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -40
  872. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -319
  873. package/vscode/src/vs/platform/uriIdentity/common/uriIdentity.d.ts +0 -38
  874. package/vscode/src/vs/platform/userDataProfile/common/userDataProfileIpc.js +0 -65
  875. package/vscode/src/vs/platform/userDataSync/common/ignoredExtensions.js +0 -65
  876. package/vscode/src/vs/platform/userDataSync/common/userDataSyncAccount.js +0 -45
  877. package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -22
  878. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -62
  879. package/vscode/src/vs/platform/workspace/common/workspaceTrust.js +0 -18
  880. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -904
  881. package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -762
  882. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +0 -300
  883. package/vscode/src/vs/workbench/browser/media/style.css.js +0 -4
  884. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -665
  885. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -4
  886. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -4
  887. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -226
  888. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -4
  889. package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.d.ts +0 -45
  890. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -604
  891. package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -344
  892. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +0 -243
  893. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +0 -1402
  894. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +0 -185
  895. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -519
  896. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -1028
  897. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +0 -390
  898. package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -4
  899. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -4
  900. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +0 -4
  901. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +0 -640
  902. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -469
  903. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +0 -66
  904. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -157
  905. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -4
  906. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +0 -37
  907. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -235
  908. package/vscode/src/vs/workbench/browser/style.js +0 -53
  909. package/vscode/src/vs/workbench/browser/window.js +0 -380
  910. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +0 -878
  911. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -298
  912. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -363
  913. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -133
  914. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -4
  915. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +0 -54
  916. package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.js +0 -37
  917. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +0 -41
  918. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.css.js +0 -4
  919. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +0 -503
  920. package/vscode/src/vs/workbench/contrib/comments/browser/commentMenus.js +0 -43
  921. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +0 -354
  922. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -21
  923. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -144
  924. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -212
  925. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -4
  926. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -76
  927. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +0 -56
  928. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -61
  929. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -181
  930. package/vscode/src/vs/workbench/contrib/debug/common/debugContext.js +0 -14
  931. package/vscode/src/vs/workbench/contrib/debug/common/debugVisualizers.js +0 -211
  932. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.js +0 -59
  933. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -6
  934. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +0 -27
  935. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +0 -49
  936. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -406
  937. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -4
  938. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +0 -145
  939. package/vscode/src/vs/workbench/contrib/logs/common/defaultLogLevels.js +0 -155
  940. package/vscode/src/vs/workbench/contrib/logs/common/logsActions.js +0 -236
  941. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +0 -634
  942. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +0 -229
  943. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +0 -74
  944. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +0 -40
  945. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +0 -79
  946. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +0 -348
  947. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +0 -98
  948. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +0 -146
  949. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +0 -104
  950. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +0 -401
  951. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +0 -197
  952. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +0 -39
  953. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +0 -126
  954. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +0 -4
  955. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +0 -616
  956. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +0 -159
  957. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +0 -264
  958. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +0 -171
  959. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModel.js +0 -326
  960. package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.js +0 -31
  961. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +0 -192
  962. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +0 -37
  963. package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +0 -39
  964. package/vscode/src/vs/workbench/contrib/search/common/searchHistoryService.js +0 -44
  965. package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +0 -92
  966. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +0 -934
  967. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +0 -48
  968. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
  969. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -64
  970. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.d.ts +0 -25
  971. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
  972. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -537
  973. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -141
  974. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.d.ts +0 -8
  975. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -571
  976. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +0 -166
  977. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -804
  978. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +0 -55
  979. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +0 -9
  980. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +0 -238
  981. package/vscode/src/vs/workbench/contrib/terminal/common/terminalExtensionPoints.js +0 -27
  982. package/vscode/src/vs/workbench/contrib/testing/common/storedValue.js +0 -36
  983. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +0 -62
  984. package/vscode/src/vs/workbench/contrib/testing/common/testExplorerFilterState.js +0 -116
  985. package/vscode/src/vs/workbench/contrib/testing/common/testProfileService.js +0 -194
  986. package/vscode/src/vs/workbench/contrib/testing/common/testResultService.js +0 -158
  987. package/vscode/src/vs/workbench/contrib/testing/common/testResultStorage.js +0 -160
  988. package/vscode/src/vs/workbench/contrib/testing/common/testService.js +0 -102
  989. package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +0 -196
  990. package/vscode/src/vs/workbench/contrib/testing/common/testingContinuousRunService.js +0 -127
  991. package/vscode/src/vs/workbench/contrib/testing/common/testingDecorations.js +0 -29
  992. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -4
  993. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -281
  994. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -358
  995. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -131
  996. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -311
  997. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -94
  998. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -96
  999. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -654
  1000. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -63
  1001. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -57
  1002. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -140
  1003. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -119
  1004. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -65
  1005. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -230
  1006. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +0 -45
  1007. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.js +0 -375
  1008. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.js +0 -525
  1009. package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.js +0 -934
  1010. package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +0 -26
  1011. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -143
  1012. package/vscode/src/vs/workbench/services/aiEmbeddingVector/common/aiEmbeddingVectorService.js +0 -75
  1013. package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +0 -31
  1014. package/vscode/src/vs/workbench/services/authentication/browser/authenticationAccessService.js +0 -69
  1015. package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.js +0 -50
  1016. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +0 -341
  1017. package/vscode/src/vs/workbench/services/configuration/common/jsonEditing.js +0 -9
  1018. package/vscode/src/vs/workbench/services/driver/browser/driver.js +0 -184
  1019. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +0 -11
  1020. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -672
  1021. package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +0 -378
  1022. package/vscode/src/vs/workbench/services/extensionManagement/browser/extensionBisect.js +0 -396
  1023. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +0 -150
  1024. package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +0 -44
  1025. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +0 -339
  1026. package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +0 -11
  1027. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +0 -160
  1028. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +0 -18
  1029. package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +0 -39
  1030. package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +0 -17
  1031. package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.d.ts +0 -20
  1032. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +0 -45
  1033. package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.d.ts +0 -17
  1034. package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.d.ts +0 -6
  1035. package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1511
  1036. package/vscode/src/vs/workbench/services/host/browser/host.d.ts +0 -102
  1037. package/vscode/src/vs/workbench/services/issue/browser/issueTroubleshoot.js +0 -418
  1038. package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +0 -267
  1039. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.js +0 -26
  1040. package/vscode/src/vs/workbench/services/path/common/pathService.d.ts +0 -65
  1041. package/vscode/src/vs/workbench/services/path/common/pathService.js +0 -108
  1042. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +0 -4
  1043. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +0 -521
  1044. package/vscode/src/vs/workbench/services/remote/common/remoteAgentService.js +0 -59
  1045. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +0 -83
  1046. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +0 -182
  1047. package/vscode/src/vs/workbench/services/terminal/common/embedderTerminalService.js +0 -77
  1048. package/vscode/src/vs/workbench/services/textMate/common/TMHelper.js +0 -107
  1049. package/vscode/src/vs/workbench/services/timer/browser/timerService.js +0 -243
  1050. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +0 -100
  1051. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +0 -132
  1052. package/vscode/src/vs/workbench/services/userActivity/common/userActivityRegistry.js +0 -15
  1053. package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.js +0 -37
  1054. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +0 -15
  1055. package/vscode/src/vs/workbench/services/userData/browser/userDataInit.js +0 -60
  1056. package/vscode/src/vs/workbench/services/userDataProfile/common/remoteUserDataProfiles.js +0 -150
  1057. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -708
  1058. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -601
  1059. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +0 -62
  1060. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.js +0 -40
  1061. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileOperationParticipant.js +0 -40
  1062. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.js +0 -181
  1063. package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.js +0 -126
  1064. package/vscode/src/vs/workbench/services/workspaces/common/workspaceIdentityService.js +0 -102
  1065. /package/vscode/src/vs/platform/clipboard/common/{clipboardService.js → clipboardService.service.js} +0 -0
  1066. /package/vscode/src/vs/platform/contextview/browser/{contextView.js → contextView.service.js} +0 -0
  1067. /package/vscode/src/vs/platform/debug/common/{extensionHostDebug.js → extensionHostDebug.service.js} +0 -0
  1068. /package/vscode/src/vs/platform/download/common/{download.js → download.service.js} +0 -0
  1069. /package/vscode/src/vs/platform/encryption/common/{encryptionService.js → encryptionService.service.js} +0 -0
  1070. /package/vscode/src/vs/platform/environment/common/{environment.js → environment.service.js} +0 -0
  1071. /package/vscode/src/vs/platform/keybinding/common/{keybinding.js → keybinding.service.js} +0 -0
  1072. /package/vscode/src/vs/platform/label/common/{label.js → label.service.js} +0 -0
  1073. /package/vscode/src/vs/platform/layout/browser/{layoutService.js → layoutService.service.js} +0 -0
  1074. /package/vscode/src/vs/platform/product/common/{productService.d.ts → productService.service.d.ts} +0 -0
  1075. /package/vscode/src/vs/platform/uriIdentity/common/{uriIdentity.js → uriIdentity.service.js} +0 -0
  1076. /package/vscode/src/vs/platform/url/common/{url.js → url.service.js} +0 -0
  1077. /package/vscode/src/vs/platform/workspace/common/{canonicalUri.js → canonicalUri.service.js} +0 -0
  1078. /package/vscode/src/vs/workbench/browser/parts/editor/{breadcrumbs.d.ts → breadcrumbs.service.d.ts} +0 -0
  1079. /package/vscode/src/vs/workbench/contrib/chat/common/{chatContributionService.js → chatContributionService.service.js} +0 -0
  1080. /package/vscode/src/vs/workbench/contrib/chat/common/{chatVariables.js → chatVariables.service.js} +0 -0
  1081. /package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatSavingService.js → inlineChatSavingService.service.js} +0 -0
  1082. /package/vscode/src/vs/workbench/contrib/inlineChat/browser/{inlineChatSessionService.js → inlineChatSessionService.service.js} +0 -0
  1083. /package/vscode/src/vs/workbench/contrib/notebook/browser/services/{notebookEditorService.js → notebookEditorService.service.js} +0 -0
  1084. /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookCellStatusBarService.js → notebookCellStatusBarService.service.js} +0 -0
  1085. /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookEditorModelResolverService.js → notebookEditorModelResolverService.service.js} +0 -0
  1086. /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookKeymapService.js → notebookKeymapService.service.js} +0 -0
  1087. /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookLoggingService.js → notebookLoggingService.service.js} +0 -0
  1088. /package/vscode/src/vs/workbench/contrib/notebook/common/{notebookRendererMessagingService.js → notebookRendererMessagingService.service.js} +0 -0
  1089. /package/vscode/src/vs/workbench/contrib/scm/common/{quickDiff.js → quickDiff.service.js} +0 -0
  1090. /package/vscode/src/vs/workbench/contrib/search/browser/{replace.js → replace.service.js} +0 -0
  1091. /package/vscode/src/vs/workbench/contrib/search/common/{notebookSearch.js → notebookSearch.service.js} +0 -0
  1092. /package/vscode/src/vs/workbench/contrib/share/common/{share.js → share.service.js} +0 -0
  1093. /package/vscode/src/vs/workbench/contrib/snippets/browser/{snippets.js → snippets.service.js} +0 -0
  1094. /package/vscode/src/vs/workbench/contrib/terminal/common/{environmentVariable.js → environmentVariable.service.js} +0 -0
  1095. /package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/{links.js → links.service.js} +0 -0
  1096. /package/vscode/src/vs/workbench/contrib/testing/common/{testingPeekOpener.js → testingPeekOpener.service.js} +0 -0
  1097. /package/vscode/src/vs/workbench/services/banner/browser/{bannerService.js → bannerService.service.js} +0 -0
  1098. /package/vscode/src/vs/workbench/services/decorations/common/{decorations.js → decorations.service.js} +0 -0
  1099. /package/vscode/src/vs/workbench/services/editor/common/{customEditorLabelService.d.ts → customEditorLabelService.service.d.ts} +0 -0
  1100. /package/vscode/src/vs/workbench/services/editor/common/{editorPaneService.js → editorPaneService.service.js} +0 -0
  1101. /package/vscode/src/vs/workbench/services/extensionRecommendations/common/{extensionRecommendations.js → extensionRecommendations.service.js} +0 -0
  1102. /package/vscode/src/vs/workbench/services/files/common/{elevatedFileService.js → elevatedFileService.service.js} +0 -0
  1103. /package/vscode/src/vs/workbench/services/host/browser/{host.js → host.service.js} +0 -0
  1104. /package/vscode/src/vs/workbench/services/issue/common/{issue.js → issue.service.js} +0 -0
  1105. /package/vscode/src/vs/workbench/services/localization/common/{locale.d.ts → locale.service.d.ts} +0 -0
  1106. /package/vscode/src/vs/workbench/services/localization/common/{locale.js → locale.service.js} +0 -0
  1107. /package/vscode/src/vs/workbench/services/outline/browser/{outline.js → outline.service.js} +0 -0
  1108. /package/vscode/src/vs/workbench/services/panecomposite/browser/{panecomposite.js → panecomposite.service.js} +0 -0
  1109. /package/vscode/src/vs/workbench/services/textMate/browser/{textMateTokenizationFeature.js → textMateTokenizationFeature.service.js} +0 -0
  1110. /package/vscode/src/vs/workbench/services/themes/common/{hostColorSchemeService.js → hostColorSchemeService.service.js} +0 -0
  1111. /package/vscode/src/vs/workbench/services/title/browser/{titleService.js → titleService.service.js} +0 -0
  1112. /package/vscode/src/vs/workbench/services/views/browser/{treeViewsService.js → treeViewsService.service.js} +0 -0
  1113. /package/vscode/src/vs/workbench/services/views/common/{viewsService.d.ts → viewsService.service.d.ts} +0 -0
  1114. /package/vscode/src/vs/workbench/services/views/common/{viewsService.js → viewsService.service.js} +0 -0
  1115. /package/vscode/src/vs/workbench/services/workingCopy/common/{workingCopyBackup.js → workingCopyBackup.service.js} +0 -0
  1116. /package/vscode/src/vs/workbench/services/workspaces/common/{workspaceEditing.js → workspaceEditing.service.js} +0 -0
@@ -1,709 +0,0 @@
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.js';
7
- import { PartialTerminalCommand, TerminalCommand } from './commandDetection/terminalCommand.js';
8
- class CommandDetectionCapability extends Disposable {
9
- get commands() { return this._commands; }
10
- get executingCommand() { return this._currentCommand.command; }
11
- get executingCommandObject() {
12
- if (this._currentCommand.commandStartMarker) {
13
- return { marker: this._currentCommand.commandStartMarker };
14
- }
15
- return undefined;
16
- }
17
- get currentCommand() {
18
- return this._currentCommand;
19
- }
20
- get cwd() { return this._cwd; }
21
- get _isInputting() {
22
- return !!(this._currentCommand.commandStartMarker && !this._currentCommand.commandExecutedMarker);
23
- }
24
- get hasInput() {
25
- if (!this._isInputting || !this._currentCommand?.commandStartMarker) {
26
- return undefined;
27
- }
28
- if (this._terminal.buffer.active.baseY + this._terminal.buffer.active.cursorY === this._currentCommand.commandStartMarker?.line) {
29
- const line = this._terminal.buffer.active.getLine(this._terminal.buffer.active.cursorY)?.translateToString(true, this._currentCommand.commandStartX);
30
- if (line === undefined) {
31
- return undefined;
32
- }
33
- return line.length > 0;
34
- }
35
- return true;
36
- }
37
- constructor(_terminal, _logService) {
38
- super();
39
- this._terminal = _terminal;
40
- this._logService = _logService;
41
- this.type = 2 ;
42
- this._commands = [];
43
- this._currentCommand = ( new PartialTerminalCommand(this._terminal));
44
- this._commandMarkers = [];
45
- this.__isCommandStorageDisabled = false;
46
- this._onCommandStarted = this._register(( new Emitter()));
47
- this.onCommandStarted = this._onCommandStarted.event;
48
- this._onBeforeCommandFinished = this._register(( new Emitter()));
49
- this.onBeforeCommandFinished = this._onBeforeCommandFinished.event;
50
- this._onCommandFinished = this._register(( new Emitter()));
51
- this.onCommandFinished = this._onCommandFinished.event;
52
- this._onCommandExecuted = this._register(( new Emitter()));
53
- this.onCommandExecuted = this._onCommandExecuted.event;
54
- this._onCommandInvalidated = this._register(( new Emitter()));
55
- this.onCommandInvalidated = this._onCommandInvalidated.event;
56
- this._onCurrentCommandInvalidated = this._register(( new Emitter()));
57
- this.onCurrentCommandInvalidated = this._onCurrentCommandInvalidated.event;
58
- const that = this;
59
- this._ptyHeuristicsHooks = new (class {
60
- get onCurrentCommandInvalidatedEmitter() { return that._onCurrentCommandInvalidated; }
61
- get onCommandStartedEmitter() { return that._onCommandStarted; }
62
- get onCommandExecutedEmitter() { return that._onCommandExecuted; }
63
- get dimensions() { return that._dimensions; }
64
- get isCommandStorageDisabled() { return that.__isCommandStorageDisabled; }
65
- get commandMarkers() { return that._commandMarkers; }
66
- set commandMarkers(value) { that._commandMarkers = value; }
67
- get clearCommandsInViewport() { return that._clearCommandsInViewport.bind(that); }
68
- commitCommandFinished() {
69
- that._commitCommandFinished?.flush();
70
- that._commitCommandFinished = undefined;
71
- }
72
- });
73
- this._ptyHeuristics = this._register(( new MandatoryMutableDisposable(( new UnixPtyHeuristics(this._terminal, this, this._ptyHeuristicsHooks, this._logService)))));
74
- this._dimensions = {
75
- cols: this._terminal.cols,
76
- rows: this._terminal.rows
77
- };
78
- this._register(this._terminal.onResize(e => this._handleResize(e)));
79
- this._register(this._terminal.onCursorMove(() => this._handleCursorMove()));
80
- }
81
- _handleResize(e) {
82
- this._ptyHeuristics.value.preHandleResize?.(e);
83
- this._dimensions.cols = e.cols;
84
- this._dimensions.rows = e.rows;
85
- }
86
- _handleCursorMove() {
87
- if (this._terminal.buffer.active === this._terminal.buffer.normal && this._currentCommand.commandStartMarker) {
88
- if (this._terminal.buffer.active.baseY + this._terminal.buffer.active.cursorY < this._currentCommand.commandStartMarker.line) {
89
- this._clearCommandsInViewport();
90
- this._currentCommand.isInvalid = true;
91
- this._onCurrentCommandInvalidated.fire({ reason: "windows" });
92
- }
93
- }
94
- }
95
- _clearCommandsInViewport() {
96
- let count = 0;
97
- for (let i = this._commands.length - 1; i >= 0; i--) {
98
- const line = this._commands[i].marker?.line;
99
- if (line && line < this._terminal.buffer.active.baseY) {
100
- break;
101
- }
102
- count++;
103
- }
104
- if (count > 0) {
105
- this._onCommandInvalidated.fire(this._commands.splice(this._commands.length - count, count));
106
- }
107
- }
108
- setCwd(value) {
109
- this._cwd = value;
110
- }
111
- setIsWindowsPty(value) {
112
- if (value && !(this._ptyHeuristics.value instanceof WindowsPtyHeuristics)) {
113
- const that = this;
114
- this._ptyHeuristics.value = ( new WindowsPtyHeuristics(this._terminal, this, new (class {
115
- get onCurrentCommandInvalidatedEmitter() { return that._onCurrentCommandInvalidated; }
116
- get onCommandStartedEmitter() { return that._onCommandStarted; }
117
- get onCommandExecutedEmitter() { return that._onCommandExecuted; }
118
- get dimensions() { return that._dimensions; }
119
- get isCommandStorageDisabled() { return that.__isCommandStorageDisabled; }
120
- get commandMarkers() { return that._commandMarkers; }
121
- set commandMarkers(value) { that._commandMarkers = value; }
122
- get clearCommandsInViewport() { return that._clearCommandsInViewport.bind(that); }
123
- commitCommandFinished() {
124
- that._commitCommandFinished?.flush();
125
- that._commitCommandFinished = undefined;
126
- }
127
- }), this._logService));
128
- }
129
- else if (!value && !(this._ptyHeuristics.value instanceof UnixPtyHeuristics)) {
130
- this._ptyHeuristics.value = ( new UnixPtyHeuristics(this._terminal, this, this._ptyHeuristicsHooks, this._logService));
131
- }
132
- }
133
- setIsCommandStorageDisabled() {
134
- this.__isCommandStorageDisabled = true;
135
- }
136
- getCommandForLine(line) {
137
- if (this._currentCommand.promptStartMarker && line >= this._currentCommand.promptStartMarker?.line) {
138
- return this._currentCommand;
139
- }
140
- if (this._commands.length === 0) {
141
- return undefined;
142
- }
143
- if ((this._commands[0].promptStartMarker ?? this._commands[0].marker).line > line) {
144
- return undefined;
145
- }
146
- for (let i = this.commands.length - 1; i >= 0; i--) {
147
- if ((this.commands[i].promptStartMarker ?? this.commands[i].marker).line <= line) {
148
- return this.commands[i];
149
- }
150
- }
151
- return undefined;
152
- }
153
- getCwdForLine(line) {
154
- if (this._currentCommand.promptStartMarker && line >= this._currentCommand.promptStartMarker?.line) {
155
- return this._cwd;
156
- }
157
- const command = this.getCommandForLine(line);
158
- if (command && 'cwd' in command) {
159
- return command.cwd;
160
- }
161
- return undefined;
162
- }
163
- handlePromptStart(options) {
164
- const lastCommand = this.commands.at(-1);
165
- if (lastCommand?.endMarker && lastCommand?.executedMarker && lastCommand.endMarker.line === lastCommand.executedMarker.line) {
166
- this._logService.debug('CommandDetectionCapability#handlePromptStart adjusted commandFinished', `${lastCommand.endMarker.line} -> ${lastCommand.executedMarker.line + 1}`);
167
- lastCommand.endMarker = cloneMarker(this._terminal, lastCommand.executedMarker, 1);
168
- }
169
- this._currentCommand.promptStartMarker = options?.marker || (lastCommand?.endMarker ? cloneMarker(this._terminal, lastCommand.endMarker) : this._terminal.registerMarker(0));
170
- this._logService.debug('CommandDetectionCapability#handlePromptStart', this._terminal.buffer.active.cursorX, this._currentCommand.promptStartMarker?.line);
171
- }
172
- handleContinuationStart() {
173
- this._currentCommand.currentContinuationMarker = this._terminal.registerMarker(0);
174
- this._logService.debug('CommandDetectionCapability#handleContinuationStart', this._currentCommand.currentContinuationMarker);
175
- }
176
- handleContinuationEnd() {
177
- if (!this._currentCommand.currentContinuationMarker) {
178
- this._logService.warn('CommandDetectionCapability#handleContinuationEnd Received continuation end without start');
179
- return;
180
- }
181
- if (!this._currentCommand.continuations) {
182
- this._currentCommand.continuations = [];
183
- }
184
- this._currentCommand.continuations.push({
185
- marker: this._currentCommand.currentContinuationMarker,
186
- end: this._terminal.buffer.active.cursorX
187
- });
188
- this._currentCommand.currentContinuationMarker = undefined;
189
- this._logService.debug('CommandDetectionCapability#handleContinuationEnd', this._currentCommand.continuations[this._currentCommand.continuations.length - 1]);
190
- }
191
- handleRightPromptStart() {
192
- this._currentCommand.commandRightPromptStartX = this._terminal.buffer.active.cursorX;
193
- this._logService.debug('CommandDetectionCapability#handleRightPromptStart', this._currentCommand.commandRightPromptStartX);
194
- }
195
- handleRightPromptEnd() {
196
- this._currentCommand.commandRightPromptEndX = this._terminal.buffer.active.cursorX;
197
- this._logService.debug('CommandDetectionCapability#handleRightPromptEnd', this._currentCommand.commandRightPromptEndX);
198
- }
199
- handleCommandStart(options) {
200
- this._handleCommandStartOptions = options;
201
- this._currentCommand.commandStartMarker = options?.marker || this._currentCommand.commandStartMarker;
202
- if (this._currentCommand.commandStartMarker?.line === this._terminal.buffer.active.cursorY) {
203
- this._currentCommand.commandStartX = this._terminal.buffer.active.cursorX;
204
- this._logService.debug('CommandDetectionCapability#handleCommandStart', this._currentCommand.commandStartX, this._currentCommand.commandStartMarker?.line);
205
- return;
206
- }
207
- this._ptyHeuristics.value.handleCommandStart(options);
208
- }
209
- handleGenericCommand(options) {
210
- if (options?.markProperties?.disableCommandStorage) {
211
- this.setIsCommandStorageDisabled();
212
- }
213
- this.handlePromptStart(options);
214
- this.handleCommandStart(options);
215
- this.handleCommandExecuted(options);
216
- this.handleCommandFinished(undefined, options);
217
- }
218
- handleCommandExecuted(options) {
219
- this._ptyHeuristics.value.handleCommandExecuted(options);
220
- this._currentCommand.markExecutedTime();
221
- }
222
- handleCommandFinished(exitCode, options) {
223
- this._currentCommand.markFinishedTime();
224
- this._ptyHeuristics.value.preHandleCommandFinished?.();
225
- this._logService.debug('CommandDetectionCapability#handleCommandFinished', this._terminal.buffer.active.cursorX, options?.marker?.line, this._currentCommand.command, this._currentCommand);
226
- if (exitCode === undefined) {
227
- const lastCommand = this.commands.length > 0 ? this.commands[this.commands.length - 1] : undefined;
228
- if (this._currentCommand.command && this._currentCommand.command.length > 0 && lastCommand?.command === this._currentCommand.command) {
229
- exitCode = lastCommand.exitCode;
230
- }
231
- }
232
- if (this._currentCommand.commandStartMarker === undefined || !this._terminal.buffer.active) {
233
- return;
234
- }
235
- this._currentCommand.commandFinishedMarker = options?.marker || this._terminal.registerMarker(0);
236
- this._ptyHeuristics.value.postHandleCommandFinished?.();
237
- const newCommand = this._currentCommand.promoteToFullCommand(this._cwd, exitCode, this._handleCommandStartOptions?.ignoreCommandLine ?? false, options?.markProperties);
238
- if (newCommand) {
239
- this._commands.push(newCommand);
240
- this._commitCommandFinished = ( new RunOnceScheduler(() => {
241
- this._onBeforeCommandFinished.fire(newCommand);
242
- if (!this._currentCommand.isInvalid) {
243
- this._logService.debug('CommandDetectionCapability#onCommandFinished', newCommand);
244
- this._onCommandFinished.fire(newCommand);
245
- }
246
- }, 50));
247
- this._commitCommandFinished.schedule();
248
- }
249
- this._currentCommand = ( new PartialTerminalCommand(this._terminal));
250
- this._handleCommandStartOptions = undefined;
251
- }
252
- setCommandLine(commandLine, isTrusted) {
253
- this._logService.debug('CommandDetectionCapability#setCommandLine', commandLine, isTrusted);
254
- this._currentCommand.command = commandLine;
255
- this._currentCommand.isTrusted = isTrusted;
256
- }
257
- serialize() {
258
- const commands = ( this.commands.map(e => e.serialize(this.__isCommandStorageDisabled)));
259
- const partialCommand = this._currentCommand.serialize(this._cwd);
260
- if (partialCommand) {
261
- commands.push(partialCommand);
262
- }
263
- return {
264
- isWindowsPty: this._ptyHeuristics.value instanceof WindowsPtyHeuristics,
265
- commands
266
- };
267
- }
268
- deserialize(serialized) {
269
- if (serialized.isWindowsPty) {
270
- this.setIsWindowsPty(serialized.isWindowsPty);
271
- }
272
- const buffer = this._terminal.buffer.normal;
273
- for (const e of serialized.commands) {
274
- if (!e.endLine) {
275
- const marker = e.startLine !== undefined ? this._terminal.registerMarker(e.startLine - (buffer.baseY + buffer.cursorY)) : undefined;
276
- if (!marker) {
277
- continue;
278
- }
279
- this._currentCommand.commandStartMarker = e.startLine !== undefined ? this._terminal.registerMarker(e.startLine - (buffer.baseY + buffer.cursorY)) : undefined;
280
- this._currentCommand.commandStartX = e.startX;
281
- this._currentCommand.promptStartMarker = e.promptStartLine !== undefined ? this._terminal.registerMarker(e.promptStartLine - (buffer.baseY + buffer.cursorY)) : undefined;
282
- this._cwd = e.cwd;
283
- this._onCommandStarted.fire({ marker });
284
- continue;
285
- }
286
- const newCommand = TerminalCommand.deserialize(this._terminal, e, this.__isCommandStorageDisabled);
287
- if (!newCommand) {
288
- continue;
289
- }
290
- this._commands.push(newCommand);
291
- this._logService.debug('CommandDetectionCapability#onCommandFinished', newCommand);
292
- this._onCommandFinished.fire(newCommand);
293
- }
294
- }
295
- }
296
- CommandDetectionCapability.__decorator = ( __decorate([
297
- debounce(500)
298
- ], CommandDetectionCapability.prototype, "_handleCursorMove", null));
299
- class UnixPtyHeuristics extends Disposable {
300
- constructor(_terminal, _capability, _hooks, _logService) {
301
- super();
302
- this._terminal = _terminal;
303
- this._capability = _capability;
304
- this._hooks = _hooks;
305
- this._logService = _logService;
306
- this._register(_terminal.parser.registerCsiHandler({ final: 'J' }, params => {
307
- if (params.length >= 1 && (params[0] === 2 || params[0] === 3)) {
308
- _hooks.clearCommandsInViewport();
309
- }
310
- return false;
311
- }));
312
- }
313
- async handleCommandStart(options) {
314
- this._hooks.commitCommandFinished();
315
- const currentCommand = this._capability.currentCommand;
316
- currentCommand.commandStartX = this._terminal.buffer.active.cursorX;
317
- currentCommand.commandStartMarker = options?.marker || this._terminal.registerMarker(0);
318
- currentCommand.commandExecutedMarker?.dispose();
319
- currentCommand.commandExecutedMarker = undefined;
320
- currentCommand.commandExecutedX = undefined;
321
- for (const m of this._hooks.commandMarkers) {
322
- m.dispose();
323
- }
324
- this._hooks.commandMarkers.length = 0;
325
- this._hooks.onCommandStartedEmitter.fire({ marker: options?.marker || currentCommand.commandStartMarker, markProperties: options?.markProperties });
326
- this._logService.debug('CommandDetectionCapability#handleCommandStart', currentCommand.commandStartX, currentCommand.commandStartMarker?.line);
327
- }
328
- handleCommandExecuted(options) {
329
- const currentCommand = this._capability.currentCommand;
330
- currentCommand.commandExecutedMarker = options?.marker || this._terminal.registerMarker(0);
331
- currentCommand.commandExecutedX = this._terminal.buffer.active.cursorX;
332
- this._logService.debug('CommandDetectionCapability#handleCommandExecuted', currentCommand.commandExecutedX, currentCommand.commandExecutedMarker?.line);
333
- if (!currentCommand.commandStartMarker || !currentCommand.commandExecutedMarker || currentCommand.commandStartX === undefined) {
334
- return;
335
- }
336
- currentCommand.command = this._hooks.isCommandStorageDisabled ? '' : this._terminal.buffer.active.getLine(currentCommand.commandStartMarker.line)?.translateToString(true, currentCommand.commandStartX, currentCommand.commandRightPromptStartX).trim();
337
- let y = currentCommand.commandStartMarker.line + 1;
338
- const commandExecutedLine = currentCommand.commandExecutedMarker.line;
339
- for (; y < commandExecutedLine; y++) {
340
- const line = this._terminal.buffer.active.getLine(y);
341
- if (line) {
342
- const continuation = currentCommand.continuations?.find(e => e.marker.line === y);
343
- if (continuation) {
344
- currentCommand.command += '\n';
345
- }
346
- const startColumn = continuation?.end ?? 0;
347
- currentCommand.command += line.translateToString(true, startColumn);
348
- }
349
- }
350
- if (y === commandExecutedLine) {
351
- currentCommand.command += this._terminal.buffer.active.getLine(commandExecutedLine)?.translateToString(true, undefined, currentCommand.commandExecutedX) || '';
352
- }
353
- this._hooks.onCommandExecutedEmitter.fire(currentCommand);
354
- }
355
- }
356
- let WindowsPtyHeuristics = class WindowsPtyHeuristics extends Disposable {
357
- constructor(_terminal, _capability, _hooks, _logService) {
358
- super();
359
- this._terminal = _terminal;
360
- this._capability = _capability;
361
- this._hooks = _hooks;
362
- this._logService = _logService;
363
- this._onCursorMoveListener = this._register(( new MutableDisposable()));
364
- this._tryAdjustCommandStartMarkerScannedLineCount = 0;
365
- this._tryAdjustCommandStartMarkerPollCount = 0;
366
- this._register(_terminal.parser.registerCsiHandler({ final: 'J' }, params => {
367
- if (params.length >= 1 && (params[0] === 2 || params[0] === 3)) {
368
- this._hooks.clearCommandsInViewport();
369
- }
370
- return false;
371
- }));
372
- this._register(this._capability.onBeforeCommandFinished(command => {
373
- if (command.command.trim().toLowerCase() === 'clear' || command.command.trim().toLowerCase() === 'cls') {
374
- this._tryAdjustCommandStartMarkerScheduler?.cancel();
375
- this._tryAdjustCommandStartMarkerScheduler = undefined;
376
- this._hooks.clearCommandsInViewport();
377
- this._capability.currentCommand.isInvalid = true;
378
- this._hooks.onCurrentCommandInvalidatedEmitter.fire({ reason: "windows" });
379
- }
380
- }));
381
- }
382
- preHandleResize(e) {
383
- const baseY = this._terminal.buffer.active.baseY;
384
- const rowsDifference = e.rows - this._hooks.dimensions.rows;
385
- if (rowsDifference > 0) {
386
- this._waitForCursorMove().then(() => {
387
- const potentialShiftedLineCount = Math.min(rowsDifference, baseY);
388
- for (let i = this._capability.commands.length - 1; i >= 0; i--) {
389
- const command = this._capability.commands[i];
390
- if (!command.marker || command.marker.line < baseY || command.commandStartLineContent === undefined) {
391
- break;
392
- }
393
- const line = this._terminal.buffer.active.getLine(command.marker.line);
394
- if (!line || line.translateToString(true) === command.commandStartLineContent) {
395
- continue;
396
- }
397
- const shiftedY = command.marker.line - potentialShiftedLineCount;
398
- const shiftedLine = this._terminal.buffer.active.getLine(shiftedY);
399
- if (shiftedLine?.translateToString(true) !== command.commandStartLineContent) {
400
- continue;
401
- }
402
- this._terminal._core._bufferService.buffer.lines.onDeleteEmitter.fire({
403
- index: this._terminal.buffer.active.baseY,
404
- amount: potentialShiftedLineCount
405
- });
406
- }
407
- });
408
- }
409
- }
410
- async handleCommandStart() {
411
- this._capability.currentCommand.commandStartX = this._terminal.buffer.active.cursorX;
412
- this._hooks.commandMarkers.length = 0;
413
- const initialCommandStartMarker = this._capability.currentCommand.commandStartMarker = (this._capability.currentCommand.promptStartMarker
414
- ? cloneMarker(this._terminal, this._capability.currentCommand.promptStartMarker)
415
- : this._terminal.registerMarker(0));
416
- this._capability.currentCommand.commandStartX = 0;
417
- this._tryAdjustCommandStartMarkerScannedLineCount = 0;
418
- this._tryAdjustCommandStartMarkerPollCount = 0;
419
- this._tryAdjustCommandStartMarkerScheduler = ( new RunOnceScheduler(
420
- () => this._tryAdjustCommandStartMarker(initialCommandStartMarker),
421
- 20
422
- ));
423
- this._tryAdjustCommandStartMarkerScheduler.schedule();
424
- }
425
- _tryAdjustCommandStartMarker(start) {
426
- if (this._store.isDisposed) {
427
- return;
428
- }
429
- const buffer = this._terminal.buffer.active;
430
- let scannedLineCount = this._tryAdjustCommandStartMarkerScannedLineCount;
431
- while (scannedLineCount < 5 && start.line + scannedLineCount < buffer.baseY + this._terminal.rows) {
432
- if (this._cursorOnNextLine()) {
433
- const prompt = this._getWindowsPrompt(start.line + scannedLineCount);
434
- if (prompt) {
435
- const adjustedPrompt = typeof prompt === 'string' ? prompt : prompt.prompt;
436
- this._capability.currentCommand.commandStartMarker = this._terminal.registerMarker(0);
437
- if (typeof prompt === 'object' && prompt.likelySingleLine) {
438
- this._logService.debug('CommandDetectionCapability#_tryAdjustCommandStartMarker adjusted promptStart', `${this._capability.currentCommand.promptStartMarker?.line} -> ${this._capability.currentCommand.commandStartMarker.line}`);
439
- this._capability.currentCommand.promptStartMarker?.dispose();
440
- this._capability.currentCommand.promptStartMarker = cloneMarker(this._terminal, this._capability.currentCommand.commandStartMarker);
441
- const lastCommand = this._capability.commands.at(-1);
442
- if (lastCommand && this._capability.currentCommand.commandStartMarker.line !== lastCommand.endMarker?.line) {
443
- lastCommand.endMarker?.dispose();
444
- lastCommand.endMarker = cloneMarker(this._terminal, this._capability.currentCommand.commandStartMarker);
445
- }
446
- }
447
- this._capability.currentCommand.commandStartX = adjustedPrompt.length;
448
- this._logService.debug('CommandDetectionCapability#_tryAdjustCommandStartMarker adjusted commandStart', `${start.line} -> ${this._capability.currentCommand.commandStartMarker.line}:${this._capability.currentCommand.commandStartX}`);
449
- this._flushPendingHandleCommandStartTask();
450
- return;
451
- }
452
- }
453
- scannedLineCount++;
454
- }
455
- if (scannedLineCount < 5 ) {
456
- this._tryAdjustCommandStartMarkerScannedLineCount = scannedLineCount;
457
- if (this._tryAdjustCommandStartMarkerPollCount < 50 ) {
458
- this._tryAdjustCommandStartMarkerScheduler?.schedule();
459
- }
460
- else {
461
- this._flushPendingHandleCommandStartTask();
462
- }
463
- }
464
- else {
465
- this._flushPendingHandleCommandStartTask();
466
- }
467
- }
468
- _flushPendingHandleCommandStartTask() {
469
- if (this._tryAdjustCommandStartMarkerScheduler) {
470
- this._tryAdjustCommandStartMarkerPollCount = 50 ;
471
- this._tryAdjustCommandStartMarkerScheduler.flush();
472
- this._tryAdjustCommandStartMarkerScheduler = undefined;
473
- }
474
- this._hooks.commitCommandFinished();
475
- if (!this._capability.currentCommand.commandExecutedMarker) {
476
- this._onCursorMoveListener.value = this._terminal.onCursorMove(() => {
477
- if (this._hooks.commandMarkers.length === 0 || this._hooks.commandMarkers[this._hooks.commandMarkers.length - 1].line !== this._terminal.buffer.active.cursorY) {
478
- const marker = this._terminal.registerMarker(0);
479
- if (marker) {
480
- this._hooks.commandMarkers.push(marker);
481
- }
482
- }
483
- });
484
- }
485
- if (this._capability.currentCommand.commandStartMarker) {
486
- const line = this._terminal.buffer.active.getLine(this._capability.currentCommand.commandStartMarker.line);
487
- if (line) {
488
- this._capability.currentCommand.commandStartLineContent = line.translateToString(true);
489
- }
490
- }
491
- this._hooks.onCommandStartedEmitter.fire({ marker: this._capability.currentCommand.commandStartMarker });
492
- this._logService.debug('CommandDetectionCapability#_handleCommandStartWindows', this._capability.currentCommand.commandStartX, this._capability.currentCommand.commandStartMarker?.line);
493
- }
494
- handleCommandExecuted(options) {
495
- if (this._tryAdjustCommandStartMarkerScheduler) {
496
- this._flushPendingHandleCommandStartTask();
497
- }
498
- this._onCursorMoveListener.clear();
499
- this._evaluateCommandMarkers();
500
- this._capability.currentCommand.commandExecutedX = this._terminal.buffer.active.cursorX;
501
- this._hooks.onCommandExecutedEmitter.fire(this._capability.currentCommand);
502
- this._logService.debug('CommandDetectionCapability#handleCommandExecuted', this._capability.currentCommand.commandExecutedX, this._capability.currentCommand.commandExecutedMarker?.line);
503
- }
504
- preHandleCommandFinished() {
505
- if (this._capability.currentCommand.commandExecutedMarker) {
506
- return;
507
- }
508
- if (this._hooks.commandMarkers.length === 0) {
509
- if (!this._capability.currentCommand.commandStartMarker) {
510
- this._capability.currentCommand.commandStartMarker = this._terminal.registerMarker(0);
511
- }
512
- if (this._capability.currentCommand.commandStartMarker) {
513
- this._hooks.commandMarkers.push(this._capability.currentCommand.commandStartMarker);
514
- }
515
- }
516
- this._evaluateCommandMarkers();
517
- }
518
- postHandleCommandFinished() {
519
- const currentCommand = this._capability.currentCommand;
520
- const commandText = currentCommand.command;
521
- const commandLine = currentCommand.commandStartMarker?.line;
522
- const executedLine = currentCommand.commandExecutedMarker?.line;
523
- if (!commandText || commandText.length === 0 ||
524
- commandLine === undefined || commandLine === -1 ||
525
- executedLine === undefined || executedLine === -1) {
526
- return;
527
- }
528
- let current = 0;
529
- let found = false;
530
- for (let i = commandLine; i <= executedLine; i++) {
531
- const line = this._terminal.buffer.active.getLine(i);
532
- if (!line) {
533
- break;
534
- }
535
- const text = line.translateToString(true);
536
- for (let j = 0; j < text.length; j++) {
537
- while (commandText.length < current && commandText[current] === ' ') {
538
- current++;
539
- }
540
- if (text[j] === commandText[current]) {
541
- current++;
542
- }
543
- if (current === commandText.length) {
544
- const wrapsToNextLine = j >= this._terminal.cols - 1;
545
- currentCommand.commandExecutedMarker = this._terminal.registerMarker(i - (this._terminal.buffer.active.baseY + this._terminal.buffer.active.cursorY) + (wrapsToNextLine ? 1 : 0));
546
- currentCommand.commandExecutedX = wrapsToNextLine ? 0 : j + 1;
547
- found = true;
548
- break;
549
- }
550
- }
551
- if (found) {
552
- break;
553
- }
554
- }
555
- }
556
- _evaluateCommandMarkers() {
557
- if (this._hooks.commandMarkers.length === 0) {
558
- return;
559
- }
560
- this._hooks.commandMarkers = this._hooks.commandMarkers.sort((a, b) => a.line - b.line);
561
- this._capability.currentCommand.commandStartMarker = this._hooks.commandMarkers[0];
562
- if (this._capability.currentCommand.commandStartMarker) {
563
- const line = this._terminal.buffer.active.getLine(this._capability.currentCommand.commandStartMarker.line);
564
- if (line) {
565
- this._capability.currentCommand.commandStartLineContent = line.translateToString(true);
566
- }
567
- }
568
- this._capability.currentCommand.commandExecutedMarker = this._hooks.commandMarkers[this._hooks.commandMarkers.length - 1];
569
- this._hooks.onCommandExecutedEmitter.fire(this._capability.currentCommand);
570
- }
571
- _cursorOnNextLine() {
572
- const lastCommand = this._capability.commands.at(-1);
573
- if (!lastCommand) {
574
- return true;
575
- }
576
- const cursorYAbsolute = this._terminal.buffer.active.baseY + this._terminal.buffer.active.cursorY;
577
- const lastCommandYAbsolute = (lastCommand.endMarker ? lastCommand.endMarker.line : lastCommand.marker?.line) ?? -1;
578
- return cursorYAbsolute > lastCommandYAbsolute;
579
- }
580
- _waitForCursorMove() {
581
- const cursorX = this._terminal.buffer.active.cursorX;
582
- const cursorY = this._terminal.buffer.active.cursorY;
583
- let totalDelay = 0;
584
- return ( new Promise((resolve, reject) => {
585
- const interval = setInterval(() => {
586
- if (cursorX !== this._terminal.buffer.active.cursorX || cursorY !== this._terminal.buffer.active.cursorY) {
587
- resolve();
588
- clearInterval(interval);
589
- return;
590
- }
591
- totalDelay += 10;
592
- if (totalDelay > 1000) {
593
- clearInterval(interval);
594
- resolve();
595
- }
596
- }, 10);
597
- }));
598
- }
599
- _getWindowsPrompt(y = this._terminal.buffer.active.baseY + this._terminal.buffer.active.cursorY) {
600
- const line = this._terminal.buffer.active.getLine(y);
601
- if (!line) {
602
- return;
603
- }
604
- const lineText = line.translateToString(true);
605
- if (!lineText) {
606
- return;
607
- }
608
- const pwshPrompt = lineText.match(/(?<prompt>(\(.+\)\s)?(?:PS.+>\s?))/)?.groups?.prompt;
609
- if (pwshPrompt) {
610
- const adjustedPrompt = this._adjustPrompt(pwshPrompt, lineText, '>');
611
- if (adjustedPrompt) {
612
- return {
613
- prompt: adjustedPrompt,
614
- likelySingleLine: true
615
- };
616
- }
617
- }
618
- const customPrompt = lineText.match(/.*\u276f(?=[^\u276f]*$)/g)?.[0];
619
- if (customPrompt) {
620
- const adjustedPrompt = this._adjustPrompt(customPrompt, lineText, '\u276f');
621
- if (adjustedPrompt) {
622
- return adjustedPrompt;
623
- }
624
- }
625
- const pythonPrompt = lineText.match(/^(?<prompt>>>> )/g)?.groups?.prompt;
626
- if (pythonPrompt) {
627
- return {
628
- prompt: pythonPrompt,
629
- likelySingleLine: true
630
- };
631
- }
632
- const cmdMatch = lineText.match(/^(?<prompt>(\(.+\)\s)?(?:[A-Z]:\\.*>))/);
633
- return cmdMatch?.groups?.prompt ? {
634
- prompt: cmdMatch.groups.prompt,
635
- likelySingleLine: true
636
- } : undefined;
637
- }
638
- _adjustPrompt(prompt, lineText, char) {
639
- if (!prompt) {
640
- return;
641
- }
642
- if (lineText === prompt && prompt.endsWith(char)) {
643
- prompt += ' ';
644
- }
645
- return prompt;
646
- }
647
- };
648
- WindowsPtyHeuristics = ( __decorate([
649
- ( __param(3, ILogService))
650
- ], WindowsPtyHeuristics));
651
- function getLinesForCommand(buffer, command, cols, outputMatcher) {
652
- if (!outputMatcher) {
653
- return undefined;
654
- }
655
- const executedMarker = command.executedMarker;
656
- const endMarker = command.endMarker;
657
- if (!executedMarker || !endMarker) {
658
- return undefined;
659
- }
660
- const startLine = executedMarker.line;
661
- const endLine = endMarker.line;
662
- const linesToCheck = outputMatcher.length;
663
- const lines = [];
664
- if (outputMatcher.anchor === 'bottom') {
665
- for (let i = endLine - (outputMatcher.offset || 0); i >= startLine; i--) {
666
- let wrappedLineStart = i;
667
- const wrappedLineEnd = i;
668
- while (wrappedLineStart >= startLine && buffer.getLine(wrappedLineStart)?.isWrapped) {
669
- wrappedLineStart--;
670
- }
671
- i = wrappedLineStart;
672
- lines.unshift(getXtermLineContent(buffer, wrappedLineStart, wrappedLineEnd, cols));
673
- if (lines.length > linesToCheck) {
674
- lines.pop();
675
- }
676
- }
677
- }
678
- else {
679
- for (let i = startLine + (outputMatcher.offset || 0); i < endLine; i++) {
680
- const wrappedLineStart = i;
681
- let wrappedLineEnd = i;
682
- while (wrappedLineEnd + 1 < endLine && buffer.getLine(wrappedLineEnd + 1)?.isWrapped) {
683
- wrappedLineEnd++;
684
- }
685
- i = wrappedLineEnd;
686
- lines.push(getXtermLineContent(buffer, wrappedLineStart, wrappedLineEnd, cols));
687
- if (lines.length === linesToCheck) {
688
- lines.shift();
689
- }
690
- }
691
- }
692
- return lines;
693
- }
694
- function getXtermLineContent(buffer, lineStart, lineEnd, cols) {
695
- const maxLineLength = Math.max(2048 / cols * 2);
696
- lineEnd = Math.min(lineEnd, lineStart + maxLineLength);
697
- let content = '';
698
- for (let i = lineStart; i <= lineEnd; i++) {
699
- const line = buffer.getLine(i);
700
- if (line) {
701
- content += line.translateToString(true, 0, cols);
702
- }
703
- }
704
- return content;
705
- }
706
- function cloneMarker(xterm, marker, offset = 0) {
707
- return xterm.registerMarker(marker.line - (xterm.buffer.active.baseY + xterm.buffer.active.cursorY) + offset);
708
- }
709
- export { CommandDetectionCapability, getLinesForCommand };