@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
@@ -1,1142 +0,0 @@
1
- import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import * as aria from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
3
- import { distinct } from 'monaco-editor/esm/vs/base/common/arrays.js';
4
- import { RunOnceScheduler, Queue } from 'monaco-editor/esm/vs/base/common/async.js';
5
- import { CancellationTokenSource } from 'monaco-editor/esm/vs/base/common/cancellation.js';
6
- import { canceled } from 'monaco-editor/esm/vs/base/common/errors.js';
7
- import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
8
- import { normalizeDriveLetter } from 'monaco-editor/esm/vs/base/common/labels.js';
9
- import { DisposableStore, MutableDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
10
- import { mixin } from 'monaco-editor/esm/vs/base/common/objects.js';
11
- import * as platform from 'monaco-editor/esm/vs/base/common/platform.js';
12
- import * as resources from 'monaco-editor/esm/vs/base/common/resources.js';
13
- import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
14
- import { generateUuid } from 'monaco-editor/esm/vs/base/common/uuid.js';
15
- import { localize } from 'monaco-editor/esm/vs/nls.js';
16
- import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
17
- import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
18
- import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
19
- import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
20
- import { IProductService } from 'monaco-editor/esm/vs/platform/product/common/productService.js';
21
- import { ITelemetryService, ICustomEndpointTelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
22
- import { IUriIdentityService } from 'monaco-editor/esm/vs/platform/uriIdentity/common/uriIdentity.js';
23
- import { IWorkspaceContextService } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
24
- import { RawDebugSession } from './rawDebugSession.js';
25
- import { IDebugService, VIEWLET_ID } from '../common/debug.js';
26
- import { MemoryRegion, ExpressionContainer, Thread } from '../common/debugModel.js';
27
- import { Source } from '../common/debugSource.js';
28
- import { filterExceptionsFromTelemetry } from '../common/debugUtils.js';
29
- import { ReplModel } from '../common/replModel.js';
30
- import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.js';
31
- import { IHostService } from '../../../services/host/browser/host.js';
32
- import { ILifecycleService } from '../../../services/lifecycle/common/lifecycle.js';
33
- import { IPaneCompositePartService } from '../../../services/panecomposite/browser/panecomposite.js';
34
- let DebugSession = class DebugSession {
35
- constructor(id, _configuration, root, model, options, debugService, telemetryService, hostService, configurationService, paneCompositeService, workspaceContextService, productService, notificationService, lifecycleService, uriIdentityService, instantiationService, customEndpointTelemetryService, workbenchEnvironmentService, logService) {
36
- this.id = id;
37
- this._configuration = _configuration;
38
- this.root = root;
39
- this.model = model;
40
- this.debugService = debugService;
41
- this.telemetryService = telemetryService;
42
- this.hostService = hostService;
43
- this.configurationService = configurationService;
44
- this.paneCompositeService = paneCompositeService;
45
- this.workspaceContextService = workspaceContextService;
46
- this.productService = productService;
47
- this.notificationService = notificationService;
48
- this.uriIdentityService = uriIdentityService;
49
- this.instantiationService = instantiationService;
50
- this.customEndpointTelemetryService = customEndpointTelemetryService;
51
- this.workbenchEnvironmentService = workbenchEnvironmentService;
52
- this.logService = logService;
53
- this.initialized = false;
54
- this.sources = ( new Map());
55
- this.threads = ( new Map());
56
- this.threadIds = [];
57
- this.cancellationMap = ( new Map());
58
- this.rawListeners = ( new DisposableStore());
59
- this.stoppedDetails = [];
60
- this._onDidChangeState = ( new Emitter());
61
- this._onDidEndAdapter = ( new Emitter());
62
- this._onDidLoadedSource = ( new Emitter());
63
- this._onDidCustomEvent = ( new Emitter());
64
- this._onDidProgressStart = ( new Emitter());
65
- this._onDidProgressUpdate = ( new Emitter());
66
- this._onDidProgressEnd = ( new Emitter());
67
- this._onDidInvalidMemory = ( new Emitter());
68
- this._onDidChangeREPLElements = ( new Emitter());
69
- this._onDidChangeName = ( new Emitter());
70
- this._options = options || {};
71
- this.parentSession = this._options.parentSession;
72
- if (this.hasSeparateRepl()) {
73
- this.repl = ( new ReplModel(this.configurationService));
74
- }
75
- else {
76
- this.repl = this.parentSession.repl;
77
- }
78
- const toDispose = this.rawListeners.add(( new DisposableStore()));
79
- const replListener = toDispose.add(( new MutableDisposable()));
80
- replListener.value = this.repl.onDidChangeElements(() => this._onDidChangeREPLElements.fire());
81
- if (lifecycleService) {
82
- toDispose.add(lifecycleService.onWillShutdown(() => this.shutdown()));
83
- }
84
- const compoundRoot = this._options.compoundRoot;
85
- if (compoundRoot) {
86
- toDispose.add(compoundRoot.onDidSessionStop(() => this.terminate()));
87
- }
88
- this.passFocusScheduler = ( new RunOnceScheduler(() => {
89
- if (( this.debugService.getModel().getSessions().some(s => s.state === 2 )) || ( this.getAllThreads().some(t => t.stopped))) {
90
- if (typeof this.lastContinuedThreadId === 'number') {
91
- const thread = this.debugService.getViewModel().focusedThread;
92
- if (thread && thread.threadId === this.lastContinuedThreadId && !thread.stopped) {
93
- const toFocusThreadId = this.getStoppedDetails()?.threadId;
94
- const toFocusThread = typeof toFocusThreadId === 'number' ? this.getThread(toFocusThreadId) : undefined;
95
- this.debugService.focusStackFrame(undefined, toFocusThread);
96
- }
97
- }
98
- else {
99
- const session = this.debugService.getViewModel().focusedSession;
100
- if (session && session.getId() === this.getId() && session.state !== 2 ) {
101
- this.debugService.focusStackFrame(undefined);
102
- }
103
- }
104
- }
105
- }, 800));
106
- const parent = this._options.parentSession;
107
- if (parent) {
108
- toDispose.add(parent.onDidEndAdapter(() => {
109
- if (!this.hasSeparateRepl() && this.raw?.isInShutdown === false) {
110
- this.repl = this.repl.clone();
111
- replListener.value = this.repl.onDidChangeElements(() => this._onDidChangeREPLElements.fire());
112
- this.parentSession = undefined;
113
- }
114
- }));
115
- }
116
- }
117
- getId() {
118
- return this.id;
119
- }
120
- setSubId(subId) {
121
- this._subId = subId;
122
- }
123
- getMemory(memoryReference) {
124
- return ( new MemoryRegion(memoryReference, this));
125
- }
126
- get subId() {
127
- return this._subId;
128
- }
129
- get configuration() {
130
- return this._configuration.resolved;
131
- }
132
- get unresolvedConfiguration() {
133
- return this._configuration.unresolved;
134
- }
135
- get lifecycleManagedByParent() {
136
- return !!this._options.lifecycleManagedByParent;
137
- }
138
- get compact() {
139
- return !!this._options.compact;
140
- }
141
- get saveBeforeRestart() {
142
- return this._options.saveBeforeRestart ?? !this._options?.parentSession;
143
- }
144
- get compoundRoot() {
145
- return this._options.compoundRoot;
146
- }
147
- get suppressDebugStatusbar() {
148
- return this._options.suppressDebugStatusbar ?? false;
149
- }
150
- get suppressDebugToolbar() {
151
- return this._options.suppressDebugToolbar ?? false;
152
- }
153
- get suppressDebugView() {
154
- return this._options.suppressDebugView ?? false;
155
- }
156
- get autoExpandLazyVariables() {
157
- return this.configurationService.getValue('debug').autoExpandLazyVariables;
158
- }
159
- setConfiguration(configuration) {
160
- this._configuration = configuration;
161
- }
162
- getLabel() {
163
- const includeRoot = this.workspaceContextService.getWorkspace().folders.length > 1;
164
- return includeRoot && this.root ? `${this.name} (${resources.basenameOrAuthority(this.root.uri)})` : this.name;
165
- }
166
- setName(name) {
167
- this._name = name;
168
- this._onDidChangeName.fire(name);
169
- }
170
- get name() {
171
- return this._name || this.configuration.name;
172
- }
173
- get state() {
174
- if (!this.initialized) {
175
- return 1 ;
176
- }
177
- if (!this.raw) {
178
- return 0 ;
179
- }
180
- const focusedThread = this.debugService.getViewModel().focusedThread;
181
- if (focusedThread && focusedThread.session === this) {
182
- return focusedThread.stopped ? 2 : 3 ;
183
- }
184
- if (( this.getAllThreads().some(t => t.stopped))) {
185
- return 2 ;
186
- }
187
- return 3 ;
188
- }
189
- get capabilities() {
190
- return this.raw ? this.raw.capabilities : Object.create(null);
191
- }
192
- get onDidChangeState() {
193
- return this._onDidChangeState.event;
194
- }
195
- get onDidEndAdapter() {
196
- return this._onDidEndAdapter.event;
197
- }
198
- get onDidChangeReplElements() {
199
- return this._onDidChangeREPLElements.event;
200
- }
201
- get onDidChangeName() {
202
- return this._onDidChangeName.event;
203
- }
204
- get onDidCustomEvent() {
205
- return this._onDidCustomEvent.event;
206
- }
207
- get onDidLoadedSource() {
208
- return this._onDidLoadedSource.event;
209
- }
210
- get onDidProgressStart() {
211
- return this._onDidProgressStart.event;
212
- }
213
- get onDidProgressUpdate() {
214
- return this._onDidProgressUpdate.event;
215
- }
216
- get onDidProgressEnd() {
217
- return this._onDidProgressEnd.event;
218
- }
219
- get onDidInvalidateMemory() {
220
- return this._onDidInvalidMemory.event;
221
- }
222
- async initialize(dbgr) {
223
- if (this.raw) {
224
- await this.shutdown();
225
- }
226
- try {
227
- const debugAdapter = await dbgr.createDebugAdapter(this);
228
- this.raw = this.instantiationService.createInstance(RawDebugSession, debugAdapter, dbgr, this.id, this.configuration.name);
229
- await this.raw.start();
230
- this.registerListeners();
231
- await this.raw.initialize({
232
- clientID: 'vscode',
233
- clientName: this.productService.nameLong,
234
- adapterID: this.configuration.type,
235
- pathFormat: 'path',
236
- linesStartAt1: true,
237
- columnsStartAt1: true,
238
- supportsVariableType: true,
239
- supportsVariablePaging: true,
240
- supportsRunInTerminalRequest: true,
241
- locale: platform.language,
242
- supportsProgressReporting: true,
243
- supportsInvalidatedEvent: true,
244
- supportsMemoryReferences: true,
245
- supportsArgsCanBeInterpretedByShell: true,
246
- supportsMemoryEvent: true,
247
- supportsStartDebuggingRequest: true
248
- });
249
- this.initialized = true;
250
- this._onDidChangeState.fire();
251
- this.debugService.setExceptionBreakpointsForSession(this, (this.raw && this.raw.capabilities.exceptionBreakpointFilters) || []);
252
- }
253
- catch (err) {
254
- this.initialized = true;
255
- this._onDidChangeState.fire();
256
- await this.shutdown();
257
- throw err;
258
- }
259
- }
260
- async launchOrAttach(config) {
261
- if (!this.raw) {
262
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'launch or attach'));
263
- }
264
- if (this.parentSession && this.parentSession.state === 0 ) {
265
- throw canceled();
266
- }
267
- config.__sessionId = this.getId();
268
- try {
269
- await this.raw.launchOrAttach(config);
270
- }
271
- catch (err) {
272
- this.shutdown();
273
- throw err;
274
- }
275
- }
276
- async terminate(restart = false) {
277
- if (!this.raw) {
278
- this.onDidExitAdapter();
279
- }
280
- this.cancelAllRequests();
281
- if (this._options.lifecycleManagedByParent && this.parentSession) {
282
- await this.parentSession.terminate(restart);
283
- }
284
- else if (this.raw) {
285
- if (this.raw.capabilities.supportsTerminateRequest && this._configuration.resolved.request === 'launch') {
286
- await this.raw.terminate(restart);
287
- }
288
- else {
289
- await this.raw.disconnect({ restart, terminateDebuggee: true });
290
- }
291
- }
292
- if (!restart) {
293
- this._options.compoundRoot?.sessionStopped();
294
- }
295
- }
296
- async disconnect(restart = false, suspend = false) {
297
- if (!this.raw) {
298
- this.onDidExitAdapter();
299
- }
300
- this.cancelAllRequests();
301
- if (this._options.lifecycleManagedByParent && this.parentSession) {
302
- await this.parentSession.disconnect(restart, suspend);
303
- }
304
- else if (this.raw) {
305
- await this.raw.disconnect({ restart, terminateDebuggee: false, suspendDebuggee: suspend });
306
- }
307
- if (!restart) {
308
- this._options.compoundRoot?.sessionStopped();
309
- }
310
- }
311
- async restart() {
312
- if (!this.raw) {
313
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'restart'));
314
- }
315
- this.cancelAllRequests();
316
- if (this._options.lifecycleManagedByParent && this.parentSession) {
317
- await this.parentSession.restart();
318
- }
319
- else {
320
- await this.raw.restart({ arguments: this.configuration });
321
- }
322
- }
323
- async sendBreakpoints(modelUri, breakpointsToSend, sourceModified) {
324
- if (!this.raw) {
325
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'breakpoints'));
326
- }
327
- if (!this.raw.readyForBreakpoints) {
328
- return Promise.resolve(undefined);
329
- }
330
- const rawSource = this.getRawSource(modelUri);
331
- if (breakpointsToSend.length && !rawSource.adapterData) {
332
- rawSource.adapterData = breakpointsToSend[0].adapterData;
333
- }
334
- if (rawSource.path) {
335
- rawSource.path = normalizeDriveLetter(rawSource.path);
336
- }
337
- const response = await this.raw.setBreakpoints({
338
- source: rawSource,
339
- lines: ( breakpointsToSend.map(bp => bp.sessionAgnosticData.lineNumber)),
340
- breakpoints: ( breakpointsToSend.map(
341
- bp => ({ line: bp.sessionAgnosticData.lineNumber, column: bp.sessionAgnosticData.column, condition: bp.condition, hitCondition: bp.hitCondition, logMessage: bp.logMessage })
342
- )),
343
- sourceModified
344
- });
345
- if (response && response.body) {
346
- const data = ( new Map());
347
- for (let i = 0; i < breakpointsToSend.length; i++) {
348
- data.set(breakpointsToSend[i].getId(), response.body.breakpoints[i]);
349
- }
350
- this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
351
- }
352
- }
353
- async sendFunctionBreakpoints(fbpts) {
354
- if (!this.raw) {
355
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'function breakpoints'));
356
- }
357
- if (this.raw.readyForBreakpoints) {
358
- const response = await this.raw.setFunctionBreakpoints({ breakpoints: fbpts });
359
- if (response && response.body) {
360
- const data = ( new Map());
361
- for (let i = 0; i < fbpts.length; i++) {
362
- data.set(fbpts[i].getId(), response.body.breakpoints[i]);
363
- }
364
- this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
365
- }
366
- }
367
- }
368
- async sendExceptionBreakpoints(exbpts) {
369
- if (!this.raw) {
370
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'exception breakpoints'));
371
- }
372
- if (this.raw.readyForBreakpoints) {
373
- const args = this.capabilities.supportsExceptionFilterOptions ? {
374
- filters: [],
375
- filterOptions: ( exbpts.map(exb => {
376
- if (exb.condition) {
377
- return { filterId: exb.filter, condition: exb.condition };
378
- }
379
- return { filterId: exb.filter };
380
- }))
381
- } : { filters: ( exbpts.map(exb => exb.filter)) };
382
- const response = await this.raw.setExceptionBreakpoints(args);
383
- if (response && response.body && response.body.breakpoints) {
384
- const data = ( new Map());
385
- for (let i = 0; i < exbpts.length; i++) {
386
- data.set(exbpts[i].getId(), response.body.breakpoints[i]);
387
- }
388
- this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
389
- }
390
- }
391
- }
392
- async dataBreakpointInfo(name, variablesReference) {
393
- if (!this.raw) {
394
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'data breakpoints info'));
395
- }
396
- if (!this.raw.readyForBreakpoints) {
397
- throw new Error(localize('sessionNotReadyForBreakpoints', "Session is not ready for breakpoints"));
398
- }
399
- const response = await this.raw.dataBreakpointInfo({ name, variablesReference });
400
- return response?.body;
401
- }
402
- async sendDataBreakpoints(dataBreakpoints) {
403
- if (!this.raw) {
404
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'data breakpoints'));
405
- }
406
- if (this.raw.readyForBreakpoints) {
407
- const response = await this.raw.setDataBreakpoints({ breakpoints: dataBreakpoints });
408
- if (response && response.body) {
409
- const data = ( new Map());
410
- for (let i = 0; i < dataBreakpoints.length; i++) {
411
- data.set(dataBreakpoints[i].getId(), response.body.breakpoints[i]);
412
- }
413
- this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
414
- }
415
- }
416
- }
417
- async sendInstructionBreakpoints(instructionBreakpoints) {
418
- if (!this.raw) {
419
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'instruction breakpoints'));
420
- }
421
- if (this.raw.readyForBreakpoints) {
422
- const response = await this.raw.setInstructionBreakpoints({ breakpoints: instructionBreakpoints });
423
- if (response && response.body) {
424
- const data = ( new Map());
425
- for (let i = 0; i < instructionBreakpoints.length; i++) {
426
- data.set(instructionBreakpoints[i].getId(), response.body.breakpoints[i]);
427
- }
428
- this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
429
- }
430
- }
431
- }
432
- async breakpointsLocations(uri, lineNumber) {
433
- if (!this.raw) {
434
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'breakpoints locations'));
435
- }
436
- const source = this.getRawSource(uri);
437
- const response = await this.raw.breakpointLocations({ source, line: lineNumber });
438
- if (!response || !response.body || !response.body.breakpoints) {
439
- return [];
440
- }
441
- const positions = ( response.body.breakpoints.map(bp => ({ lineNumber: bp.line, column: bp.column || 1 })));
442
- return distinct(positions, p => `${p.lineNumber}:${p.column}`);
443
- }
444
- getDebugProtocolBreakpoint(breakpointId) {
445
- return this.model.getDebugProtocolBreakpoint(breakpointId, this.getId());
446
- }
447
- customRequest(request, args) {
448
- if (!this.raw) {
449
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", request));
450
- }
451
- return this.raw.custom(request, args);
452
- }
453
- stackTrace(threadId, startFrame, levels, token) {
454
- if (!this.raw) {
455
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'stackTrace'));
456
- }
457
- const sessionToken = this.getNewCancellationToken(threadId, token);
458
- return this.raw.stackTrace({ threadId, startFrame, levels }, sessionToken);
459
- }
460
- async exceptionInfo(threadId) {
461
- if (!this.raw) {
462
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'exceptionInfo'));
463
- }
464
- const response = await this.raw.exceptionInfo({ threadId });
465
- if (response) {
466
- return {
467
- id: response.body.exceptionId,
468
- description: response.body.description,
469
- breakMode: response.body.breakMode,
470
- details: response.body.details
471
- };
472
- }
473
- return undefined;
474
- }
475
- scopes(frameId, threadId) {
476
- if (!this.raw) {
477
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'scopes'));
478
- }
479
- const token = this.getNewCancellationToken(threadId);
480
- return this.raw.scopes({ frameId }, token);
481
- }
482
- variables(variablesReference, threadId, filter, start, count) {
483
- if (!this.raw) {
484
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'variables'));
485
- }
486
- const token = threadId ? this.getNewCancellationToken(threadId) : undefined;
487
- return this.raw.variables({ variablesReference, filter, start, count }, token);
488
- }
489
- evaluate(expression, frameId, context) {
490
- if (!this.raw) {
491
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'evaluate'));
492
- }
493
- return this.raw.evaluate({ expression, frameId, context });
494
- }
495
- async restartFrame(frameId, threadId) {
496
- if (!this.raw) {
497
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'restartFrame'));
498
- }
499
- await this.raw.restartFrame({ frameId }, threadId);
500
- }
501
- setLastSteppingGranularity(threadId, granularity) {
502
- const thread = this.getThread(threadId);
503
- if (thread) {
504
- thread.lastSteppingGranularity = granularity;
505
- }
506
- }
507
- async next(threadId, granularity) {
508
- if (!this.raw) {
509
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'next'));
510
- }
511
- this.setLastSteppingGranularity(threadId, granularity);
512
- await this.raw.next({ threadId, granularity });
513
- }
514
- async stepIn(threadId, targetId, granularity) {
515
- if (!this.raw) {
516
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'stepIn'));
517
- }
518
- this.setLastSteppingGranularity(threadId, granularity);
519
- await this.raw.stepIn({ threadId, targetId, granularity });
520
- }
521
- async stepOut(threadId, granularity) {
522
- if (!this.raw) {
523
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'stepOut'));
524
- }
525
- this.setLastSteppingGranularity(threadId, granularity);
526
- await this.raw.stepOut({ threadId, granularity });
527
- }
528
- async stepBack(threadId, granularity) {
529
- if (!this.raw) {
530
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'stepBack'));
531
- }
532
- this.setLastSteppingGranularity(threadId, granularity);
533
- await this.raw.stepBack({ threadId, granularity });
534
- }
535
- async continue(threadId) {
536
- if (!this.raw) {
537
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'continue'));
538
- }
539
- await this.raw.continue({ threadId });
540
- }
541
- async reverseContinue(threadId) {
542
- if (!this.raw) {
543
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'reverse continue'));
544
- }
545
- await this.raw.reverseContinue({ threadId });
546
- }
547
- async pause(threadId) {
548
- if (!this.raw) {
549
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'pause'));
550
- }
551
- await this.raw.pause({ threadId });
552
- }
553
- async terminateThreads(threadIds) {
554
- if (!this.raw) {
555
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'terminateThreads'));
556
- }
557
- await this.raw.terminateThreads({ threadIds });
558
- }
559
- setVariable(variablesReference, name, value) {
560
- if (!this.raw) {
561
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'setVariable'));
562
- }
563
- return this.raw.setVariable({ variablesReference, name, value });
564
- }
565
- setExpression(frameId, expression, value) {
566
- if (!this.raw) {
567
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'setExpression'));
568
- }
569
- return this.raw.setExpression({ expression, value, frameId });
570
- }
571
- gotoTargets(source, line, column) {
572
- if (!this.raw) {
573
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'gotoTargets'));
574
- }
575
- return this.raw.gotoTargets({ source, line, column });
576
- }
577
- goto(threadId, targetId) {
578
- if (!this.raw) {
579
- throw new Error(localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'goto'));
580
- }
581
- return this.raw.goto({ threadId, targetId });
582
- }
583
- loadSource(resource) {
584
- if (!this.raw) {
585
- return Promise.reject(( new Error(( localize(
586
- 'noDebugAdapter',
587
- "No debugger available, can not send '{0}'",
588
- 'loadSource'
589
- )))));
590
- }
591
- const source = this.getSourceForUri(resource);
592
- let rawSource;
593
- if (source) {
594
- rawSource = source.raw;
595
- }
596
- else {
597
- const data = Source.getEncodedDebugData(resource);
598
- rawSource = { path: data.path, sourceReference: data.sourceReference };
599
- }
600
- return this.raw.source({ sourceReference: rawSource.sourceReference || 0, source: rawSource });
601
- }
602
- async getLoadedSources() {
603
- if (!this.raw) {
604
- return Promise.reject(( new Error(( localize(
605
- 'noDebugAdapter',
606
- "No debugger available, can not send '{0}'",
607
- 'getLoadedSources'
608
- )))));
609
- }
610
- const response = await this.raw.loadedSources({});
611
- if (response && response.body && response.body.sources) {
612
- return ( response.body.sources.map(src => this.getSource(src)));
613
- }
614
- else {
615
- return [];
616
- }
617
- }
618
- async completions(frameId, threadId, text, position, overwriteBefore, token) {
619
- if (!this.raw) {
620
- return Promise.reject(( new Error(( localize(
621
- 'noDebugAdapter',
622
- "No debugger available, can not send '{0}'",
623
- 'completions'
624
- )))));
625
- }
626
- const sessionCancelationToken = this.getNewCancellationToken(threadId, token);
627
- return this.raw.completions({
628
- frameId,
629
- text,
630
- column: position.column,
631
- line: position.lineNumber,
632
- }, sessionCancelationToken);
633
- }
634
- async stepInTargets(frameId) {
635
- if (!this.raw) {
636
- return Promise.reject(( new Error(( localize(
637
- 'noDebugAdapter',
638
- "No debugger available, can not send '{0}'",
639
- 'stepInTargets'
640
- )))));
641
- }
642
- const response = await this.raw.stepInTargets({ frameId });
643
- return response?.body.targets;
644
- }
645
- async cancel(progressId) {
646
- if (!this.raw) {
647
- return Promise.reject(( new Error(( localize('noDebugAdapter', "No debugger available, can not send '{0}'", 'cancel')))));
648
- }
649
- return this.raw.cancel({ progressId });
650
- }
651
- async disassemble(memoryReference, offset, instructionOffset, instructionCount) {
652
- if (!this.raw) {
653
- return Promise.reject(( new Error(( localize(
654
- 'noDebugAdapter',
655
- "No debugger available, can not send '{0}'",
656
- 'disassemble'
657
- )))));
658
- }
659
- const response = await this.raw.disassemble({ memoryReference, offset, instructionOffset, instructionCount, resolveSymbols: true });
660
- return response?.body?.instructions;
661
- }
662
- readMemory(memoryReference, offset, count) {
663
- if (!this.raw) {
664
- return Promise.reject(( new Error(( localize(
665
- 'noDebugAdapter',
666
- "No debugger available, can not send '{0}'",
667
- 'readMemory'
668
- )))));
669
- }
670
- return this.raw.readMemory({ count, memoryReference, offset });
671
- }
672
- writeMemory(memoryReference, offset, data, allowPartial) {
673
- if (!this.raw) {
674
- return Promise.reject(( new Error(( localize(
675
- 'noDebugAdapter',
676
- "No debugger available, can not send '{0}'",
677
- 'disassemble'
678
- )))));
679
- }
680
- return this.raw.writeMemory({ memoryReference, offset, allowPartial, data });
681
- }
682
- getThread(threadId) {
683
- return this.threads.get(threadId);
684
- }
685
- getAllThreads() {
686
- const result = [];
687
- this.threadIds.forEach((threadId) => {
688
- const thread = this.threads.get(threadId);
689
- if (thread) {
690
- result.push(thread);
691
- }
692
- });
693
- return result;
694
- }
695
- clearThreads(removeThreads, reference = undefined) {
696
- if (reference !== undefined && reference !== null) {
697
- const thread = this.threads.get(reference);
698
- if (thread) {
699
- thread.clearCallStack();
700
- thread.stoppedDetails = undefined;
701
- thread.stopped = false;
702
- if (removeThreads) {
703
- this.threads.delete(reference);
704
- }
705
- }
706
- }
707
- else {
708
- this.threads.forEach(thread => {
709
- thread.clearCallStack();
710
- thread.stoppedDetails = undefined;
711
- thread.stopped = false;
712
- });
713
- if (removeThreads) {
714
- this.threads.clear();
715
- this.threadIds = [];
716
- ExpressionContainer.allValues.clear();
717
- }
718
- }
719
- }
720
- getStoppedDetails() {
721
- return this.stoppedDetails.length >= 1 ? this.stoppedDetails[0] : undefined;
722
- }
723
- rawUpdate(data) {
724
- this.threadIds = [];
725
- data.threads.forEach(thread => {
726
- this.threadIds.push(thread.id);
727
- if (!( this.threads.has(thread.id))) {
728
- this.threads.set(thread.id, ( new Thread(this, thread.name, thread.id)));
729
- }
730
- else if (thread.name) {
731
- const oldThread = this.threads.get(thread.id);
732
- if (oldThread) {
733
- oldThread.name = thread.name;
734
- }
735
- }
736
- });
737
- this.threads.forEach(t => {
738
- if (this.threadIds.indexOf(t.threadId) === -1) {
739
- this.threads.delete(t.threadId);
740
- }
741
- });
742
- const stoppedDetails = data.stoppedDetails;
743
- if (stoppedDetails) {
744
- if (stoppedDetails.allThreadsStopped) {
745
- this.threads.forEach(thread => {
746
- thread.stoppedDetails = thread.threadId === stoppedDetails.threadId ? stoppedDetails : { reason: thread.stoppedDetails?.reason };
747
- thread.stopped = true;
748
- thread.clearCallStack();
749
- });
750
- }
751
- else {
752
- const thread = typeof stoppedDetails.threadId === 'number' ? this.threads.get(stoppedDetails.threadId) : undefined;
753
- if (thread) {
754
- thread.stoppedDetails = stoppedDetails;
755
- thread.clearCallStack();
756
- thread.stopped = true;
757
- }
758
- }
759
- }
760
- }
761
- async fetchThreads(stoppedDetails) {
762
- if (this.raw) {
763
- const response = await this.raw.threads();
764
- if (response && response.body && response.body.threads) {
765
- this.model.rawUpdate({
766
- sessionId: this.getId(),
767
- threads: response.body.threads,
768
- stoppedDetails
769
- });
770
- }
771
- }
772
- }
773
- initializeForTest(raw) {
774
- this.raw = raw;
775
- this.registerListeners();
776
- }
777
- registerListeners() {
778
- if (!this.raw) {
779
- return;
780
- }
781
- this.rawListeners.add(this.raw.onDidInitialize(async () => {
782
- aria.status(( localize('debuggingStarted', "Debugging started.")));
783
- const sendConfigurationDone = async () => {
784
- if (this.raw && this.raw.capabilities.supportsConfigurationDoneRequest) {
785
- try {
786
- await this.raw.configurationDone();
787
- }
788
- catch (e) {
789
- this.notificationService.error(e);
790
- this.raw?.disconnect({});
791
- }
792
- }
793
- return undefined;
794
- };
795
- try {
796
- await this.debugService.sendAllBreakpoints(this);
797
- }
798
- finally {
799
- await sendConfigurationDone();
800
- await this.fetchThreads();
801
- }
802
- }));
803
- const statusQueue = ( new Queue());
804
- this.rawListeners.add(this.raw.onDidStop(async (event) => {
805
- statusQueue.queue(async () => {
806
- this.passFocusScheduler.cancel();
807
- this.stoppedDetails.push(event.body);
808
- await this.fetchThreads(event.body);
809
- const focusedThread = this.debugService.getViewModel().focusedThread;
810
- const focusedThreadDoesNotExist = focusedThread !== undefined && focusedThread.session === this && !( this.threads.has(focusedThread.threadId));
811
- if (focusedThreadDoesNotExist) {
812
- this.debugService.focusStackFrame(undefined, undefined);
813
- }
814
- const thread = typeof event.body.threadId === 'number' ? this.getThread(event.body.threadId) : undefined;
815
- if (thread) {
816
- const promises = this.model.refreshTopOfCallstack(thread);
817
- const focus = async () => {
818
- if (focusedThreadDoesNotExist || (!event.body.preserveFocusHint && thread.getCallStack().length)) {
819
- const focusedStackFrame = this.debugService.getViewModel().focusedStackFrame;
820
- if (!focusedStackFrame || focusedStackFrame.thread.session === this) {
821
- const preserveFocus = !this.configurationService.getValue('debug').focusEditorOnBreak;
822
- await this.debugService.focusStackFrame(undefined, thread, undefined, { preserveFocus });
823
- }
824
- if (thread.stoppedDetails) {
825
- if (thread.stoppedDetails.reason === 'breakpoint' && this.configurationService.getValue('debug').openDebug === 'openOnDebugBreak' && !this.suppressDebugView) {
826
- await this.paneCompositeService.openPaneComposite(VIEWLET_ID, 0 );
827
- }
828
- if (this.configurationService.getValue('debug').focusWindowOnBreak && !this.workbenchEnvironmentService.extensionTestsLocationURI) {
829
- await this.hostService.focus({ force: true });
830
- }
831
- }
832
- }
833
- };
834
- await promises.topCallStack;
835
- focus();
836
- await promises.wholeCallStack;
837
- const focusedStackFrame = this.debugService.getViewModel().focusedStackFrame;
838
- if (!focusedStackFrame || !focusedStackFrame.source || focusedStackFrame.source.presentationHint === 'deemphasize' || focusedStackFrame.presentationHint === 'deemphasize') {
839
- focus();
840
- }
841
- }
842
- this._onDidChangeState.fire();
843
- });
844
- }));
845
- this.rawListeners.add(this.raw.onDidThread(event => {
846
- statusQueue.queue(async () => {
847
- if (event.body.reason === 'started') {
848
- if (!this.fetchThreadsScheduler) {
849
- this.fetchThreadsScheduler = ( new RunOnceScheduler(() => {
850
- this.fetchThreads();
851
- }, 100));
852
- this.rawListeners.add(this.fetchThreadsScheduler);
853
- }
854
- if (!this.fetchThreadsScheduler.isScheduled()) {
855
- this.fetchThreadsScheduler.schedule();
856
- }
857
- }
858
- else if (event.body.reason === 'exited') {
859
- this.model.clearThreads(this.getId(), true, event.body.threadId);
860
- const viewModel = this.debugService.getViewModel();
861
- const focusedThread = viewModel.focusedThread;
862
- this.passFocusScheduler.cancel();
863
- if (focusedThread && event.body.threadId === focusedThread.threadId) {
864
- this.debugService.focusStackFrame(undefined, undefined, viewModel.focusedSession, { explicit: false });
865
- }
866
- }
867
- });
868
- }));
869
- this.rawListeners.add(this.raw.onDidTerminateDebugee(async (event) => {
870
- aria.status(( localize('debuggingStopped', "Debugging stopped.")));
871
- if (event.body && event.body.restart) {
872
- await this.debugService.restartSession(this, event.body.restart);
873
- }
874
- else if (this.raw) {
875
- await this.raw.disconnect({ terminateDebuggee: false });
876
- }
877
- }));
878
- this.rawListeners.add(this.raw.onDidContinued(event => {
879
- statusQueue.queue(async () => {
880
- const threadId = event.body.allThreadsContinued !== false ? undefined : event.body.threadId;
881
- if (typeof threadId === 'number') {
882
- this.stoppedDetails = this.stoppedDetails.filter(sd => sd.threadId !== threadId);
883
- const tokens = this.cancellationMap.get(threadId);
884
- this.cancellationMap.delete(threadId);
885
- tokens?.forEach(t => t.dispose(true));
886
- }
887
- else {
888
- this.stoppedDetails = [];
889
- this.cancelAllRequests();
890
- }
891
- this.lastContinuedThreadId = threadId;
892
- this.passFocusScheduler.schedule();
893
- this.model.clearThreads(this.getId(), false, threadId);
894
- this._onDidChangeState.fire();
895
- });
896
- }));
897
- const outputQueue = ( new Queue());
898
- this.rawListeners.add(this.raw.onDidOutput(async (event) => {
899
- const outputSeverity = event.body.category === 'stderr' ? Severity.Error : event.body.category === 'console' ? Severity.Warning : Severity.Info;
900
- if (event.body.variablesReference) {
901
- const source = event.body.source && event.body.line ? {
902
- lineNumber: event.body.line,
903
- column: event.body.column ? event.body.column : 1,
904
- source: this.getSource(event.body.source)
905
- } : undefined;
906
- const container = ( new ExpressionContainer(this, undefined, event.body.variablesReference, generateUuid()));
907
- const children = container.getChildren();
908
- outputQueue.queue(async () => {
909
- const resolved = await children;
910
- if (resolved.length === 1) {
911
- this.appendToRepl({ output: event.body.output, expression: resolved[0], sev: outputSeverity, source }, event.body.category === 'important');
912
- return;
913
- }
914
- resolved.forEach((child) => {
915
- child.name = null;
916
- this.appendToRepl({ output: '', expression: child, sev: outputSeverity, source }, event.body.category === 'important');
917
- });
918
- });
919
- return;
920
- }
921
- outputQueue.queue(async () => {
922
- if (!event.body || !this.raw) {
923
- return;
924
- }
925
- if (event.body.category === 'telemetry') {
926
- const telemetryEndpoint = this.raw.dbgr.getCustomTelemetryEndpoint();
927
- if (telemetryEndpoint && this.telemetryService.telemetryLevel !== 0 ) {
928
- let data = event.body.data;
929
- if (!telemetryEndpoint.sendErrorTelemetry && event.body.data) {
930
- data = filterExceptionsFromTelemetry(event.body.data);
931
- }
932
- this.customEndpointTelemetryService.publicLog(telemetryEndpoint, event.body.output, data);
933
- }
934
- return;
935
- }
936
- const source = event.body.source && event.body.line ? {
937
- lineNumber: event.body.line,
938
- column: event.body.column ? event.body.column : 1,
939
- source: this.getSource(event.body.source)
940
- } : undefined;
941
- if (event.body.group === 'start' || event.body.group === 'startCollapsed') {
942
- const expanded = event.body.group === 'start';
943
- this.repl.startGroup(event.body.output || '', expanded, source);
944
- return;
945
- }
946
- if (event.body.group === 'end') {
947
- this.repl.endGroup();
948
- if (!event.body.output) {
949
- return;
950
- }
951
- }
952
- if (typeof event.body.output === 'string') {
953
- this.appendToRepl({ output: event.body.output, sev: outputSeverity, source }, event.body.category === 'important');
954
- }
955
- });
956
- }));
957
- this.rawListeners.add(this.raw.onDidBreakpoint(event => {
958
- const id = event.body && event.body.breakpoint ? event.body.breakpoint.id : undefined;
959
- const breakpoint = this.model.getBreakpoints().find(bp => bp.getIdFromAdapter(this.getId()) === id);
960
- const functionBreakpoint = this.model.getFunctionBreakpoints().find(bp => bp.getIdFromAdapter(this.getId()) === id);
961
- const dataBreakpoint = this.model.getDataBreakpoints().find(dbp => dbp.getIdFromAdapter(this.getId()) === id);
962
- const exceptionBreakpoint = this.model.getExceptionBreakpoints().find(excbp => excbp.getIdFromAdapter(this.getId()) === id);
963
- if (event.body.reason === 'new' && event.body.breakpoint.source && event.body.breakpoint.line) {
964
- const source = this.getSource(event.body.breakpoint.source);
965
- const bps = this.model.addBreakpoints(source.uri, [{
966
- column: event.body.breakpoint.column,
967
- enabled: true,
968
- lineNumber: event.body.breakpoint.line,
969
- }], false);
970
- if (bps.length === 1) {
971
- const data = ( new Map([[bps[0].getId(), event.body.breakpoint]]));
972
- this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
973
- }
974
- }
975
- if (event.body.reason === 'removed') {
976
- if (breakpoint) {
977
- this.model.removeBreakpoints([breakpoint]);
978
- }
979
- if (functionBreakpoint) {
980
- this.model.removeFunctionBreakpoints(functionBreakpoint.getId());
981
- }
982
- if (dataBreakpoint) {
983
- this.model.removeDataBreakpoints(dataBreakpoint.getId());
984
- }
985
- }
986
- if (event.body.reason === 'changed') {
987
- if (breakpoint) {
988
- if (!breakpoint.column) {
989
- event.body.breakpoint.column = undefined;
990
- }
991
- const data = ( new Map([[breakpoint.getId(), event.body.breakpoint]]));
992
- this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
993
- }
994
- if (functionBreakpoint) {
995
- const data = ( new Map([[functionBreakpoint.getId(), event.body.breakpoint]]));
996
- this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
997
- }
998
- if (dataBreakpoint) {
999
- const data = ( new Map([[dataBreakpoint.getId(), event.body.breakpoint]]));
1000
- this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
1001
- }
1002
- if (exceptionBreakpoint) {
1003
- const data = ( new Map([[exceptionBreakpoint.getId(), event.body.breakpoint]]));
1004
- this.model.setBreakpointSessionData(this.getId(), this.capabilities, data);
1005
- }
1006
- }
1007
- }));
1008
- this.rawListeners.add(this.raw.onDidLoadedSource(event => {
1009
- this._onDidLoadedSource.fire({
1010
- reason: event.body.reason,
1011
- source: this.getSource(event.body.source)
1012
- });
1013
- }));
1014
- this.rawListeners.add(this.raw.onDidCustomEvent(event => {
1015
- this._onDidCustomEvent.fire(event);
1016
- }));
1017
- this.rawListeners.add(this.raw.onDidProgressStart(event => {
1018
- this._onDidProgressStart.fire(event);
1019
- }));
1020
- this.rawListeners.add(this.raw.onDidProgressUpdate(event => {
1021
- this._onDidProgressUpdate.fire(event);
1022
- }));
1023
- this.rawListeners.add(this.raw.onDidProgressEnd(event => {
1024
- this._onDidProgressEnd.fire(event);
1025
- }));
1026
- this.rawListeners.add(this.raw.onDidInvalidateMemory(event => {
1027
- this._onDidInvalidMemory.fire(event);
1028
- }));
1029
- this.rawListeners.add(this.raw.onDidInvalidated(async (event) => {
1030
- if (!(event.body.areas && event.body.areas.length === 1 && (event.body.areas[0] === 'variables' || event.body.areas[0] === 'watch'))) {
1031
- this.cancelAllRequests();
1032
- this.model.clearThreads(this.getId(), true);
1033
- await this.fetchThreads(this.getStoppedDetails());
1034
- }
1035
- const viewModel = this.debugService.getViewModel();
1036
- if (viewModel.focusedSession === this) {
1037
- viewModel.updateViews();
1038
- }
1039
- }));
1040
- this.rawListeners.add(this.raw.onDidExitAdapter(event => this.onDidExitAdapter(event)));
1041
- }
1042
- onDidExitAdapter(event) {
1043
- this.initialized = true;
1044
- this.model.setBreakpointSessionData(this.getId(), this.capabilities, undefined);
1045
- this.shutdown();
1046
- this._onDidEndAdapter.fire(event);
1047
- }
1048
- shutdown() {
1049
- this.rawListeners.clear();
1050
- if (this.raw) {
1051
- this.raw.disconnect({});
1052
- this.raw.dispose();
1053
- this.raw = undefined;
1054
- }
1055
- this.fetchThreadsScheduler?.dispose();
1056
- this.fetchThreadsScheduler = undefined;
1057
- this.passFocusScheduler.cancel();
1058
- this.passFocusScheduler.dispose();
1059
- this.model.clearThreads(this.getId(), true);
1060
- this._onDidChangeState.fire();
1061
- }
1062
- dispose() {
1063
- this.cancelAllRequests();
1064
- this.rawListeners.dispose();
1065
- }
1066
- getSourceForUri(uri) {
1067
- return this.sources.get(( this.uriIdentityService.asCanonicalUri(uri).toString()));
1068
- }
1069
- getSource(raw) {
1070
- let source = ( new Source(raw, this.getId(), this.uriIdentityService, this.logService));
1071
- const uriKey = ( source.uri.toString());
1072
- const found = this.sources.get(uriKey);
1073
- if (found) {
1074
- source = found;
1075
- source.raw = mixin(source.raw, raw);
1076
- if (source.raw && raw) {
1077
- source.raw.presentationHint = raw.presentationHint;
1078
- }
1079
- }
1080
- else {
1081
- this.sources.set(uriKey, source);
1082
- }
1083
- return source;
1084
- }
1085
- getRawSource(uri) {
1086
- const source = this.getSourceForUri(uri);
1087
- if (source) {
1088
- return source.raw;
1089
- }
1090
- else {
1091
- const data = Source.getEncodedDebugData(uri);
1092
- return { name: data.name, path: data.path, sourceReference: data.sourceReference };
1093
- }
1094
- }
1095
- getNewCancellationToken(threadId, token) {
1096
- const tokenSource = ( new CancellationTokenSource(token));
1097
- const tokens = this.cancellationMap.get(threadId) || [];
1098
- tokens.push(tokenSource);
1099
- this.cancellationMap.set(threadId, tokens);
1100
- return tokenSource.token;
1101
- }
1102
- cancelAllRequests() {
1103
- this.cancellationMap.forEach(tokens => tokens.forEach(t => t.dispose(true)));
1104
- this.cancellationMap.clear();
1105
- }
1106
- getReplElements() {
1107
- return this.repl.getReplElements();
1108
- }
1109
- hasSeparateRepl() {
1110
- return !this.parentSession || this._options.repl !== 'mergeWithParent';
1111
- }
1112
- removeReplExpressions() {
1113
- this.repl.removeReplExpressions();
1114
- }
1115
- async addReplExpression(stackFrame, name) {
1116
- await this.repl.addReplExpression(this, stackFrame, name);
1117
- this.debugService.getViewModel().updateViews();
1118
- }
1119
- appendToRepl(data, isImportant) {
1120
- this.repl.appendToRepl(this, data);
1121
- if (isImportant) {
1122
- this.notificationService.notify({ message: ( data.output.toString()), severity: data.sev, source: this.name });
1123
- }
1124
- }
1125
- };
1126
- DebugSession = ( __decorate([
1127
- ( __param(5, IDebugService)),
1128
- ( __param(6, ITelemetryService)),
1129
- ( __param(7, IHostService)),
1130
- ( __param(8, IConfigurationService)),
1131
- ( __param(9, IPaneCompositePartService)),
1132
- ( __param(10, IWorkspaceContextService)),
1133
- ( __param(11, IProductService)),
1134
- ( __param(12, INotificationService)),
1135
- ( __param(13, ILifecycleService)),
1136
- ( __param(14, IUriIdentityService)),
1137
- ( __param(15, IInstantiationService)),
1138
- ( __param(16, ICustomEndpointTelemetryService)),
1139
- ( __param(17, IWorkbenchEnvironmentService)),
1140
- ( __param(18, ILogService))
1141
- ], DebugSession));
1142
- export { DebugSession };