@codingame/monaco-vscode-api 1.82.4 → 1.82.5-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (567) hide show
  1. package/extensions.d.ts +3 -3
  2. package/external/xterm/typings/xterm.d.ts +1729 -0
  3. package/external/xterm-addon-canvas/typings/xterm-addon-canvas.d.ts +38 -0
  4. package/external/xterm-addon-image/typings/xterm-addon-image.d.ts +115 -0
  5. package/external/xterm-addon-search/typings/xterm-addon-search.d.ts +141 -0
  6. package/external/xterm-addon-serialize/typings/xterm-addon-serialize.d.ts +83 -0
  7. package/external/xterm-addon-unicode11/typings/xterm-addon-unicode11.d.ts +9 -0
  8. package/external/xterm-addon-webgl/typings/xterm-addon-webgl.d.ts +43 -0
  9. package/external/xterm-headless/typings/xterm-headless.d.ts +49 -0
  10. package/missing-services.js +0 -1
  11. package/monaco-editor-treemending.patch +1026 -1026
  12. package/package.json +21 -1
  13. package/service-override/bulkEdit.js +0 -1
  14. package/service-override/environment.js +0 -1
  15. package/service-override/extensions.js +1 -1
  16. package/service-override/files.js +0 -1
  17. package/service-override/keybindings.js +1 -6
  18. package/service-override/layout.js +0 -1
  19. package/service-override/output.js +0 -1
  20. package/service-override/quickaccess.js +0 -1
  21. package/services.js +10 -0
  22. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.d.ts +1 -1
  23. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -1
  24. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +7 -7
  25. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +1 -1
  26. package/README.md +0 -392
  27. package/override/vs/workbench/contrib/notebook/browser/notebookEditor.js +0 -2
  28. package/service-override/accessibility.d.ts +0 -5
  29. package/service-override/accessibility.js +0 -11
  30. package/service-override/audioCue.d.ts +0 -5
  31. package/service-override/audioCue.js +0 -13
  32. package/service-override/bulkEdit.d.ts +0 -5
  33. package/service-override/configuration.d.ts +0 -17
  34. package/service-override/configuration.js +0 -117
  35. package/service-override/debug.d.ts +0 -5
  36. package/service-override/debug.js +0 -23
  37. package/service-override/dialogs.d.ts +0 -5
  38. package/service-override/dialogs.js +0 -57
  39. package/service-override/editor.d.ts +0 -10
  40. package/service-override/editor.js +0 -37
  41. package/service-override/environment.d.ts +0 -6
  42. package/service-override/extensions.d.ts +0 -50
  43. package/service-override/files.d.ts +0 -103
  44. package/service-override/keybindings.d.ts +0 -10
  45. package/service-override/languageDetectionWorker.d.ts +0 -5
  46. package/service-override/languageDetectionWorker.js +0 -15
  47. package/service-override/languages.d.ts +0 -11
  48. package/service-override/languages.js +0 -27
  49. package/service-override/layout.d.ts +0 -71
  50. package/service-override/lifecycle.d.ts +0 -5
  51. package/service-override/lifecycle.js +0 -10
  52. package/service-override/markers.d.ts +0 -5
  53. package/service-override/markers.js +0 -6
  54. package/service-override/model.d.ts +0 -5
  55. package/service-override/model.js +0 -10
  56. package/service-override/notifications.d.ts +0 -5
  57. package/service-override/notifications.js +0 -34
  58. package/service-override/output.d.ts +0 -6
  59. package/service-override/preferences.d.ts +0 -5
  60. package/service-override/preferences.js +0 -16
  61. package/service-override/quickaccess.d.ts +0 -10
  62. package/service-override/remoteAgent.d.ts +0 -6
  63. package/service-override/remoteAgent.js +0 -42
  64. package/service-override/search.d.ts +0 -5
  65. package/service-override/search.js +0 -19
  66. package/service-override/snippets.d.ts +0 -9
  67. package/service-override/snippets.js +0 -21
  68. package/service-override/storage.d.ts +0 -40
  69. package/service-override/storage.js +0 -116
  70. package/service-override/terminal.d.ts +0 -69
  71. package/service-override/terminal.js +0 -117
  72. package/service-override/textmate.d.ts +0 -6
  73. package/service-override/textmate.js +0 -41
  74. package/service-override/theme.d.ts +0 -7
  75. package/service-override/theme.js +0 -26
  76. package/service-override/viewBanner.d.ts +0 -6
  77. package/service-override/viewBanner.js +0 -10
  78. package/service-override/viewStatusBar.d.ts +0 -6
  79. package/service-override/viewStatusBar.js +0 -10
  80. package/service-override/viewTitleBar.d.ts +0 -6
  81. package/service-override/viewTitleBar.js +0 -10
  82. package/service-override/views.d.ts +0 -74
  83. package/service-override/views.js +0 -511
  84. package/service-override/workspaceTrust.d.ts +0 -5
  85. package/service-override/workspaceTrust.js +0 -13
  86. package/vscode/src/vs/base/browser/broadcast.js +0 -52
  87. package/vscode/src/vs/base/browser/indexedDB.d.ts +0 -17
  88. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -178
  89. package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -465
  90. package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -4
  91. package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -977
  92. package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +0 -60
  93. package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +0 -14
  94. package/vscode/src/vs/base/common/codicons.d.ts +0 -556
  95. package/vscode/src/vs/base/common/processes.js +0 -24
  96. package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -42
  97. package/vscode/src/vs/editor/common/services/modelUndoRedoParticipant.js +0 -56
  98. package/vscode/src/vs/editor/common/services/textResourceConfigurationService.js +0 -116
  99. package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +0 -67
  100. package/vscode/src/vs/platform/audioCues/browser/media/all.mp3.js +0 -20
  101. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +0 -10
  102. package/vscode/src/vs/platform/download/common/downloadIpc.js +0 -16
  103. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +0 -43
  104. package/vscode/src/vs/platform/files/common/diskFileSystemProviderClient.js +0 -136
  105. package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.d.ts +0 -50
  106. package/vscode/src/vs/platform/log/common/logIpc.js +0 -24
  107. package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +0 -94
  108. package/vscode/src/vs/platform/remote/browser/browserSocketFactory.js +0 -193
  109. package/vscode/src/vs/platform/remote/browser/remoteAuthorityResolverService.js +0 -107
  110. package/vscode/src/vs/platform/terminal/common/capabilities/bufferMarkCapability.js +0 -41
  111. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +0 -566
  112. package/vscode/src/vs/platform/terminal/common/capabilities/cwdDetectionCapability.js +0 -29
  113. package/vscode/src/vs/platform/terminal/common/capabilities/naiveCwdDetectionCapability.js +0 -22
  114. package/vscode/src/vs/platform/terminal/common/capabilities/partialCommandDetectionCapability.js +0 -46
  115. package/vscode/src/vs/platform/terminal/common/capabilities/terminalCapabilityStore.js +0 -94
  116. package/vscode/src/vs/platform/terminal/common/environmentVariable.js +0 -7
  117. package/vscode/src/vs/platform/terminal/common/environmentVariableCollection.js +0 -196
  118. package/vscode/src/vs/platform/terminal/common/terminalEnvironment.js +0 -37
  119. package/vscode/src/vs/platform/terminal/common/terminalLogService.js +0 -42
  120. package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +0 -467
  121. package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +0 -107
  122. package/vscode/src/vs/platform/terminal/common/terminalRecorder.js +0 -66
  123. package/vscode/src/vs/platform/terminal/common/terminalStrings.js +0 -16
  124. package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +0 -319
  125. package/vscode/src/vs/platform/userDataSync/common/settingsMerge.js +0 -40
  126. package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -22
  127. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -62
  128. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -699
  129. package/vscode/src/vs/workbench/api/common/configurationExtensionPoint.js +0 -450
  130. package/vscode/src/vs/workbench/api/common/extHost.api.impl.d.ts +0 -14
  131. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +0 -236
  132. package/vscode/src/vs/workbench/api/common/extHostConfiguration.d.ts +0 -43
  133. package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.d.ts +0 -33
  134. package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +0 -138
  135. package/vscode/src/vs/workbench/api/common/extHostFileSystemInfo.d.ts +0 -21
  136. package/vscode/src/vs/workbench/api/common/extHostInitDataService.d.ts +0 -9
  137. package/vscode/src/vs/workbench/api/common/extHostLocalizationService.d.ts +0 -29
  138. package/vscode/src/vs/workbench/api/common/extHostManagedSockets.d.ts +0 -11
  139. package/vscode/src/vs/workbench/api/common/extHostRpcService.d.ts +0 -9
  140. package/vscode/src/vs/workbench/api/common/extHostStoragePaths.d.ts +0 -14
  141. package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +0 -53
  142. package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +0 -19
  143. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +0 -12
  144. package/vscode/src/vs/workbench/api/common/extHostUriTransformerService.d.ts +0 -9
  145. package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +0 -91
  146. package/vscode/src/vs/workbench/api/worker/extHostExtensionService.d.ts +0 -21
  147. package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -605
  148. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarActions.js +0 -597
  149. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +0 -116
  150. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -783
  151. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -4
  152. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -4
  153. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -88
  154. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -4
  155. package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.js +0 -228
  156. package/vscode/src/vs/workbench/browser/parts/banner/media/bannerpart.css.js +0 -4
  157. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -691
  158. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +0 -7
  159. package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +0 -84
  160. package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -318
  161. package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +0 -69
  162. package/vscode/src/vs/workbench/browser/parts/dialogs/dialogHandler.js +0 -127
  163. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +0 -692
  164. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsModel.js +0 -141
  165. package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +0 -414
  166. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -507
  167. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +0 -1233
  168. package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +0 -133
  169. package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +0 -306
  170. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -850
  171. package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css.js +0 -4
  172. package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -4
  173. package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css.js +0 -4
  174. package/vscode/src/vs/workbench/browser/parts/editor/media/notabstitlecontrol.css.js +0 -4
  175. package/vscode/src/vs/workbench/browser/parts/editor/media/tabstitlecontrol.css.js +0 -4
  176. package/vscode/src/vs/workbench/browser/parts/editor/media/titlecontrol.css.js +0 -4
  177. package/vscode/src/vs/workbench/browser/parts/editor/noTabsTitleControl.js +0 -247
  178. package/vscode/src/vs/workbench/browser/parts/editor/tabsTitleControl.js +0 -1569
  179. package/vscode/src/vs/workbench/browser/parts/editor/titleControl.js +0 -292
  180. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -4
  181. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +0 -4
  182. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +0 -4
  183. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +0 -4
  184. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +0 -4
  185. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +0 -124
  186. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +0 -58
  187. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +0 -227
  188. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +0 -212
  189. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +0 -419
  190. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +0 -398
  191. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -78
  192. package/vscode/src/vs/workbench/browser/parts/panel/media/basepanelpart.css.js +0 -4
  193. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +0 -134
  194. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -756
  195. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -4
  196. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +0 -59
  197. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -217
  198. package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css.js +0 -4
  199. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +0 -109
  200. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +0 -234
  201. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarModel.js +0 -249
  202. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +0 -439
  203. package/vscode/src/vs/workbench/browser/parts/titlebar/commandCenterControl.js +0 -134
  204. package/vscode/src/vs/workbench/browser/parts/titlebar/media/titlebarpart.css.js +0 -4
  205. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.d.ts +0 -115
  206. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +0 -77
  207. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.js +0 -365
  208. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +0 -216
  209. package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +0 -104
  210. package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +0 -4
  211. package/vscode/src/vs/workbench/browser/parts/views/treeView.js +0 -1589
  212. package/vscode/src/vs/workbench/common/activity.js +0 -3
  213. package/vscode/src/vs/workbench/common/dialogs.js +0 -31
  214. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibility.contribution.js +0 -13
  215. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +0 -312
  216. package/vscode/src/vs/workbench/contrib/accessibility/browser/unfocusedViewDimmingContribution.js +0 -63
  217. package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueDebuggerContribution.js +0 -45
  218. package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCueLineFeatureContribution.js +0 -170
  219. package/vscode/src/vs/workbench/contrib/audioCues/browser/audioCues.contribution.js +0 -181
  220. package/vscode/src/vs/workbench/contrib/audioCues/browser/commands.js +0 -49
  221. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -262
  222. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -339
  223. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -119
  224. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -4
  225. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.css.js +0 -4
  226. package/vscode/src/vs/workbench/contrib/codeEditor/browser/accessibility/accessibility.js +0 -35
  227. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +0 -4
  228. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +0 -345
  229. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsOutline.js +0 -362
  230. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.css.js +0 -4
  231. package/vscode/src/vs/workbench/contrib/codeEditor/browser/outline/documentSymbolsTree.js +0 -255
  232. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.css.js +0 -4
  233. package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +0 -249
  234. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -14
  235. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -137
  236. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -212
  237. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -4
  238. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -72
  239. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -61
  240. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -106
  241. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +0 -198
  242. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +0 -783
  243. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +0 -397
  244. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +0 -1296
  245. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +0 -176
  246. package/vscode/src/vs/workbench/contrib/debug/browser/callStackView.js +0 -958
  247. package/vscode/src/vs/workbench/contrib/debug/browser/debug.contribution.js +0 -496
  248. package/vscode/src/vs/workbench/contrib/debug/browser/debugANSIHandling.js +0 -345
  249. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +0 -297
  250. package/vscode/src/vs/workbench/contrib/debug/browser/debugAdapterManager.js +0 -398
  251. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +0 -825
  252. package/vscode/src/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +0 -619
  253. package/vscode/src/vs/workbench/contrib/debug/browser/debugConsoleQuickAccess.js +0 -58
  254. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorActions.js +0 -525
  255. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +0 -679
  256. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +0 -354
  257. package/vscode/src/vs/workbench/contrib/debug/browser/debugMemory.js +0 -204
  258. package/vscode/src/vs/workbench/contrib/debug/browser/debugProgress.js +0 -80
  259. package/vscode/src/vs/workbench/contrib/debug/browser/debugQuickAccess.js +0 -141
  260. package/vscode/src/vs/workbench/contrib/debug/browser/debugService.js +0 -1172
  261. package/vscode/src/vs/workbench/contrib/debug/browser/debugSession.js +0 -1142
  262. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +0 -104
  263. package/vscode/src/vs/workbench/contrib/debug/browser/debugStatus.js +0 -66
  264. package/vscode/src/vs/workbench/contrib/debug/browser/debugTaskRunner.js +0 -273
  265. package/vscode/src/vs/workbench/contrib/debug/browser/debugToolBar.js +0 -312
  266. package/vscode/src/vs/workbench/contrib/debug/browser/debugViewlet.js +0 -166
  267. package/vscode/src/vs/workbench/contrib/debug/browser/disassemblyView.js +0 -661
  268. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +0 -103
  269. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +0 -229
  270. package/vscode/src/vs/workbench/contrib/debug/browser/loadedScriptsView.js +0 -629
  271. package/vscode/src/vs/workbench/contrib/debug/browser/media/breakpointWidget.css.js +0 -4
  272. package/vscode/src/vs/workbench/contrib/debug/browser/media/callStackEditorContribution.css.js +0 -4
  273. package/vscode/src/vs/workbench/contrib/debug/browser/media/debug.contribution.css.js +0 -4
  274. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugHover.css.js +0 -4
  275. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugToolBar.css.js +0 -4
  276. package/vscode/src/vs/workbench/contrib/debug/browser/media/debugViewlet.css.js +0 -4
  277. package/vscode/src/vs/workbench/contrib/debug/browser/media/exceptionWidget.css.js +0 -4
  278. package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css.js +0 -4
  279. package/vscode/src/vs/workbench/contrib/debug/browser/rawDebugSession.js +0 -693
  280. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +0 -951
  281. package/vscode/src/vs/workbench/contrib/debug/browser/replFilter.js +0 -46
  282. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +0 -334
  283. package/vscode/src/vs/workbench/contrib/debug/browser/statusbarColorProvider.js +0 -96
  284. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +0 -573
  285. package/vscode/src/vs/workbench/contrib/debug/browser/watchExpressionsView.js +0 -413
  286. package/vscode/src/vs/workbench/contrib/debug/browser/welcomeView.js +0 -100
  287. package/vscode/src/vs/workbench/contrib/debug/common/breakpoints.js +0 -19
  288. package/vscode/src/vs/workbench/contrib/debug/common/debugCompoundRoot.js +0 -15
  289. package/vscode/src/vs/workbench/contrib/debug/common/debugContentProvider.js +0 -98
  290. package/vscode/src/vs/workbench/contrib/debug/common/debugLifecycle.js +0 -57
  291. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +0 -1480
  292. package/vscode/src/vs/workbench/contrib/debug/common/debugSchemas.js +0 -344
  293. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +0 -121
  294. package/vscode/src/vs/workbench/contrib/debug/common/debugStorage.js +0 -173
  295. package/vscode/src/vs/workbench/contrib/debug/common/debugTelemetry.js +0 -34
  296. package/vscode/src/vs/workbench/contrib/debug/common/debugViewModel.js +0 -115
  297. package/vscode/src/vs/workbench/contrib/debug/common/debugger.js +0 -258
  298. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +0 -25
  299. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +0 -81
  300. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +0 -281
  301. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +0 -2414
  302. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +0 -4
  303. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +0 -16
  304. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -5
  305. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +0 -73
  306. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +0 -36
  307. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorInput.js +0 -325
  308. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +0 -230
  309. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +0 -97
  310. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +0 -352
  311. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +0 -426
  312. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -508
  313. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -615
  314. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js +0 -94
  315. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +0 -144
  316. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +0 -53
  317. package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +0 -134
  318. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -353
  319. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -4
  320. package/vscode/src/vs/workbench/contrib/markers/browser/markers.contribution.js +0 -586
  321. package/vscode/src/vs/workbench/contrib/markers/browser/markersFilterOptions.js +0 -75
  322. package/vscode/src/vs/workbench/contrib/markers/browser/markersModel.js +0 -200
  323. package/vscode/src/vs/workbench/contrib/markers/browser/markersTable.js +0 -455
  324. package/vscode/src/vs/workbench/contrib/markers/browser/markersTreeViewer.js +0 -670
  325. package/vscode/src/vs/workbench/contrib/markers/browser/markersView.js +0 -873
  326. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.css.js +0 -4
  327. package/vscode/src/vs/workbench/contrib/markers/browser/markersViewActions.js +0 -132
  328. package/vscode/src/vs/workbench/contrib/markers/browser/media/markers.css.js +0 -4
  329. package/vscode/src/vs/workbench/contrib/markers/browser/messages.js +0 -170
  330. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findFilters.js +0 -70
  331. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css.js +0 -4
  332. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +0 -158
  333. package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +0 -3
  334. package/vscode/src/vs/workbench/contrib/outline/browser/outline.contribution.js +0 -261
  335. package/vscode/src/vs/workbench/contrib/outline/browser/outline.js +0 -10
  336. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.css.js +0 -4
  337. package/vscode/src/vs/workbench/contrib/outline/browser/outlinePane.js +0 -290
  338. package/vscode/src/vs/workbench/contrib/outline/browser/outlineViewState.js +0 -66
  339. package/vscode/src/vs/workbench/contrib/output/common/outputLinkComputer.js +0 -129
  340. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +0 -272
  341. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingsEditor.js +0 -1102
  342. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css.js +0 -4
  343. package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindingsEditor.css.js +0 -4
  344. package/vscode/src/vs/workbench/contrib/preferences/browser/media/preferences.css.js +0 -4
  345. package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsEditor2.css.js +0 -4
  346. package/vscode/src/vs/workbench/contrib/preferences/browser/media/settingsWidgets.css.js +0 -4
  347. package/vscode/src/vs/workbench/contrib/preferences/browser/preferences.contribution.js +0 -1213
  348. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesActions.js +0 -94
  349. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesEditor.js +0 -47
  350. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +0 -37
  351. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesRenderers.js +0 -747
  352. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesSearch.js +0 -349
  353. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +0 -468
  354. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditor2.js +0 -1477
  355. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsEditorSettingIndicators.js +0 -504
  356. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +0 -296
  357. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsSearchMenu.js +0 -79
  358. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTree.js +0 -2041
  359. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +0 -771
  360. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsWidgets.js +0 -1004
  361. package/vscode/src/vs/workbench/contrib/preferences/browser/tocTree.js +0 -196
  362. package/vscode/src/vs/workbench/contrib/preferences/common/preferencesContribution.js +0 -151
  363. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +0 -67
  364. package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +0 -4
  365. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -207
  366. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +0 -27
  367. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +0 -1666
  368. package/vscode/src/vs/workbench/contrib/remote/common/remote.contribution.js +0 -481
  369. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +0 -759
  370. package/vscode/src/vs/workbench/contrib/search/browser/media/anythingQuickAccess.css.js +0 -4
  371. package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css.js +0 -4
  372. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearchContributions.js +0 -7
  373. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +0 -220
  374. package/vscode/src/vs/workbench/contrib/search/browser/quickTextSearch/textSearchQuickAccess.js +0 -232
  375. package/vscode/src/vs/workbench/contrib/search/browser/replaceContributions.js +0 -7
  376. package/vscode/src/vs/workbench/contrib/search/browser/replaceService.js +0 -224
  377. package/vscode/src/vs/workbench/contrib/search/browser/search.contribution.js +0 -513
  378. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +0 -46
  379. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsCopy.js +0 -204
  380. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +0 -354
  381. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsNav.js +0 -459
  382. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsRemoveReplace.js +0 -365
  383. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsSymbol.js +0 -35
  384. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTextQuickAccess.js +0 -23
  385. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +0 -308
  386. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +0 -41
  387. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +0 -39
  388. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +0 -58
  389. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +0 -383
  390. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +0 -1916
  391. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +0 -636
  392. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +0 -220
  393. package/vscode/src/vs/workbench/contrib/search/common/cacheState.js +0 -85
  394. package/vscode/src/vs/workbench/contrib/search/common/constants.js +0 -66
  395. package/vscode/src/vs/workbench/contrib/searchEditor/browser/constants.js +0 -11
  396. package/vscode/src/vs/workbench/contrib/searchEditor/browser/media/searchEditor.css.js +0 -4
  397. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.contribution.js +0 -477
  398. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditor.js +0 -700
  399. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorActions.js +0 -187
  400. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +0 -298
  401. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorModel.js +0 -135
  402. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +0 -268
  403. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +0 -20
  404. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/configureSnippets.js +0 -264
  405. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +0 -87
  406. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/insertSnippet.js +0 -126
  407. package/vscode/src/vs/workbench/contrib/snippets/browser/commands/surroundWithSnippet.js +0 -56
  408. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCodeActionProvider.js +0 -136
  409. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetPicker.js +0 -83
  410. package/vscode/src/vs/workbench/contrib/snippets/browser/snippets.contribution.js +0 -113
  411. package/vscode/src/vs/workbench/contrib/terminal/browser/baseTerminalBackend.js +0 -101
  412. package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +0 -54
  413. package/vscode/src/vs/workbench/contrib/terminal/browser/environmentVariableInfo.js +0 -119
  414. package/vscode/src/vs/workbench/contrib/terminal/browser/media/scrollbar.css.js +0 -4
  415. package/vscode/src/vs/workbench/contrib/terminal/browser/media/terminal.css.js +0 -4
  416. package/vscode/src/vs/workbench/contrib/terminal/browser/media/widgets.css.js +0 -4
  417. package/vscode/src/vs/workbench/contrib/terminal/browser/media/xterm.css.js +0 -4
  418. package/vscode/src/vs/workbench/contrib/terminal/browser/remotePty.js +0 -175
  419. package/vscode/src/vs/workbench/contrib/terminal/browser/remoteTerminalBackend.js +0 -311
  420. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.contribution.js +0 -240
  421. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalActions.js +0 -1964
  422. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalCommands.js +0 -22
  423. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.js +0 -215
  424. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalContextMenu.js +0 -16
  425. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditor.js +0 -186
  426. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorService.js +0 -239
  427. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
  428. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalExtensions.js +0 -25
  429. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroup.js +0 -482
  430. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalGroupService.js +0 -367
  431. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +0 -37
  432. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstance.js +0 -2101
  433. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalInstanceService.js +0 -82
  434. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMainContribution.js +0 -82
  435. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +0 -762
  436. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProcessManager.js +0 -617
  437. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileQuickpick.js +0 -278
  438. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileResolverService.js +0 -316
  439. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalProfileService.js +0 -218
  440. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalQuickAccess.js +0 -146
  441. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalRunRecentQuickPick.js +0 -269
  442. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalService.js +0 -1134
  443. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.js +0 -108
  444. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabbedView.js +0 -420
  445. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTabsList.js +0 -676
  446. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalTooltip.js +0 -72
  447. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalUri.js +0 -39
  448. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalView.js +0 -598
  449. package/vscode/src/vs/workbench/contrib/terminal/browser/widgets/widgetManager.js +0 -36
  450. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +0 -469
  451. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +0 -97
  452. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/lineDataEventAddon.js +0 -56
  453. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +0 -416
  454. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/suggestAddon.js +0 -390
  455. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +0 -793
  456. package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariableService.js +0 -96
  457. package/vscode/src/vs/workbench/contrib/terminal/common/history.js +0 -356
  458. package/vscode/src/vs/workbench/contrib/terminal/common/remote/remoteTerminalChannel.js +0 -253
  459. package/vscode/src/vs/workbench/contrib/terminal/common/terminalConfiguration.js +0 -1016
  460. package/vscode/src/vs/workbench/contrib/terminal/common/terminalEnvironment.js +0 -272
  461. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +0 -93
  462. package/vscode/src/vs/workbench/contrib/terminal/electron-sandbox/terminalProfileResolverService.js +0 -42
  463. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/bufferContentTracker.js +0 -110
  464. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminal.accessibility.contribution.js +0 -232
  465. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibilityHelp.js +0 -138
  466. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleBuffer.js +0 -226
  467. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/terminalAccessibleWidget.js +0 -142
  468. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/browser/textAreaSyncAddon.js +0 -98
  469. package/vscode/src/vs/workbench/contrib/terminalContrib/links/browser/terminalLinkProviderService.js +0 -26
  470. package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/terminalQuickFixService.js +0 -155
  471. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -4
  472. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -247
  473. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -334
  474. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -117
  475. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -288
  476. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -94
  477. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -86
  478. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -640
  479. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -63
  480. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -57
  481. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -120
  482. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -119
  483. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -61
  484. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -232
  485. package/vscode/src/vs/workbench/contrib/workspace/browser/media/workspaceTrustEditor.css.js +0 -4
  486. package/vscode/src/vs/workbench/contrib/workspace/browser/workspace.contribution.js +0 -842
  487. package/vscode/src/vs/workbench/contrib/workspace/browser/workspaceTrustEditor.js +0 -1047
  488. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +0 -14
  489. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -94
  490. package/vscode/src/vs/workbench/services/configuration/browser/configuration.js +0 -878
  491. package/vscode/src/vs/workbench/services/configuration/browser/configurationService.js +0 -1170
  492. package/vscode/src/vs/workbench/services/configuration/common/configurationCache.js +0 -80
  493. package/vscode/src/vs/workbench/services/configuration/common/configurationEditing.js +0 -589
  494. package/vscode/src/vs/workbench/services/configuration/common/configurationModels.js +0 -119
  495. package/vscode/src/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +0 -303
  496. package/vscode/src/vs/workbench/services/configurationResolver/browser/configurationResolverService.js +0 -26
  497. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +0 -174
  498. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +0 -10
  499. package/vscode/src/vs/workbench/services/dialogs/browser/abstractFileDialogService.js +0 -320
  500. package/vscode/src/vs/workbench/services/dialogs/browser/simpleFileDialog.js +0 -989
  501. package/vscode/src/vs/workbench/services/dialogs/common/dialogService.js +0 -66
  502. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -622
  503. package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.js +0 -4
  504. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +0 -2
  505. package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1454
  506. package/vscode/src/vs/workbench/services/hover/browser/hoverService.js +0 -162
  507. package/vscode/src/vs/workbench/services/hover/browser/hoverWidget.js +0 -523
  508. package/vscode/src/vs/workbench/services/hover/browser/media/hover.css.js +0 -4
  509. package/vscode/src/vs/workbench/services/label/common/labelService.js +0 -412
  510. package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionSimpleWorker.js +0 -173
  511. package/vscode/src/vs/workbench/services/languageDetection/browser/languageDetectionWorkerServiceImpl.js +0 -259
  512. package/vscode/src/vs/workbench/services/lifecycle/browser/lifecycleService.js +0 -121
  513. package/vscode/src/vs/workbench/services/localization/common/locale.js +0 -3
  514. package/vscode/src/vs/workbench/services/notification/common/notificationService.js +0 -188
  515. package/vscode/src/vs/workbench/services/outline/browser/outlineService.js +0 -35
  516. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +0 -37
  517. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +0 -556
  518. package/vscode/src/vs/workbench/services/preferences/browser/preferencesService.js +0 -547
  519. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +0 -39
  520. package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +0 -1039
  521. package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +0 -393
  522. package/vscode/src/vs/workbench/services/remote/browser/remoteAgentService.js +0 -71
  523. package/vscode/src/vs/workbench/services/remote/common/abstractRemoteAgentService.js +0 -177
  524. package/vscode/src/vs/workbench/services/remote/common/remoteAgentEnvironmentChannel.js +0 -51
  525. package/vscode/src/vs/workbench/services/remote/common/remoteFileSystemProviderClient.js +0 -38
  526. package/vscode/src/vs/workbench/services/search/common/queryBuilder.d.ts +0 -35
  527. package/vscode/src/vs/workbench/services/search/common/searchService.js +0 -370
  528. package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +0 -40
  529. package/vscode/src/vs/workbench/services/storage/browser/storageService.js +0 -280
  530. package/vscode/src/vs/workbench/services/suggest/browser/media/suggest.css.js +0 -4
  531. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionItem.js +0 -10
  532. package/vscode/src/vs/workbench/services/suggest/browser/simpleCompletionModel.js +0 -98
  533. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +0 -399
  534. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidgetRenderer.js +0 -83
  535. package/vscode/src/vs/workbench/services/textMate/browser/arrayOperation.js +0 -62
  536. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/textMateWorkerTokenizerController.js +0 -157
  537. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/threadedBackgroundTokenizerFactory.js +0 -200
  538. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateTokenizationWorker.worker.js +0 -87
  539. package/vscode/src/vs/workbench/services/textMate/browser/backgroundTokenization/worker/textMateWorkerTokenizer.js +0 -140
  540. package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.d.ts +0 -11
  541. package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +0 -459
  542. package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/textMateTokenizationSupport.js +0 -72
  543. package/vscode/src/vs/workbench/services/textMate/browser/tokenizationSupport/tokenizationSupportWithLineLimit.js +0 -36
  544. package/vscode/src/vs/workbench/services/textMate/common/TMGrammarFactory.js +0 -118
  545. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +0 -93
  546. package/vscode/src/vs/workbench/services/textMate/common/TMScopeRegistry.js +0 -24
  547. package/vscode/src/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +0 -187
  548. package/vscode/src/vs/workbench/services/themes/browser/fileIconThemeData.js +0 -353
  549. package/vscode/src/vs/workbench/services/themes/browser/productIconThemeData.js +0 -290
  550. package/vscode/src/vs/workbench/services/themes/browser/workbenchThemeService.js +0 -742
  551. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +0 -864
  552. package/vscode/src/vs/workbench/services/themes/common/colorThemeSchema.js +0 -265
  553. package/vscode/src/vs/workbench/services/themes/common/fileIconThemeSchema.js +0 -303
  554. package/vscode/src/vs/workbench/services/themes/common/plistParser.js +0 -439
  555. package/vscode/src/vs/workbench/services/themes/common/productIconThemeSchema.js +0 -94
  556. package/vscode/src/vs/workbench/services/themes/common/textMateScopeMatcher.js +0 -120
  557. package/vscode/src/vs/workbench/services/themes/common/themeCompatibility.js +0 -66
  558. package/vscode/src/vs/workbench/services/themes/common/themeConfiguration.js +0 -372
  559. package/vscode/src/vs/workbench/services/themes/common/themeExtensionPoints.js +0 -254
  560. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -689
  561. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -612
  562. package/vscode/src/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +0 -322
  563. package/vscode/src/vs/workbench/services/workspaces/browser/workspaceTrustEditorInput.js +0 -27
  564. package/vscode/src/vs/workbench/services/workspaces/browser/workspacesService.js +0 -151
  565. package/workers/languageDetection.worker.js +0 -8
  566. package/workers/outputLinkComputer.worker.js +0 -3
  567. package/workers/textmate.worker.js +0 -3
@@ -0,0 +1,1729 @@
1
+ /**
2
+ * A string or number representing text font weight.
3
+ */
4
+ type FontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | number;
5
+
6
+ /**
7
+ * A string representing log level.
8
+ */
9
+ type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'off';
10
+
11
+ /**
12
+ * An object containing options for the terminal.
13
+ */
14
+ interface ITerminalOptions {
15
+ /**
16
+ * Whether to allow the use of proposed API. When false, any usage of APIs
17
+ * marked as experimental/proposed will throw an error. The default is false.
18
+ */
19
+ allowProposedApi?: boolean;
20
+
21
+ /**
22
+ * Whether background should support non-opaque color. It must be set before
23
+ * executing the `Terminal.open()` method and can't be changed later without
24
+ * executing it again. Note that enabling this can negatively impact
25
+ * performance.
26
+ */
27
+ allowTransparency?: boolean;
28
+
29
+ /**
30
+ * If enabled, alt + click will move the prompt cursor to position
31
+ * underneath the mouse. The default is true.
32
+ */
33
+ altClickMovesCursor?: boolean;
34
+
35
+ /**
36
+ * When enabled the cursor will be set to the beginning of the next line
37
+ * with every new line. This is equivalent to sending '\r\n' for each '\n'.
38
+ * Normally the termios settings of the underlying PTY deals with the
39
+ * translation of '\n' to '\r\n' and this setting should not be used. If you
40
+ * deal with data from a non-PTY related source, this settings might be
41
+ * useful.
42
+ */
43
+ convertEol?: boolean;
44
+
45
+ /**
46
+ * Whether the cursor blinks.
47
+ */
48
+ cursorBlink?: boolean;
49
+
50
+ /**
51
+ * The style of the cursor.
52
+ */
53
+ cursorStyle?: 'block' | 'underline' | 'bar';
54
+
55
+ /**
56
+ * The width of the cursor in CSS pixels when `cursorStyle` is set to 'bar'.
57
+ */
58
+ cursorWidth?: number;
59
+
60
+ /**
61
+ * Whether to draw custom glyphs for block element and box drawing characters instead of using
62
+ * the font. This should typically result in better rendering with continuous lines, even when
63
+ * line height and letter spacing is used. Note that this doesn't work with the DOM renderer
64
+ * which renders all characters using the font. The default is true.
65
+ */
66
+ customGlyphs?: boolean;
67
+
68
+ /**
69
+ * Whether input should be disabled.
70
+ */
71
+ disableStdin?: boolean;
72
+
73
+ /**
74
+ * Whether to draw bold text in bright colors. The default is true.
75
+ */
76
+ drawBoldTextInBrightColors?: boolean;
77
+
78
+ /**
79
+ * The modifier key hold to multiply scroll speed.
80
+ */
81
+ fastScrollModifier?: 'none' | 'alt' | 'ctrl' | 'shift';
82
+
83
+ /**
84
+ * The scroll speed multiplier used for fast scrolling.
85
+ */
86
+ fastScrollSensitivity?: number;
87
+
88
+ /**
89
+ * The font size used to render text.
90
+ */
91
+ fontSize?: number;
92
+
93
+ /**
94
+ * The font family used to render text.
95
+ */
96
+ fontFamily?: string;
97
+
98
+ /**
99
+ * The font weight used to render non-bold text.
100
+ */
101
+ fontWeight?: FontWeight;
102
+
103
+ /**
104
+ * The font weight used to render bold text.
105
+ */
106
+ fontWeightBold?: FontWeight;
107
+
108
+ /**
109
+ * The spacing in whole pixels between characters.
110
+ */
111
+ letterSpacing?: number;
112
+
113
+ /**
114
+ * The line height used to render text.
115
+ */
116
+ lineHeight?: number;
117
+
118
+ /**
119
+ * The handler for OSC 8 hyperlinks. Links will use the `confirm` browser
120
+ * API with a strongly worded warning if no link handler is set.
121
+ *
122
+ * When setting this, consider the security of users opening these links,
123
+ * at a minimum there should be a tooltip or a prompt when hovering or
124
+ * activating the link respectively. An example of what might be possible is
125
+ * a terminal app writing link in the form `javascript:...` that runs some
126
+ * javascript, a safe approach to prevent that is to validate the link
127
+ * starts with http(s)://.
128
+ */
129
+ linkHandler?: ILinkHandler | null;
130
+
131
+ /**
132
+ * What log level to use, this will log for all levels below and including
133
+ * what is set:
134
+ *
135
+ * 1. debug
136
+ * 2. info (default)
137
+ * 3. warn
138
+ * 4. error
139
+ * 5. off
140
+ */
141
+ logLevel?: LogLevel;
142
+
143
+ /**
144
+ * Whether to treat option as the meta key.
145
+ */
146
+ macOptionIsMeta?: boolean;
147
+
148
+ /**
149
+ * Whether holding a modifier key will force normal selection behavior,
150
+ * regardless of whether the terminal is in mouse events mode. This will
151
+ * also prevent mouse events from being emitted by the terminal. For
152
+ * example, this allows you to use xterm.js' regular selection inside tmux
153
+ * with mouse mode enabled.
154
+ */
155
+ macOptionClickForcesSelection?: boolean;
156
+
157
+ /**
158
+ * The minimum contrast ratio for text in the terminal, setting this will
159
+ * change the foreground color dynamically depending on whether the contrast
160
+ * ratio is met. Example values:
161
+ *
162
+ * - 1: The default, do nothing.
163
+ * - 4.5: Minimum for WCAG AA compliance.
164
+ * - 7: Minimum for WCAG AAA compliance.
165
+ * - 21: White on black or black on white.
166
+ */
167
+ minimumContrastRatio?: number;
168
+
169
+ /**
170
+ * Whether to select the word under the cursor on right click, this is
171
+ * standard behavior in a lot of macOS applications.
172
+ */
173
+ rightClickSelectsWord?: boolean;
174
+
175
+ /**
176
+ * Whether screen reader support is enabled. When on this will expose
177
+ * supporting elements in the DOM to support NVDA on Windows and VoiceOver
178
+ * on macOS.
179
+ */
180
+ screenReaderMode?: boolean;
181
+
182
+ /**
183
+ * The amount of scrollback in the terminal. Scrollback is the amount of
184
+ * rows that are retained when lines are scrolled beyond the initial
185
+ * viewport.
186
+ */
187
+ scrollback?: number;
188
+
189
+ /**
190
+ * Whether to scroll to the bottom whenever there is some user input. The
191
+ * default is true.
192
+ */
193
+ scrollOnUserInput?: boolean;
194
+
195
+ /**
196
+ * The scrolling speed multiplier used for adjusting normal scrolling speed.
197
+ */
198
+ scrollSensitivity?: number;
199
+
200
+ /**
201
+ * The duration to smoothly scroll between the origin and the target in
202
+ * milliseconds. Set to 0 to disable smooth scrolling and scroll instantly.
203
+ */
204
+ smoothScrollDuration?: number;
205
+
206
+ /**
207
+ * The size of tab stops in the terminal.
208
+ */
209
+ tabStopWidth?: number;
210
+
211
+ /**
212
+ * The color theme of the terminal.
213
+ */
214
+ theme?: ITheme;
215
+
216
+ /**
217
+ * Whether "Windows mode" is enabled. Because Windows backends winpty and
218
+ * conpty operate by doing line wrapping on their side, xterm.js does not
219
+ * have access to wrapped lines. When Windows mode is enabled the following
220
+ * changes will be in effect:
221
+ *
222
+ * - Reflow is disabled.
223
+ * - Lines are assumed to be wrapped if the last character of the line is
224
+ * not whitespace.
225
+ *
226
+ * When using conpty on Windows 11 version >= 21376, it is recommended to
227
+ * disable this because native text wrapping sequences are output correctly
228
+ * thanks to https://github.com/microsoft/terminal/issues/405
229
+ *
230
+ * @deprecated Use {@link windowsPty}. This value will be ignored if
231
+ * windowsPty is set.
232
+ */
233
+ windowsMode?: boolean;
234
+
235
+ /**
236
+ * Compatibility information when the pty is known to be hosted on Windows.
237
+ * Setting this will turn on certain heuristics/workarounds depending on the
238
+ * values:
239
+ *
240
+ * - `if (backend !== undefined || buildNumber !== undefined)`
241
+ * - When increasing the rows in the terminal, the amount increased into
242
+ * the scrollback. This is done because ConPTY does not behave like
243
+ * expect scrollback to come back into the viewport, instead it makes
244
+ * empty rows at of the viewport. Not having this behavior can result in
245
+ * missing data as the rows get replaced.
246
+ * - `if !(backend === 'conpty' && buildNumber >= 21376)`
247
+ * - Reflow is disabled
248
+ * - Lines are assumed to be wrapped if the last character of the line is
249
+ * not whitespace.
250
+ */
251
+ windowsPty?: IWindowsPty;
252
+
253
+ /**
254
+ * A string containing all characters that are considered word separated by the
255
+ * double click to select work logic.
256
+ */
257
+ wordSeparator?: string;
258
+
259
+ /**
260
+ * Enable various window manipulation and report features.
261
+ * All features are disabled by default for security reasons.
262
+ */
263
+ windowOptions?: IWindowOptions;
264
+
265
+ /**
266
+ * The width, in pixels, of the canvas for the overview ruler. The overview
267
+ * ruler will be hidden when not set.
268
+ */
269
+ overviewRulerWidth?: number;
270
+ }
271
+
272
+ /**
273
+ * An object containing additional options for the terminal that can only be
274
+ * set on start up.
275
+ */
276
+ interface ITerminalInitOnlyOptions {
277
+ /**
278
+ * The number of columns in the terminal.
279
+ */
280
+ cols?: number;
281
+
282
+ /**
283
+ * The number of rows in the terminal.
284
+ */
285
+ rows?: number;
286
+ }
287
+
288
+ /**
289
+ * Contains colors to theme the terminal with.
290
+ */
291
+ interface ITheme {
292
+ /** The default foreground color */
293
+ foreground?: string;
294
+ /** The default background color */
295
+ background?: string;
296
+ /** The cursor color */
297
+ cursor?: string;
298
+ /** The accent color of the cursor (fg color for a block cursor) */
299
+ cursorAccent?: string;
300
+ /** The selection background color (can be transparent) */
301
+ selectionBackground?: string;
302
+ /** The selection foreground color */
303
+ selectionForeground?: string;
304
+ /** The selection background color when the terminal does not have focus (can be transparent) */
305
+ selectionInactiveBackground?: string;
306
+ /** ANSI black (eg. `\x1b[30m`) */
307
+ black?: string;
308
+ /** ANSI red (eg. `\x1b[31m`) */
309
+ red?: string;
310
+ /** ANSI green (eg. `\x1b[32m`) */
311
+ green?: string;
312
+ /** ANSI yellow (eg. `\x1b[33m`) */
313
+ yellow?: string;
314
+ /** ANSI blue (eg. `\x1b[34m`) */
315
+ blue?: string;
316
+ /** ANSI magenta (eg. `\x1b[35m`) */
317
+ magenta?: string;
318
+ /** ANSI cyan (eg. `\x1b[36m`) */
319
+ cyan?: string;
320
+ /** ANSI white (eg. `\x1b[37m`) */
321
+ white?: string;
322
+ /** ANSI bright black (eg. `\x1b[1;30m`) */
323
+ brightBlack?: string;
324
+ /** ANSI bright red (eg. `\x1b[1;31m`) */
325
+ brightRed?: string;
326
+ /** ANSI bright green (eg. `\x1b[1;32m`) */
327
+ brightGreen?: string;
328
+ /** ANSI bright yellow (eg. `\x1b[1;33m`) */
329
+ brightYellow?: string;
330
+ /** ANSI bright blue (eg. `\x1b[1;34m`) */
331
+ brightBlue?: string;
332
+ /** ANSI bright magenta (eg. `\x1b[1;35m`) */
333
+ brightMagenta?: string;
334
+ /** ANSI bright cyan (eg. `\x1b[1;36m`) */
335
+ brightCyan?: string;
336
+ /** ANSI bright white (eg. `\x1b[1;37m`) */
337
+ brightWhite?: string;
338
+ /** ANSI extended colors (16-255) */
339
+ extendedAnsi?: string[];
340
+ }
341
+
342
+ /**
343
+ * Pty information for Windows.
344
+ */
345
+ interface IWindowsPty {
346
+ /**
347
+ * What pty emulation backend is being used.
348
+ */
349
+ backend?: 'conpty' | 'winpty';
350
+ /**
351
+ * The Windows build version (eg. 19045)
352
+ */
353
+ buildNumber?: number;
354
+ }
355
+
356
+ /**
357
+ * An object that can be disposed via a dispose function.
358
+ */
359
+ interface IDisposable {
360
+ dispose(): void;
361
+ }
362
+
363
+ /**
364
+ * An event that can be listened to.
365
+ * @returns an `IDisposable` to stop listening.
366
+ */
367
+ interface IEvent<T, U = void> {
368
+ (listener: (arg1: T, arg2: U) => any): IDisposable;
369
+ }
370
+
371
+ /**
372
+ * Represents a specific line in the terminal that is tracked when scrollback
373
+ * is trimmed and lines are added or removed. This is a single line that may
374
+ * be part of a larger wrapped line.
375
+ */
376
+ interface IMarker extends IDisposableWithEvent {
377
+ /**
378
+ * A unique identifier for this marker.
379
+ */
380
+ readonly id: number;
381
+
382
+ /**
383
+ * The actual line index in the buffer at this point in time. This is set to
384
+ * -1 if the marker has been disposed.
385
+ */
386
+ readonly line: number;
387
+ }
388
+
389
+ /**
390
+ * Represents a disposable that tracks is disposed state.
391
+ * @param onDispose event listener and
392
+ * @param isDisposed property.
393
+ */
394
+ interface IDisposableWithEvent extends IDisposable {
395
+ /**
396
+ * Event listener to get notified when this gets disposed.
397
+ */
398
+ onDispose: IEvent<void>;
399
+
400
+ /**
401
+ * Whether this is disposed.
402
+ */
403
+ readonly isDisposed: boolean;
404
+ }
405
+
406
+ /**
407
+ * Represents a decoration in the terminal that is associated with a particular marker and DOM element.
408
+ */
409
+ interface IDecoration extends IDisposableWithEvent {
410
+ /*
411
+ * The marker for the decoration in the terminal.
412
+ */
413
+ readonly marker: IMarker;
414
+
415
+ /**
416
+ * An event fired when the decoration
417
+ * is rendered, returns the dom element
418
+ * associated with the decoration.
419
+ */
420
+ readonly onRender: IEvent<HTMLElement>;
421
+
422
+ /**
423
+ * The element that the decoration is rendered to. This will be undefined
424
+ * until it is rendered for the first time by {@link IDecoration.onRender}.
425
+ * that.
426
+ */
427
+ element: HTMLElement | undefined;
428
+
429
+ /**
430
+ * The options for the overview ruler that can be updated.
431
+ * This will only take effect when {@link IDecorationOptions.overviewRulerOptions}
432
+ * were provided initially.
433
+ */
434
+ options: Pick<IDecorationOptions, 'overviewRulerOptions'>;
435
+ }
436
+
437
+
438
+ /**
439
+ * Overview ruler decoration options
440
+ */
441
+ interface IDecorationOverviewRulerOptions {
442
+ color: string;
443
+ position?: 'left' | 'center' | 'right' | 'full';
444
+ }
445
+
446
+ /*
447
+ * Options that define the presentation of the decoration.
448
+ */
449
+ interface IDecorationOptions {
450
+ /**
451
+ * The line in the terminal where
452
+ * the decoration will be displayed
453
+ */
454
+ readonly marker: IMarker;
455
+
456
+ /*
457
+ * Where the decoration will be anchored -
458
+ * defaults to the left edge
459
+ */
460
+ readonly anchor?: 'right' | 'left';
461
+
462
+ /**
463
+ * The x position offset relative to the anchor
464
+ */
465
+ readonly x?: number;
466
+
467
+
468
+ /**
469
+ * The width of the decoration in cells, defaults to 1.
470
+ */
471
+ readonly width?: number;
472
+
473
+ /**
474
+ * The height of the decoration in cells, defaults to 1.
475
+ */
476
+ readonly height?: number;
477
+
478
+ /**
479
+ * The background color of the cell(s). When 2 decorations both set the foreground color the
480
+ * last registered decoration will be used. Only the `#RRGGBB` format is supported.
481
+ */
482
+ readonly backgroundColor?: string;
483
+
484
+ /**
485
+ * The foreground color of the cell(s). When 2 decorations both set the foreground color the
486
+ * last registered decoration will be used. Only the `#RRGGBB` format is supported.
487
+ */
488
+ readonly foregroundColor?: string;
489
+
490
+ /**
491
+ * What layer to render the decoration at when {@link backgroundColor} or
492
+ * {@link foregroundColor} are used. `'bottom'` will render under the selection, `'top`' will
493
+ * render above the selection\*.
494
+ *
495
+ * *\* The selection will render on top regardless of layer on the canvas renderer due to how
496
+ * it renders selection separately.*
497
+ */
498
+ readonly layer?: 'bottom' | 'top';
499
+
500
+ /**
501
+ * When defined, renders the decoration in the overview ruler to the right
502
+ * of the terminal. {@link ITerminalOptions.overviewRulerWidth} must be set
503
+ * in order to see the overview ruler.
504
+ * @param color The color of the decoration.
505
+ * @param position The position of the decoration.
506
+ */
507
+ overviewRulerOptions?: IDecorationOverviewRulerOptions
508
+ }
509
+
510
+ /**
511
+ * The set of localizable strings.
512
+ */
513
+ interface ILocalizableStrings {
514
+ /**
515
+ * The aria label for the underlying input textarea for the terminal.
516
+ */
517
+ promptLabel: string;
518
+
519
+ /**
520
+ * Announcement for when line reading is suppressed due to too many lines
521
+ * being printed to the terminal when `screenReaderMode` is enabled.
522
+ */
523
+ tooMuchOutput: string;
524
+ }
525
+
526
+ /**
527
+ * Enable various window manipulation and report features (CSI Ps ; Ps ; Ps t).
528
+ *
529
+ * Most settings have no default implementation, as they heavily rely on
530
+ * the embedding environment.
531
+ *
532
+ * To implement a feature, create a custom CSI hook like this:
533
+ * ```ts
534
+ * term.parser.addCsiHandler({final: 't'}, params => {
535
+ * const ps = params[0];
536
+ * switch (ps) {
537
+ * case XY:
538
+ * ... // your implementation for option XY
539
+ * return true; // signal Ps=XY was handled
540
+ * }
541
+ * return false; // any Ps that was not handled
542
+ * });
543
+ * ```
544
+ *
545
+ * Note on security:
546
+ * Most features are meant to deal with some information of the host machine
547
+ * where the terminal runs on. This is seen as a security risk possibly leaking
548
+ * sensitive data of the host to the program in the terminal. Therefore all options
549
+ * (even those without a default implementation) are guarded by the boolean flag
550
+ * and disabled by default.
551
+ */
552
+ interface IWindowOptions {
553
+ /**
554
+ * Ps=1 De-iconify window.
555
+ * No default implementation.
556
+ */
557
+ restoreWin?: boolean;
558
+ /**
559
+ * Ps=2 Iconify window.
560
+ * No default implementation.
561
+ */
562
+ minimizeWin?: boolean;
563
+ /**
564
+ * Ps=3 ; x ; y
565
+ * Move window to [x, y].
566
+ * No default implementation.
567
+ */
568
+ setWinPosition?: boolean;
569
+ /**
570
+ * Ps = 4 ; height ; width
571
+ * Resize the window to given `height` and `width` in pixels.
572
+ * Omitted parameters should reuse the current height or width.
573
+ * Zero parameters should use the display's height or width.
574
+ * No default implementation.
575
+ */
576
+ setWinSizePixels?: boolean;
577
+ /**
578
+ * Ps=5 Raise the window to the front of the stacking order.
579
+ * No default implementation.
580
+ */
581
+ raiseWin?: boolean;
582
+ /**
583
+ * Ps=6 Lower the xterm window to the bottom of the stacking order.
584
+ * No default implementation.
585
+ */
586
+ lowerWin?: boolean;
587
+ /** Ps=7 Refresh the window. */
588
+ refreshWin?: boolean;
589
+ /**
590
+ * Ps = 8 ; height ; width
591
+ * Resize the text area to given height and width in characters.
592
+ * Omitted parameters should reuse the current height or width.
593
+ * Zero parameters use the display's height or width.
594
+ * No default implementation.
595
+ */
596
+ setWinSizeChars?: boolean;
597
+ /**
598
+ * Ps=9 ; 0 Restore maximized window.
599
+ * Ps=9 ; 1 Maximize window (i.e., resize to screen size).
600
+ * Ps=9 ; 2 Maximize window vertically.
601
+ * Ps=9 ; 3 Maximize window horizontally.
602
+ * No default implementation.
603
+ */
604
+ maximizeWin?: boolean;
605
+ /**
606
+ * Ps=10 ; 0 Undo full-screen mode.
607
+ * Ps=10 ; 1 Change to full-screen.
608
+ * Ps=10 ; 2 Toggle full-screen.
609
+ * No default implementation.
610
+ */
611
+ fullscreenWin?: boolean;
612
+ /** Ps=11 Report xterm window state.
613
+ * If the xterm window is non-iconified, it returns "CSI 1 t".
614
+ * If the xterm window is iconified, it returns "CSI 2 t".
615
+ * No default implementation.
616
+ */
617
+ getWinState?: boolean;
618
+ /**
619
+ * Ps=13 Report xterm window position. Result is "CSI 3 ; x ; y t".
620
+ * Ps=13 ; 2 Report xterm text-area position. Result is "CSI 3 ; x ; y t".
621
+ * No default implementation.
622
+ */
623
+ getWinPosition?: boolean;
624
+ /**
625
+ * Ps=14 Report xterm text area size in pixels. Result is "CSI 4 ; height ; width t".
626
+ * Ps=14 ; 2 Report xterm window size in pixels. Result is "CSI 4 ; height ; width t".
627
+ * Has a default implementation.
628
+ */
629
+ getWinSizePixels?: boolean;
630
+ /**
631
+ * Ps=15 Report size of the screen in pixels. Result is "CSI 5 ; height ; width t".
632
+ * No default implementation.
633
+ */
634
+ getScreenSizePixels?: boolean;
635
+ /**
636
+ * Ps=16 Report xterm character cell size in pixels. Result is "CSI 6 ; height ; width t".
637
+ * Has a default implementation.
638
+ */
639
+ getCellSizePixels?: boolean;
640
+ /**
641
+ * Ps=18 Report the size of the text area in characters. Result is "CSI 8 ; height ; width t".
642
+ * Has a default implementation.
643
+ */
644
+ getWinSizeChars?: boolean;
645
+ /**
646
+ * Ps=19 Report the size of the screen in characters. Result is "CSI 9 ; height ; width t".
647
+ * No default implementation.
648
+ */
649
+ getScreenSizeChars?: boolean;
650
+ /**
651
+ * Ps=20 Report xterm window's icon label. Result is "OSC L label ST".
652
+ * No default implementation.
653
+ */
654
+ getIconTitle?: boolean;
655
+ /**
656
+ * Ps=21 Report xterm window's title. Result is "OSC l label ST".
657
+ * No default implementation.
658
+ */
659
+ getWinTitle?: boolean;
660
+ /**
661
+ * Ps=22 ; 0 Save xterm icon and window title on stack.
662
+ * Ps=22 ; 1 Save xterm icon title on stack.
663
+ * Ps=22 ; 2 Save xterm window title on stack.
664
+ * All variants have a default implementation.
665
+ */
666
+ pushTitle?: boolean;
667
+ /**
668
+ * Ps=23 ; 0 Restore xterm icon and window title from stack.
669
+ * Ps=23 ; 1 Restore xterm icon title from stack.
670
+ * Ps=23 ; 2 Restore xterm window title from stack.
671
+ * All variants have a default implementation.
672
+ */
673
+ popTitle?: boolean;
674
+ /**
675
+ * Ps>=24 Resize to Ps lines (DECSLPP).
676
+ * DECSLPP is not implemented. This settings is also used to
677
+ * enable / disable DECCOLM (earlier variant of DECSLPP).
678
+ */
679
+ setWinLines?: boolean;
680
+ }
681
+
682
+ /**
683
+ * The class that represents an xterm.js terminal.
684
+ */
685
+ declare class Terminal implements IDisposable {
686
+ /**
687
+ * The element containing the terminal.
688
+ */
689
+ readonly element: HTMLElement | undefined;
690
+
691
+ /**
692
+ * The textarea that accepts input for the terminal.
693
+ */
694
+ readonly textarea: HTMLTextAreaElement | undefined;
695
+
696
+ /**
697
+ * The number of rows in the terminal's viewport. Use
698
+ * `ITerminalOptions.rows` to set this in the constructor and
699
+ * `Terminal.resize` for when the terminal exists.
700
+ */
701
+ readonly rows: number;
702
+
703
+ /**
704
+ * The number of columns in the terminal's viewport. Use
705
+ * `ITerminalOptions.cols` to set this in the constructor and
706
+ * `Terminal.resize` for when the terminal exists.
707
+ */
708
+ readonly cols: number;
709
+
710
+ /**
711
+ * Access to the terminal's normal and alt buffer.
712
+ */
713
+ readonly buffer: IBufferNamespace;
714
+
715
+ /**
716
+ * (EXPERIMENTAL) Get all markers registered against the buffer. If the alt
717
+ * buffer is active this will always return [].
718
+ */
719
+ readonly markers: ReadonlyArray<IMarker>;
720
+
721
+ /**
722
+ * Get the parser interface to register custom escape sequence handlers.
723
+ */
724
+ readonly parser: IParser;
725
+
726
+ /**
727
+ * (EXPERIMENTAL) Get the Unicode handling interface
728
+ * to register and switch Unicode version.
729
+ */
730
+ readonly unicode: IUnicodeHandling;
731
+
732
+ /**
733
+ * Gets the terminal modes as set by SM/DECSET.
734
+ */
735
+ readonly modes: IModes;
736
+
737
+ /**
738
+ * Gets or sets the terminal options. This supports setting multiple
739
+ * options.
740
+ *
741
+ * @example Get a single option
742
+ * ```ts
743
+ * console.log(terminal.options.fontSize);
744
+ * ```
745
+ *
746
+ * @example Set a single option:
747
+ * ```ts
748
+ * terminal.options.fontSize = 12;
749
+ * ```
750
+ * Note that for options that are object, a new object must be used in order
751
+ * to take effect as a reference comparison will be done:
752
+ * ```ts
753
+ * const newValue = terminal.options.theme;
754
+ * newValue.background = '#000000';
755
+ *
756
+ * // This won't work
757
+ * terminal.options.theme = newValue;
758
+ *
759
+ * // This will work
760
+ * terminal.options.theme = { ...newValue };
761
+ * ```
762
+ *
763
+ * @example Set multiple options
764
+ * ```ts
765
+ * terminal.options = {
766
+ * fontSize: 12,
767
+ * fontFamily: 'Courier New'
768
+ * };
769
+ * ```
770
+ */
771
+ options: ITerminalOptions;
772
+
773
+ /**
774
+ * Natural language strings that can be localized.
775
+ */
776
+ static strings: ILocalizableStrings;
777
+
778
+ /**
779
+ * Creates a new `Terminal` object.
780
+ *
781
+ * @param options An object containing a set of options.
782
+ */
783
+ constructor(options?: ITerminalOptions & ITerminalInitOnlyOptions);
784
+
785
+ /**
786
+ * Adds an event listener for when the bell is triggered.
787
+ * @returns an `IDisposable` to stop listening.
788
+ */
789
+ onBell: IEvent<void>;
790
+
791
+ /**
792
+ * Adds an event listener for when a binary event fires. This is used to
793
+ * enable non UTF-8 conformant binary messages to be sent to the backend.
794
+ * Currently this is only used for a certain type of mouse reports that
795
+ * happen to be not UTF-8 compatible.
796
+ * The event value is a JS string, pass it to the underlying pty as
797
+ * binary data, e.g. `pty.write(Buffer.from(data, 'binary'))`.
798
+ * @returns an `IDisposable` to stop listening.
799
+ */
800
+ onBinary: IEvent<string>;
801
+
802
+ /**
803
+ * Adds an event listener for the cursor moves.
804
+ * @returns an `IDisposable` to stop listening.
805
+ */
806
+ onCursorMove: IEvent<void>;
807
+
808
+ /**
809
+ * Adds an event listener for when a data event fires. This happens for
810
+ * example when the user types or pastes into the terminal. The event value
811
+ * is whatever `string` results, in a typical setup, this should be passed
812
+ * on to the backing pty.
813
+ * @returns an `IDisposable` to stop listening.
814
+ */
815
+ onData: IEvent<string>;
816
+
817
+ /**
818
+ * Adds an event listener for when a key is pressed. The event value contains the
819
+ * string that will be sent in the data event as well as the DOM event that
820
+ * triggered it.
821
+ * @returns an `IDisposable` to stop listening.
822
+ */
823
+ onKey: IEvent<{ key: string, domEvent: KeyboardEvent }>;
824
+
825
+ /**
826
+ * Adds an event listener for when a line feed is added.
827
+ * @returns an `IDisposable` to stop listening.
828
+ */
829
+ onLineFeed: IEvent<void>;
830
+
831
+ /**
832
+ * Adds an event listener for when rows are rendered. The event value
833
+ * contains the start row and end rows of the rendered area (ranges from `0`
834
+ * to `Terminal.rows - 1`).
835
+ * @returns an `IDisposable` to stop listening.
836
+ */
837
+ onRender: IEvent<{ start: number, end: number }>;
838
+
839
+ /**
840
+ * Adds an event listener for when data has been parsed by the terminal,
841
+ * after {@link write} is called. This event is useful to listen for any
842
+ * changes in the buffer.
843
+ *
844
+ * This fires at most once per frame, after data parsing completes. Note
845
+ * that this can fire when there are still writes pending if there is a lot
846
+ * of data.
847
+ */
848
+ onWriteParsed: IEvent<void>;
849
+
850
+ /**
851
+ * Adds an event listener for when the terminal is resized. The event value
852
+ * contains the new size.
853
+ * @returns an `IDisposable` to stop listening.
854
+ */
855
+ onResize: IEvent<{ cols: number, rows: number }>;
856
+
857
+ /**
858
+ * Adds an event listener for when a scroll occurs. The event value is the
859
+ * new position of the viewport.
860
+ * @returns an `IDisposable` to stop listening.
861
+ */
862
+ onScroll: IEvent<number>;
863
+
864
+ /**
865
+ * Adds an event listener for when a selection change occurs.
866
+ * @returns an `IDisposable` to stop listening.
867
+ */
868
+ onSelectionChange: IEvent<void>;
869
+
870
+ /**
871
+ * Adds an event listener for when an OSC 0 or OSC 2 title change occurs.
872
+ * The event value is the new title.
873
+ * @returns an `IDisposable` to stop listening.
874
+ */
875
+ onTitleChange: IEvent<string>;
876
+
877
+ /**
878
+ * Unfocus the terminal.
879
+ */
880
+ blur(): void;
881
+
882
+ /**
883
+ * Focus the terminal.
884
+ */
885
+ focus(): void;
886
+
887
+ /**
888
+ * Resizes the terminal. It's best practice to debounce calls to resize,
889
+ * this will help ensure that the pty can respond to the resize event
890
+ * before another one occurs.
891
+ * @param x The number of columns to resize to.
892
+ * @param y The number of rows to resize to.
893
+ */
894
+ resize(columns: number, rows: number): void;
895
+
896
+ /**
897
+ * Opens the terminal within an element.
898
+ * @param parent The element to create the terminal within. This element
899
+ * must be visible (have dimensions) when `open` is called as several DOM-
900
+ * based measurements need to be performed when this function is called.
901
+ */
902
+ open(parent: HTMLElement): void;
903
+
904
+ /**
905
+ * Attaches a custom key event handler which is run before keys are
906
+ * processed, giving consumers of xterm.js ultimate control as to what keys
907
+ * should be processed by the terminal and what keys should not.
908
+ * @param customKeyEventHandler The custom KeyboardEvent handler to attach.
909
+ * This is a function that takes a KeyboardEvent, allowing consumers to stop
910
+ * propagation and/or prevent the default action. The function returns
911
+ * whether the event should be processed by xterm.js.
912
+ *
913
+ * @example A custom keymap that overrides the backspace key
914
+ * ```ts
915
+ * const keymap = [
916
+ * { "key": "Backspace", "shiftKey": false, "mapCode": 8 },
917
+ * { "key": "Backspace", "shiftKey": true, "mapCode": 127 }
918
+ * ];
919
+ * term.attachCustomKeyEventHandler(ev => {
920
+ * if (ev.type === 'keydown') {
921
+ * for (let i in keymap) {
922
+ * if (keymap[i].key == ev.key && keymap[i].shiftKey == ev.shiftKey) {
923
+ * socket.send(String.fromCharCode(keymap[i].mapCode));
924
+ * return false;
925
+ * }
926
+ * }
927
+ * }
928
+ * });
929
+ * ```
930
+ */
931
+ attachCustomKeyEventHandler(customKeyEventHandler: (event: KeyboardEvent) => boolean): void;
932
+
933
+ /**
934
+ * Registers a link provider, allowing a custom parser to be used to match
935
+ * and handle links. Multiple link providers can be used, they will be asked
936
+ * in the order in which they are registered.
937
+ * @param linkProvider The link provider to use to detect links.
938
+ */
939
+ registerLinkProvider(linkProvider: ILinkProvider): IDisposable;
940
+
941
+ /**
942
+ * (EXPERIMENTAL) Registers a character joiner, allowing custom sequences of
943
+ * characters to be rendered as a single unit. This is useful in particular
944
+ * for rendering ligatures and graphemes, among other things.
945
+ *
946
+ * Each registered character joiner is called with a string of text
947
+ * representing a portion of a line in the terminal that can be rendered as
948
+ * a single unit. The joiner must return a sorted array, where each entry is
949
+ * itself an array of length two, containing the start (inclusive) and end
950
+ * (exclusive) index of a substring of the input that should be rendered as
951
+ * a single unit. When multiple joiners are provided, the results of each
952
+ * are collected. If there are any overlapping substrings between them, they
953
+ * are combined into one larger unit that is drawn together.
954
+ *
955
+ * All character joiners that are registered get called every time a line is
956
+ * rendered in the terminal, so it is essential for the handler function to
957
+ * run as quickly as possible to avoid slowdowns when rendering. Similarly,
958
+ * joiners should strive to return the smallest possible substrings to
959
+ * render together, since they aren't drawn as optimally as individual
960
+ * characters.
961
+ *
962
+ * NOTE: character joiners are only used by the canvas renderer.
963
+ *
964
+ * @param handler The function that determines character joins. It is called
965
+ * with a string of text that is eligible for joining and returns an array
966
+ * where each entry is an array containing the start (inclusive) and end
967
+ * (exclusive) indexes of ranges that should be rendered as a single unit.
968
+ * @returns The ID of the new joiner, this can be used to deregister
969
+ */
970
+ registerCharacterJoiner(handler: (text: string) => [number, number][]): number;
971
+
972
+ /**
973
+ * (EXPERIMENTAL) Deregisters the character joiner if one was registered.
974
+ * NOTE: character joiners are only used by the canvas renderer.
975
+ * @param joinerId The character joiner's ID (returned after register)
976
+ */
977
+ deregisterCharacterJoiner(joinerId: number): void;
978
+
979
+ /**
980
+ * Adds a marker to the normal buffer and returns it.
981
+ * @param cursorYOffset The y position offset of the marker from the cursor.
982
+ * @returns The new marker or undefined.
983
+ */
984
+ registerMarker(cursorYOffset?: number): IMarker;
985
+
986
+ /**
987
+ * (EXPERIMENTAL) Adds a decoration to the terminal using
988
+ * @param decorationOptions, which takes a marker and an optional anchor,
989
+ * width, height, and x offset from the anchor. Returns the decoration or
990
+ * undefined if the alt buffer is active or the marker has already been disposed of.
991
+ * @throws when options include a negative x offset.
992
+ */
993
+ registerDecoration(decorationOptions: IDecorationOptions): IDecoration | undefined;
994
+
995
+ /**
996
+ * Gets whether the terminal has an active selection.
997
+ */
998
+ hasSelection(): boolean;
999
+
1000
+ /**
1001
+ * Gets the terminal's current selection, this is useful for implementing
1002
+ * copy behavior outside of xterm.js.
1003
+ */
1004
+ getSelection(): string;
1005
+
1006
+ /**
1007
+ * Gets the selection position or undefined if there is no selection.
1008
+ */
1009
+ getSelectionPosition(): IBufferRange | undefined;
1010
+
1011
+ /**
1012
+ * Clears the current terminal selection.
1013
+ */
1014
+ clearSelection(): void;
1015
+
1016
+ /**
1017
+ * Selects text within the terminal.
1018
+ * @param column The column the selection starts at.
1019
+ * @param row The row the selection starts at.
1020
+ * @param length The length of the selection.
1021
+ */
1022
+ select(column: number, row: number, length: number): void;
1023
+
1024
+ /**
1025
+ * Selects all text within the terminal.
1026
+ */
1027
+ selectAll(): void;
1028
+
1029
+ /**
1030
+ * Selects text in the buffer between 2 lines.
1031
+ * @param start The 0-based line index to select from (inclusive).
1032
+ * @param end The 0-based line index to select to (inclusive).
1033
+ */
1034
+ selectLines(start: number, end: number): void;
1035
+
1036
+ /*
1037
+ * Disposes of the terminal, detaching it from the DOM and removing any
1038
+ * active listeners. Once the terminal is disposed it should not be used
1039
+ * again.
1040
+ */
1041
+ dispose(): void;
1042
+
1043
+ /**
1044
+ * Scroll the display of the terminal
1045
+ * @param amount The number of lines to scroll down (negative scroll up).
1046
+ */
1047
+ scrollLines(amount: number): void;
1048
+
1049
+ /**
1050
+ * Scroll the display of the terminal by a number of pages.
1051
+ * @param pageCount The number of pages to scroll (negative scrolls up).
1052
+ */
1053
+ scrollPages(pageCount: number): void;
1054
+
1055
+ /**
1056
+ * Scrolls the display of the terminal to the top.
1057
+ */
1058
+ scrollToTop(): void;
1059
+
1060
+ /**
1061
+ * Scrolls the display of the terminal to the bottom.
1062
+ */
1063
+ scrollToBottom(): void;
1064
+
1065
+ /**
1066
+ * Scrolls to a line within the buffer.
1067
+ * @param line The 0-based line index to scroll to.
1068
+ */
1069
+ scrollToLine(line: number): void;
1070
+
1071
+ /**
1072
+ * Clear the entire buffer, making the prompt line the new first line.
1073
+ */
1074
+ clear(): void;
1075
+
1076
+ /**
1077
+ * Write data to the terminal.
1078
+ * @param data The data to write to the terminal. This can either be raw
1079
+ * bytes given as Uint8Array from the pty or a string. Raw bytes will always
1080
+ * be treated as UTF-8 encoded, string data as UTF-16.
1081
+ * @param callback Optional callback that fires when the data was processed
1082
+ * by the parser.
1083
+ */
1084
+ write(data: string | Uint8Array, callback?: () => void): void;
1085
+
1086
+ /**
1087
+ * Writes data to the terminal, followed by a break line character (\n).
1088
+ * @param data The data to write to the terminal. This can either be raw
1089
+ * bytes given as Uint8Array from the pty or a string. Raw bytes will always
1090
+ * be treated as UTF-8 encoded, string data as UTF-16.
1091
+ * @param callback Optional callback that fires when the data was processed
1092
+ * by the parser.
1093
+ */
1094
+ writeln(data: string | Uint8Array, callback?: () => void): void;
1095
+
1096
+ /**
1097
+ * Writes text to the terminal, performing the necessary transformations for pasted text.
1098
+ * @param data The text to write to the terminal.
1099
+ */
1100
+ paste(data: string): void;
1101
+
1102
+ /**
1103
+ * Tells the renderer to refresh terminal content between two rows
1104
+ * (inclusive) at the next opportunity.
1105
+ * @param start The row to start from (between 0 and this.rows - 1).
1106
+ * @param end The row to end at (between start and this.rows - 1).
1107
+ */
1108
+ refresh(start: number, end: number): void;
1109
+
1110
+ /**
1111
+ * Clears the texture atlas of the canvas renderer if it's active. Doing this will force a
1112
+ * redraw of all glyphs which can workaround issues causing the texture to become corrupt, for
1113
+ * example Chromium/Nvidia has an issue where the texture gets messed up when resuming the OS
1114
+ * from sleep.
1115
+ */
1116
+ clearTextureAtlas(): void;
1117
+
1118
+ /**
1119
+ * Perform a full reset (RIS, aka '\x1bc').
1120
+ */
1121
+ reset(): void;
1122
+
1123
+ /**
1124
+ * Loads an addon into this instance of xterm.js.
1125
+ * @param addon The addon to load.
1126
+ */
1127
+ loadAddon(addon: ITerminalAddon): void;
1128
+ }
1129
+
1130
+ /**
1131
+ * An addon that can provide additional functionality to the terminal.
1132
+ */
1133
+ interface ITerminalAddon extends IDisposable {
1134
+ /**
1135
+ * This is called when the addon is activated.
1136
+ */
1137
+ activate(terminal: Terminal): void;
1138
+ }
1139
+
1140
+ /**
1141
+ * A link handler for OSC 8 hyperlinks.
1142
+ */
1143
+ interface ILinkHandler {
1144
+ /**
1145
+ * Calls when the link is activated.
1146
+ * @param event The mouse event triggering the callback.
1147
+ * @param text The text of the link.
1148
+ * @param range The buffer range of the link.
1149
+ */
1150
+ activate(event: MouseEvent, text: string, range: IBufferRange): void;
1151
+
1152
+ /**
1153
+ * Called when the mouse hovers the link. To use this to create a DOM-based hover tooltip,
1154
+ * create the hover element within `Terminal.element` and add the `xterm-hover` class to it,
1155
+ * that will cause mouse events to not fall through and activate other links.
1156
+ * @param event The mouse event triggering the callback.
1157
+ * @param text The text of the link.
1158
+ * @param range The buffer range of the link.
1159
+ */
1160
+ hover?(event: MouseEvent, text: string, range: IBufferRange): void;
1161
+
1162
+ /**
1163
+ * Called when the mouse leaves the link.
1164
+ * @param event The mouse event triggering the callback.
1165
+ * @param text The text of the link.
1166
+ * @param range The buffer range of the link.
1167
+ */
1168
+ leave?(event: MouseEvent, text: string, range: IBufferRange): void;
1169
+
1170
+ /**
1171
+ * Whether to receive non-HTTP URLs from LinkProvider. When false, any usage of non-HTTP URLs
1172
+ * will be ignored. Enabling this option without proper protection in `activate` function
1173
+ * may cause security issues such as XSS.
1174
+ */
1175
+ allowNonHttpProtocols?: boolean;
1176
+ }
1177
+
1178
+ /**
1179
+ * A custom link provider.
1180
+ */
1181
+ interface ILinkProvider {
1182
+ /**
1183
+ * Provides a link a buffer position
1184
+ * @param bufferLineNumber The y position of the buffer to check for links
1185
+ * within.
1186
+ * @param callback The callback to be fired when ready with the resulting
1187
+ * link(s) for the line or `undefined`.
1188
+ */
1189
+ provideLinks(bufferLineNumber: number, callback: (links: ILink[] | undefined) => void): void;
1190
+ }
1191
+
1192
+ /**
1193
+ * A link within the terminal.
1194
+ */
1195
+ interface ILink {
1196
+ /**
1197
+ * The buffer range of the link.
1198
+ */
1199
+ range: IBufferRange;
1200
+
1201
+ /**
1202
+ * The text of the link.
1203
+ */
1204
+ text: string;
1205
+
1206
+ /**
1207
+ * What link decorations to show when hovering the link, this property is tracked and changes
1208
+ * made after the link is provided will trigger changes. If not set, all decroations will be
1209
+ * enabled.
1210
+ */
1211
+ decorations?: ILinkDecorations;
1212
+
1213
+ /**
1214
+ * Calls when the link is activated.
1215
+ * @param event The mouse event triggering the callback.
1216
+ * @param text The text of the link.
1217
+ */
1218
+ activate(event: MouseEvent, text: string): void;
1219
+
1220
+ /**
1221
+ * Called when the mouse hovers the link. To use this to create a DOM-based hover tooltip,
1222
+ * create the hover element within `Terminal.element` and add the `xterm-hover` class to it,
1223
+ * that will cause mouse events to not fall through and activate other links.
1224
+ * @param event The mouse event triggering the callback.
1225
+ * @param text The text of the link.
1226
+ */
1227
+ hover?(event: MouseEvent, text: string): void;
1228
+
1229
+ /**
1230
+ * Called when the mouse leaves the link.
1231
+ * @param event The mouse event triggering the callback.
1232
+ * @param text The text of the link.
1233
+ */
1234
+ leave?(event: MouseEvent, text: string): void;
1235
+
1236
+ /**
1237
+ * Called when the link is released and no longer used by xterm.js.
1238
+ */
1239
+ dispose?(): void;
1240
+ }
1241
+
1242
+ /**
1243
+ * A set of decorations that can be applied to links.
1244
+ */
1245
+ interface ILinkDecorations {
1246
+ /**
1247
+ * Whether the cursor is set to pointer.
1248
+ */
1249
+ pointerCursor: boolean;
1250
+
1251
+ /**
1252
+ * Whether the underline is visible
1253
+ */
1254
+ underline: boolean;
1255
+ }
1256
+
1257
+ /**
1258
+ * A range within a buffer.
1259
+ */
1260
+ interface IBufferRange {
1261
+ /**
1262
+ * The start position of the range.
1263
+ */
1264
+ start: IBufferCellPosition;
1265
+
1266
+ /**
1267
+ * The end position of the range.
1268
+ */
1269
+ end: IBufferCellPosition;
1270
+ }
1271
+
1272
+ /**
1273
+ * A position within a buffer.
1274
+ */
1275
+ interface IBufferCellPosition {
1276
+ /**
1277
+ * The x position within the buffer (1-based).
1278
+ */
1279
+ x: number;
1280
+
1281
+ /**
1282
+ * The y position within the buffer (1-based).
1283
+ */
1284
+ y: number;
1285
+ }
1286
+
1287
+ /**
1288
+ * Represents a terminal buffer.
1289
+ */
1290
+ interface IBuffer {
1291
+ /**
1292
+ * The type of the buffer.
1293
+ */
1294
+ readonly type: 'normal' | 'alternate';
1295
+
1296
+ /**
1297
+ * The y position of the cursor. This ranges between `0` (when the
1298
+ * cursor is at baseY) and `Terminal.rows - 1` (when the cursor is on the
1299
+ * last row).
1300
+ */
1301
+ readonly cursorY: number;
1302
+
1303
+ /**
1304
+ * The x position of the cursor. This ranges between `0` (left side) and
1305
+ * `Terminal.cols` (after last cell of the row).
1306
+ */
1307
+ readonly cursorX: number;
1308
+
1309
+ /**
1310
+ * The line within the buffer where the top of the viewport is.
1311
+ */
1312
+ readonly viewportY: number;
1313
+
1314
+ /**
1315
+ * The line within the buffer where the top of the bottom page is (when
1316
+ * fully scrolled down).
1317
+ */
1318
+ readonly baseY: number;
1319
+
1320
+ /**
1321
+ * The amount of lines in the buffer.
1322
+ */
1323
+ readonly length: number;
1324
+
1325
+ /**
1326
+ * Gets a line from the buffer, or undefined if the line index does not
1327
+ * exist.
1328
+ *
1329
+ * Note that the result of this function should be used immediately after
1330
+ * calling as when the terminal updates it could lead to unexpected
1331
+ * behavior.
1332
+ *
1333
+ * @param y The line index to get.
1334
+ */
1335
+ getLine(y: number): IBufferLine | undefined;
1336
+
1337
+ /**
1338
+ * Creates an empty cell object suitable as a cell reference in
1339
+ * `line.getCell(x, cell)`. Use this to avoid costly recreation of
1340
+ * cell objects when dealing with tons of cells.
1341
+ */
1342
+ getNullCell(): IBufferCell;
1343
+ }
1344
+
1345
+ /**
1346
+ * Represents the terminal's set of buffers.
1347
+ */
1348
+ interface IBufferNamespace {
1349
+ /**
1350
+ * The active buffer, this will either be the normal or alternate buffers.
1351
+ */
1352
+ readonly active: IBuffer;
1353
+
1354
+ /**
1355
+ * The normal buffer.
1356
+ */
1357
+ readonly normal: IBuffer;
1358
+
1359
+ /**
1360
+ * The alternate buffer, this becomes the active buffer when an application
1361
+ * enters this mode via DECSET (`CSI ? 4 7 h`)
1362
+ */
1363
+ readonly alternate: IBuffer;
1364
+
1365
+ /**
1366
+ * Adds an event listener for when the active buffer changes.
1367
+ * @returns an `IDisposable` to stop listening.
1368
+ */
1369
+ onBufferChange: IEvent<IBuffer>;
1370
+ }
1371
+
1372
+ /**
1373
+ * Represents a line in the terminal's buffer.
1374
+ */
1375
+ interface IBufferLine {
1376
+ /**
1377
+ * Whether the line is wrapped from the previous line.
1378
+ */
1379
+ readonly isWrapped: boolean;
1380
+
1381
+ /**
1382
+ * The length of the line, all call to getCell beyond the length will result
1383
+ * in `undefined`. Note that this may exceed columns as the line array may
1384
+ * not be trimmed after a resize, compare against {@link Terminal.cols} to
1385
+ * get the actual maximum length of a line.
1386
+ */
1387
+ readonly length: number;
1388
+
1389
+ /**
1390
+ * Gets a cell from the line, or undefined if the line index does not exist.
1391
+ *
1392
+ * Note that the result of this function should be used immediately after
1393
+ * calling as when the terminal updates it could lead to unexpected
1394
+ * behavior.
1395
+ *
1396
+ * @param x The character index to get.
1397
+ * @param cell Optional cell object to load data into for performance
1398
+ * reasons. This is mainly useful when every cell in the buffer is being
1399
+ * looped over to avoid creating new objects for every cell.
1400
+ */
1401
+ getCell(x: number, cell?: IBufferCell): IBufferCell | undefined;
1402
+
1403
+ /**
1404
+ * Gets the line as a string. Note that this is gets only the string for the
1405
+ * line, not taking isWrapped into account.
1406
+ *
1407
+ * @param trimRight Whether to trim any whitespace at the right of the line.
1408
+ * @param startColumn The column to start from (inclusive).
1409
+ * @param endColumn The column to end at (exclusive).
1410
+ */
1411
+ translateToString(trimRight?: boolean, startColumn?: number, endColumn?: number): string;
1412
+ }
1413
+
1414
+ /**
1415
+ * Represents a single cell in the terminal's buffer.
1416
+ */
1417
+ interface IBufferCell {
1418
+ /**
1419
+ * The width of the character. Some examples:
1420
+ *
1421
+ * - `1` for most cells.
1422
+ * - `2` for wide character like CJK glyphs.
1423
+ * - `0` for cells immediately following cells with a width of `2`.
1424
+ */
1425
+ getWidth(): number;
1426
+
1427
+ /**
1428
+ * The character(s) within the cell. Examples of what this can contain:
1429
+ *
1430
+ * - A normal width character
1431
+ * - A wide character (eg. CJK)
1432
+ * - An emoji
1433
+ */
1434
+ getChars(): string;
1435
+
1436
+ /**
1437
+ * Gets the UTF32 codepoint of single characters, if content is a combined
1438
+ * string it returns the codepoint of the last character in the string.
1439
+ */
1440
+ getCode(): number;
1441
+
1442
+ /**
1443
+ * Gets the number representation of the foreground color mode, this can be
1444
+ * used to perform quick comparisons of 2 cells to see if they're the same.
1445
+ * Use `isFgRGB`, `isFgPalette` and `isFgDefault` to check what color mode
1446
+ * a cell is.
1447
+ */
1448
+ getFgColorMode(): number;
1449
+
1450
+ /**
1451
+ * Gets the number representation of the background color mode, this can be
1452
+ * used to perform quick comparisons of 2 cells to see if they're the same.
1453
+ * Use `isBgRGB`, `isBgPalette` and `isBgDefault` to check what color mode
1454
+ * a cell is.
1455
+ */
1456
+ getBgColorMode(): number;
1457
+
1458
+ /**
1459
+ * Gets a cell's foreground color number, this differs depending on what the
1460
+ * color mode of the cell is:
1461
+ *
1462
+ * - Default: This should be 0, representing the default foreground color
1463
+ * (CSI 39 m).
1464
+ * - Palette: This is a number from 0 to 255 of ANSI colors (CSI 3(0-7) m,
1465
+ * CSI 9(0-7) m, CSI 38 ; 5 ; 0-255 m).
1466
+ * - RGB: A hex value representing a 'true color': 0xRRGGBB.
1467
+ * (CSI 3 8 ; 2 ; Pi ; Pr ; Pg ; Pb)
1468
+ */
1469
+ getFgColor(): number;
1470
+
1471
+ /**
1472
+ * Gets a cell's background color number, this differs depending on what the
1473
+ * color mode of the cell is:
1474
+ *
1475
+ * - Default: This should be 0, representing the default background color
1476
+ * (CSI 49 m).
1477
+ * - Palette: This is a number from 0 to 255 of ANSI colors
1478
+ * (CSI 4(0-7) m, CSI 10(0-7) m, CSI 48 ; 5 ; 0-255 m).
1479
+ * - RGB: A hex value representing a 'true color': 0xRRGGBB
1480
+ * (CSI 4 8 ; 2 ; Pi ; Pr ; Pg ; Pb)
1481
+ */
1482
+ getBgColor(): number;
1483
+
1484
+ /** Whether the cell has the bold attribute (CSI 1 m). */
1485
+ isBold(): number;
1486
+ /** Whether the cell has the italic attribute (CSI 3 m). */
1487
+ isItalic(): number;
1488
+ /** Whether the cell has the dim attribute (CSI 2 m). */
1489
+ isDim(): number;
1490
+ /** Whether the cell has the underline attribute (CSI 4 m). */
1491
+ isUnderline(): number;
1492
+ /** Whether the cell has the blink attribute (CSI 5 m). */
1493
+ isBlink(): number;
1494
+ /** Whether the cell has the inverse attribute (CSI 7 m). */
1495
+ isInverse(): number;
1496
+ /** Whether the cell has the invisible attribute (CSI 8 m). */
1497
+ isInvisible(): number;
1498
+ /** Whether the cell has the strikethrough attribute (CSI 9 m). */
1499
+ isStrikethrough(): number;
1500
+ /** Whether the cell has the overline attribute (CSI 53 m). */
1501
+ isOverline(): number;
1502
+
1503
+ /** Whether the cell is using the RGB foreground color mode. */
1504
+ isFgRGB(): boolean;
1505
+ /** Whether the cell is using the RGB background color mode. */
1506
+ isBgRGB(): boolean;
1507
+ /** Whether the cell is using the palette foreground color mode. */
1508
+ isFgPalette(): boolean;
1509
+ /** Whether the cell is using the palette background color mode. */
1510
+ isBgPalette(): boolean;
1511
+ /** Whether the cell is using the default foreground color mode. */
1512
+ isFgDefault(): boolean;
1513
+ /** Whether the cell is using the default background color mode. */
1514
+ isBgDefault(): boolean;
1515
+
1516
+ /** Whether the cell has the default attribute (no color or style). */
1517
+ isAttributeDefault(): boolean;
1518
+ }
1519
+
1520
+ /**
1521
+ * Data type to register a CSI, DCS or ESC callback in the parser
1522
+ * in the form:
1523
+ * ESC I..I F
1524
+ * CSI Prefix P..P I..I F
1525
+ * DCS Prefix P..P I..I F data_bytes ST
1526
+ *
1527
+ * with these rules/restrictions:
1528
+ * - prefix can only be used with CSI and DCS
1529
+ * - only one leading prefix byte is recognized by the parser
1530
+ * before any other parameter bytes (P..P)
1531
+ * - intermediate bytes are recognized up to 2
1532
+ *
1533
+ * For custom sequences make sure to read ECMA-48 and the resources at
1534
+ * vt100.net to not clash with existing sequences or reserved address space.
1535
+ * General recommendations:
1536
+ * - use private address space (see ECMA-48)
1537
+ * - use max one intermediate byte (technically not limited by the spec,
1538
+ * in practice there are no sequences with more than one intermediate byte,
1539
+ * thus parsers might get confused with more intermediates)
1540
+ * - test against other common emulators to check whether they escape/ignore
1541
+ * the sequence correctly
1542
+ *
1543
+ * Notes: OSC command registration is handled differently (see addOscHandler)
1544
+ * APC, PM or SOS is currently not supported.
1545
+ */
1546
+ interface IFunctionIdentifier {
1547
+ /**
1548
+ * Optional prefix byte, must be in range \x3c .. \x3f.
1549
+ * Usable in CSI and DCS.
1550
+ */
1551
+ prefix?: string;
1552
+ /**
1553
+ * Optional intermediate bytes, must be in range \x20 .. \x2f.
1554
+ * Usable in CSI, DCS and ESC.
1555
+ */
1556
+ intermediates?: string;
1557
+ /**
1558
+ * Final byte, must be in range \x40 .. \x7e for CSI and DCS,
1559
+ * \x30 .. \x7e for ESC.
1560
+ */
1561
+ final: string;
1562
+ }
1563
+
1564
+ /**
1565
+ * Allows hooking into the parser for custom handling of escape sequences.
1566
+ *
1567
+ * Note on sync vs. async handlers:
1568
+ * xterm.js implements all parser actions with synchronous handlers.
1569
+ * In general custom handlers should also operate in sync mode wherever
1570
+ * possible to keep the parser fast.
1571
+ * Still the exposed interfaces allow to register async handlers by returning
1572
+ * a `Promise<boolean>`. Here the parser will pause input processing until
1573
+ * the promise got resolved or rejected (in-band blocking). This "full stop"
1574
+ * on the input chain allows to implement backpressure from a certain async
1575
+ * action while the terminal state will not progress any further from input.
1576
+ * It does not mean that the terminal state will not change at all in between,
1577
+ * as user actions like resize or reset are still processed immediately.
1578
+ * It is an error to assume a stable terminal state while giving back control
1579
+ * in between, e.g. by multiple chained `then` calls.
1580
+ * Downside of an async handler is a rather bad throughput performance,
1581
+ * thus use async handlers only as a last resort or for actions that have
1582
+ * to rely on async interfaces itself.
1583
+ */
1584
+ interface IParser {
1585
+ /**
1586
+ * Adds a handler for CSI escape sequences.
1587
+ * @param id Specifies the function identifier under which the callback
1588
+ * gets registered, e.g. {final: 'm'} for SGR.
1589
+ * @param callback The function to handle the sequence. The callback is
1590
+ * called with the numerical params. If the sequence has subparams the
1591
+ * array will contain subarrays with their numercial values.
1592
+ * Return `true` if the sequence was handled, `false` if the parser should try
1593
+ * a previous handler. The most recently added handler is tried first.
1594
+ * @returns An IDisposable you can call to remove this handler.
1595
+ */
1596
+ registerCsiHandler(id: IFunctionIdentifier, callback: (params: (number | number[])[]) => boolean | Promise<boolean>): IDisposable;
1597
+
1598
+ /**
1599
+ * Adds a handler for DCS escape sequences.
1600
+ * @param id Specifies the function identifier under which the callback
1601
+ * gets registered, e.g. {intermediates: '$' final: 'q'} for DECRQSS.
1602
+ * @param callback The function to handle the sequence. Note that the
1603
+ * function will only be called once if the sequence finished sucessfully.
1604
+ * There is currently no way to intercept smaller data chunks, data chunks
1605
+ * will be stored up until the sequence is finished. Since DCS sequences
1606
+ * are not limited by the amount of data this might impose a problem for
1607
+ * big payloads. Currently xterm.js limits DCS payload to 10 MB
1608
+ * which should give enough room for most use cases.
1609
+ * The function gets the payload and numerical parameters as arguments.
1610
+ * Return `true` if the sequence was handled, `false` if the parser should try
1611
+ * a previous handler. The most recently added handler is tried first.
1612
+ * @returns An IDisposable you can call to remove this handler.
1613
+ */
1614
+ registerDcsHandler(id: IFunctionIdentifier, callback: (data: string, param: (number | number[])[]) => boolean | Promise<boolean>): IDisposable;
1615
+
1616
+ /**
1617
+ * Adds a handler for ESC escape sequences.
1618
+ * @param id Specifies the function identifier under which the callback
1619
+ * gets registered, e.g. {intermediates: '%' final: 'G'} for
1620
+ * default charset selection.
1621
+ * @param callback The function to handle the sequence.
1622
+ * Return `true` if the sequence was handled, `false` if the parser should try
1623
+ * a previous handler. The most recently added handler is tried first.
1624
+ * @returns An IDisposable you can call to remove this handler.
1625
+ */
1626
+ registerEscHandler(id: IFunctionIdentifier, handler: () => boolean | Promise<boolean>): IDisposable;
1627
+
1628
+ /**
1629
+ * Adds a handler for OSC escape sequences.
1630
+ * @param ident The number (first parameter) of the sequence.
1631
+ * @param callback The function to handle the sequence. Note that the
1632
+ * function will only be called once if the sequence finished sucessfully.
1633
+ * There is currently no way to intercept smaller data chunks, data chunks
1634
+ * will be stored up until the sequence is finished. Since OSC sequences
1635
+ * are not limited by the amount of data this might impose a problem for
1636
+ * big payloads. Currently xterm.js limits OSC payload to 10 MB
1637
+ * which should give enough room for most use cases.
1638
+ * The callback is called with OSC data string.
1639
+ * Return `true` if the sequence was handled, `false` if the parser should try
1640
+ * a previous handler. The most recently added handler is tried first.
1641
+ * @returns An IDisposable you can call to remove this handler.
1642
+ */
1643
+ registerOscHandler(ident: number, callback: (data: string) => boolean | Promise<boolean>): IDisposable;
1644
+ }
1645
+
1646
+ /**
1647
+ * (EXPERIMENTAL) Unicode version provider.
1648
+ * Used to register custom Unicode versions with `Terminal.unicode.register`.
1649
+ */
1650
+ interface IUnicodeVersionProvider {
1651
+ /**
1652
+ * String indicating the Unicode version provided.
1653
+ */
1654
+ readonly version: string;
1655
+
1656
+ /**
1657
+ * Unicode version dependent wcwidth implementation.
1658
+ */
1659
+ wcwidth(codepoint: number): 0 | 1 | 2;
1660
+ }
1661
+
1662
+ /**
1663
+ * (EXPERIMENTAL) Unicode handling interface.
1664
+ */
1665
+ interface IUnicodeHandling {
1666
+ /**
1667
+ * Register a custom Unicode version provider.
1668
+ */
1669
+ register(provider: IUnicodeVersionProvider): void;
1670
+
1671
+ /**
1672
+ * Registered Unicode versions.
1673
+ */
1674
+ readonly versions: ReadonlyArray<string>;
1675
+
1676
+ /**
1677
+ * Getter/setter for active Unicode version.
1678
+ */
1679
+ activeVersion: string;
1680
+ }
1681
+
1682
+ /**
1683
+ * Terminal modes as set by SM/DECSET.
1684
+ */
1685
+ interface IModes {
1686
+ /**
1687
+ * Application Cursor Keys (DECCKM): `CSI ? 1 h`
1688
+ */
1689
+ readonly applicationCursorKeysMode: boolean;
1690
+ /**
1691
+ * Application Keypad Mode (DECNKM): `CSI ? 6 6 h`
1692
+ */
1693
+ readonly applicationKeypadMode: boolean;
1694
+ /**
1695
+ * Bracketed Paste Mode: `CSI ? 2 0 0 4 h`
1696
+ */
1697
+ readonly bracketedPasteMode: boolean;
1698
+ /**
1699
+ * Insert Mode (IRM): `CSI 4 h`
1700
+ */
1701
+ readonly insertMode: boolean;
1702
+ /**
1703
+ * Mouse Tracking, this can be one of the following:
1704
+ * - none: This is the default value and can be reset with DECRST
1705
+ * - x10: Send Mouse X & Y on button press `CSI ? 9 h`
1706
+ * - vt200: Send Mouse X & Y on button press and release `CSI ? 1 0 0 0 h`
1707
+ * - drag: Use Cell Motion Mouse Tracking `CSI ? 1 0 0 2 h`
1708
+ * - any: Use All Motion Mouse Tracking `CSI ? 1 0 0 3 h`
1709
+ */
1710
+ readonly mouseTrackingMode: 'none' | 'x10' | 'vt200' | 'drag' | 'any';
1711
+ /**
1712
+ * Origin Mode (DECOM): `CSI ? 6 h`
1713
+ */
1714
+ readonly originMode: boolean;
1715
+ /**
1716
+ * Reverse-wraparound Mode: `CSI ? 4 5 h`
1717
+ */
1718
+ readonly reverseWraparoundMode: boolean;
1719
+ /**
1720
+ * Send FocusIn/FocusOut events: `CSI ? 1 0 0 4 h`
1721
+ */
1722
+ readonly sendFocusMode: boolean;
1723
+ /**
1724
+ * Auto-Wrap Mode (DECAWM): `CSI ? 7 h`
1725
+ */
1726
+ readonly wraparoundMode: boolean
1727
+ }
1728
+
1729
+ export { type FontWeight, type IBuffer, type IBufferCell, type IBufferCellPosition, type IBufferLine, type IBufferNamespace, type IBufferRange, type IDecoration, type IDecorationOptions, type IDecorationOverviewRulerOptions, type IDisposable, type IDisposableWithEvent, type IEvent, type IFunctionIdentifier, type ILink, type ILinkDecorations, type ILinkHandler, type ILinkProvider, type ILocalizableStrings, type IMarker, type IModes, type IParser, type ITerminalAddon, type ITerminalInitOnlyOptions, type ITerminalOptions, type ITheme, type IUnicodeHandling, type IUnicodeVersionProvider, type IWindowOptions, type IWindowsPty, type LogLevel, Terminal };