@codingame/monaco-vscode-api 1.83.16 → 1.85.0-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 (328) hide show
  1. package/api.js +13 -7
  2. package/assets/clear.mp3 +0 -0
  3. package/assets/format.mp3 +0 -0
  4. package/assets/save.mp3 +0 -0
  5. package/extensions.d.ts +13 -3
  6. package/external/{xterm-addon-image/typings/xterm-addon-image.d.ts → @xterm/addon-image/typings/addon-image.d.ts} +1 -1
  7. package/external/{xterm-addon-serialize/typings/xterm-addon-serialize.d.ts → @xterm/addon-serialize/typings/addon-serialize.d.ts} +20 -3
  8. package/external/{xterm → @xterm/xterm}/typings/xterm.d.ts +13 -1
  9. package/lifecycle.js +2 -2
  10. package/localExtensionHost.js +3 -1
  11. package/missing-services.js +160 -25
  12. package/monaco-editor-treemending.patch +6884 -18018
  13. package/monaco-treemending.js +2 -2
  14. package/package.json +7 -7
  15. package/service-override/tools/editor.d.ts +8 -8
  16. package/service-override/tools/editor.js +44 -19
  17. package/services.d.ts +2 -2
  18. package/services.js +3 -3
  19. package/vscode/src/vs/base/browser/broadcast.js +6 -5
  20. package/vscode/src/vs/base/browser/dnd.d.ts +6 -0
  21. package/vscode/src/vs/base/browser/mouseEvent.d.ts +1 -1
  22. package/vscode/src/vs/base/browser/touch.d.ts +10 -0
  23. package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +1 -0
  24. package/vscode/src/vs/base/browser/ui/iconLabel/iconHoverDelegate.d.ts +22 -15
  25. package/vscode/src/vs/base/browser/ui/menu/menubar.js +4 -3
  26. package/vscode/src/vs/base/browser/ui/splitview/paneview.css.js +1 -1
  27. package/vscode/src/vs/base/browser/ui/splitview/paneview.d.ts +3 -0
  28. package/vscode/src/vs/base/browser/ui/splitview/paneview.js +34 -11
  29. package/vscode/src/vs/base/common/actions.d.ts +1 -15
  30. package/vscode/src/vs/base/common/async.d.ts +1 -31
  31. package/vscode/src/vs/base/common/event.d.ts +2 -1
  32. package/vscode/src/vs/base/common/observableInternal/base.d.ts +23 -10
  33. package/vscode/src/vs/base/common/prefixTree.js +21 -11
  34. package/vscode/src/vs/base/common/product.d.ts +16 -2
  35. package/vscode/src/vs/base/common/resourceTree.js +135 -0
  36. package/vscode/src/vs/base/common/skipList.js +1 -0
  37. package/vscode/src/vs/base/common/tfIdf.js +137 -0
  38. package/vscode/src/vs/base/common/types.d.ts +13 -1
  39. package/vscode/src/vs/base/common/verifier.js +62 -0
  40. package/vscode/src/vs/editor/browser/editorBrowser.d.ts +4 -2
  41. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +23 -4
  42. package/vscode/src/vs/editor/common/core/lineRange.d.ts +1 -0
  43. package/vscode/src/vs/editor/common/core/offsetRange.d.ts +3 -0
  44. package/vscode/src/vs/editor/common/core/position.d.ts +1 -0
  45. package/vscode/src/vs/editor/common/editorCommon.d.ts +2 -1
  46. package/vscode/src/vs/editor/common/languages.d.ts +23 -1
  47. package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -1
  48. package/vscode/src/vs/editor/common/services/resolverService.d.ts +11 -2
  49. package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +16 -1
  50. package/vscode/src/vs/platform/action/common/action.d.ts +8 -0
  51. package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +4 -0
  52. package/vscode/src/vs/platform/actions/common/actions.d.ts +8 -0
  53. package/vscode/src/vs/platform/audioCues/browser/audioCueService.d.ts +6 -0
  54. package/vscode/src/vs/platform/commands/common/commands.d.ts +13 -5
  55. package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +9 -3
  56. package/vscode/src/vs/platform/dialogs/common/dialogs.js +5 -2
  57. package/vscode/src/vs/platform/editor/common/editor.d.ts +3 -15
  58. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
  59. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +3 -15
  60. package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +5 -0
  61. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +0 -1
  62. package/vscode/src/vs/platform/files/common/files.d.ts +72 -8
  63. package/vscode/src/vs/platform/files/common/watcher.js +77 -0
  64. package/vscode/src/vs/platform/keybinding/common/keybindingsRegistry.d.ts +2 -2
  65. package/vscode/src/vs/platform/layout/browser/layoutService.d.ts +52 -21
  66. package/vscode/src/vs/platform/request/browser/requestService.js +3 -0
  67. package/vscode/src/vs/platform/request/common/requestIpc.js +17 -0
  68. package/vscode/src/vs/platform/storage/common/storage.js +2 -2
  69. package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +1 -0
  70. package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +12 -7
  71. package/vscode/src/vs/platform/terminal/common/capabilities/{commandDetectionCapability.d.ts → commandDetection/terminalCommand.d.ts} +3 -2
  72. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/terminalCommand.js +257 -0
  73. package/vscode/src/vs/platform/terminal/common/capabilities/commandDetectionCapability.js +439 -354
  74. package/vscode/src/vs/platform/window/common/window.d.ts +9 -2
  75. package/vscode/src/vs/platform/window/common/window.js +6 -1
  76. package/vscode/src/vs/platform/workspaces/common/workspaces.d.ts +2 -43
  77. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +113 -81
  78. package/vscode/src/vs/workbench/api/common/extHost.protocol.js +5 -4
  79. package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +25 -3
  80. package/vscode/src/vs/workbench/api/common/extHostChat.js +13 -163
  81. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +412 -0
  82. package/vscode/src/vs/workbench/api/common/extHostChatProvider.js +79 -11
  83. package/vscode/src/vs/workbench/api/common/extHostCommands.js +13 -12
  84. package/vscode/src/vs/workbench/api/common/extHostComments.js +1 -1
  85. package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +8 -6
  86. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +1 -1
  87. package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +36 -19
  88. package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +52 -31
  89. package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +38 -0
  90. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +28 -3
  91. package/vscode/src/vs/workbench/api/common/extHostLanguages.js +10 -0
  92. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +117 -2
  93. package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +32 -4
  94. package/vscode/src/vs/workbench/api/common/extHostSCM.js +85 -23
  95. package/vscode/src/vs/workbench/api/common/extHostSearch.js +3 -0
  96. package/vscode/src/vs/workbench/api/common/extHostSpeech.js +42 -0
  97. package/vscode/src/vs/workbench/api/common/extHostTask.js +2 -1
  98. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -0
  99. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +3 -3
  100. package/vscode/src/vs/workbench/api/common/extHostTesting.js +97 -47
  101. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +115 -16
  102. package/vscode/src/vs/workbench/api/common/extHostTypes.js +66 -36
  103. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +6 -1
  104. package/vscode/src/vs/workbench/browser/actions/layoutActions.js +182 -75
  105. package/vscode/src/vs/workbench/browser/actions/windowActions.js +176 -4
  106. package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +143 -2
  107. package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +237 -0
  108. package/vscode/src/vs/workbench/browser/composite.d.ts +0 -4
  109. package/vscode/src/vs/workbench/browser/composite.js +5 -4
  110. package/vscode/src/vs/workbench/browser/dnd.js +72 -23
  111. package/vscode/src/vs/workbench/browser/labels.js +7 -3
  112. package/vscode/src/vs/workbench/browser/media/part.css.js +1 -1
  113. package/vscode/src/vs/workbench/browser/panecomposite.d.ts +2 -2
  114. package/vscode/src/vs/workbench/browser/panecomposite.js +2 -0
  115. package/vscode/src/vs/workbench/browser/part.js +33 -2
  116. package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +99 -117
  117. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +173 -33
  118. package/vscode/src/vs/workbench/browser/parts/editor/editor.js +102 -6
  119. package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +256 -17
  120. package/vscode/src/vs/workbench/browser/parts/editor/editorAutoSave.js +4 -0
  121. package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +68 -35
  122. package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +5 -5
  123. package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +35 -16
  124. package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +348 -0
  125. package/vscode/src/vs/workbench/browser/parts/editor/editorsObserver.js +43 -31
  126. package/vscode/src/vs/workbench/browser/parts/editor/media/editortabscontrol.css.js +4 -0
  127. package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -0
  128. package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -0
  129. package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +14 -2
  130. package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +4 -4
  131. package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +277 -0
  132. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +5 -2
  133. package/vscode/src/vs/workbench/browser/parts/panel/media/panelpart.css.js +1 -1
  134. package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +3 -38
  135. package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.d.ts +54 -52
  136. package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +2 -1
  137. package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarPart.d.ts +25 -0
  138. package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +258 -0
  139. package/vscode/src/vs/workbench/browser/parts/views/media/paneviewlet.css.js +1 -1
  140. package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +2 -5
  141. package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +157 -117
  142. package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +50 -23
  143. package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +26 -11
  144. package/vscode/src/vs/workbench/browser/parts/views/viewsViewlet.js +10 -6
  145. package/vscode/src/vs/workbench/browser/style.js +2 -1
  146. package/vscode/src/vs/workbench/browser/web.api.d.ts +39 -2
  147. package/vscode/src/vs/workbench/browser/window.js +55 -0
  148. package/vscode/src/vs/workbench/browser/workbench.contribution.js +220 -40
  149. package/vscode/src/vs/workbench/common/activity.js +3 -0
  150. package/vscode/src/vs/workbench/common/contextkeys.js +35 -5
  151. package/vscode/src/vs/workbench/common/contributions.js +4 -3
  152. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +14 -4
  153. package/vscode/src/vs/workbench/common/editor/diffEditorModel.js +1 -1
  154. package/vscode/src/vs/workbench/common/editor/editorGroupModel.js +22 -19
  155. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +4 -3
  156. package/vscode/src/vs/workbench/common/editor/editorModel.d.ts +1 -2
  157. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +22 -4
  158. package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +3 -3
  159. package/vscode/src/vs/workbench/common/editor.d.ts +60 -30
  160. package/vscode/src/vs/workbench/common/editor.js +11 -3
  161. package/vscode/src/vs/workbench/common/theme.js +2 -2
  162. package/vscode/src/vs/workbench/common/views.d.ts +4 -4
  163. package/vscode/src/vs/workbench/common/views.js +3 -1
  164. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +97 -8
  165. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +17 -99
  166. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +103 -37
  167. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +2 -3
  168. package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +127 -0
  169. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +71 -0
  170. package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +2 -1
  171. package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +33 -110
  172. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +64 -0
  173. package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +94 -0
  174. package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +6 -1
  175. package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +1 -88
  176. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +4 -4
  177. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -2
  178. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +3 -1
  179. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +15 -16
  180. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +9 -3
  181. package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +3 -1
  182. package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +2 -3
  183. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +1 -0
  184. package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +9 -1
  185. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +10 -1
  186. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +114 -22
  187. package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionActions.css.js +1 -1
  188. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +4 -1
  189. package/vscode/src/vs/workbench/contrib/files/browser/explorerFileContrib.js +19 -0
  190. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +10 -8
  191. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +62 -10
  192. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +2 -1
  193. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +9 -8
  194. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +10 -1
  195. package/vscode/src/vs/workbench/contrib/files/browser/files.d.ts +1 -0
  196. package/vscode/src/vs/workbench/contrib/files/browser/files.js +7 -3
  197. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +4 -4
  198. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +64 -36
  199. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +42 -17
  200. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +145 -25
  201. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +1 -1
  202. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  203. package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +36 -0
  204. package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +3 -1
  205. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +24 -3
  206. package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +11 -6
  207. package/vscode/src/vs/workbench/contrib/scm/common/scm.js +1 -2
  208. package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/searchNotebookHelpers.js +31 -0
  209. package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +61 -41
  210. package/vscode/src/vs/workbench/contrib/search/{browser/searchNotebookHelpers.js → common/cellSearchModel.js} +4 -63
  211. package/vscode/src/vs/workbench/contrib/search/common/searchNotebookHelpers.js +40 -0
  212. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +2 -2
  213. package/vscode/src/vs/workbench/{services/editor/browser/editorDropService.js → contrib/speech/common/speechService.js} +2 -2
  214. package/vscode/src/vs/workbench/contrib/terminal/browser/detachedTerminal.js +29 -4
  215. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +100 -79
  216. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +3 -3
  217. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +1 -1
  218. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcon.js +7 -4
  219. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationAddon.js +5 -3
  220. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.js +143 -41
  221. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +17 -11
  222. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.js +41 -26
  223. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +5 -2
  224. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +2 -8
  225. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +2 -0
  226. package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +115 -0
  227. package/vscode/src/vs/workbench/contrib/testing/common/testCoverageService.js +74 -0
  228. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +3 -3
  229. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +64 -1
  230. package/vscode/src/vs/workbench/contrib/testing/common/testingContextKeys.js +9 -0
  231. package/vscode/src/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor.js +4 -3
  232. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +8 -9
  233. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInput.js +1 -1
  234. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewIconManager.js +5 -2
  235. package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +16 -10
  236. package/vscode/src/vs/workbench/services/activity/common/activity.d.ts +14 -1
  237. package/vscode/src/vs/workbench/services/activity/common/activity.js +1 -7
  238. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +9 -28
  239. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +273 -0
  240. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.js +1 -0
  241. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +2 -0
  242. package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +2 -3
  243. package/vscode/src/vs/workbench/services/editor/browser/editorService.d.ts +7 -5
  244. package/vscode/src/vs/workbench/services/editor/browser/editorService.js +59 -37
  245. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +193 -94
  246. package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +2 -2
  247. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.d.ts +8 -2
  248. package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +8 -1
  249. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +62 -16
  250. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +5 -3
  251. package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +3 -2
  252. package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +4 -9
  253. package/vscode/src/vs/workbench/services/extensions/common/{extensionHostManager.d.ts → extensionHostManagers.d.ts} +2 -0
  254. package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +1 -1
  255. package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +9 -0
  256. package/vscode/src/vs/workbench/services/extensions/common/extensions.js +22 -0
  257. package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +14 -3
  258. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +9 -0
  259. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +3 -3
  260. package/vscode/src/vs/workbench/services/history/common/history.d.ts +2 -2
  261. package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +49 -18
  262. package/vscode/src/vs/workbench/services/host/browser/host.d.ts +29 -7
  263. package/vscode/src/vs/workbench/services/hover/browser/hover.d.ts +51 -28
  264. package/vscode/src/vs/workbench/services/hover/browser/hoverService.d.ts +5 -2
  265. package/vscode/src/vs/workbench/services/keybinding/browser/unboundCommands.js +2 -2
  266. package/vscode/src/vs/workbench/services/languageStatus/common/languageStatusService.d.ts +4 -1
  267. package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +40 -36
  268. package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.d.ts +0 -6
  269. package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +3 -0
  270. package/vscode/src/vs/workbench/services/progress/browser/progressIndicator.js +2 -2
  271. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +18 -3
  272. package/vscode/src/vs/workbench/services/request/browser/requestService.js +48 -0
  273. package/vscode/src/vs/workbench/services/search/common/searchHelpers.js +4 -4
  274. package/vscode/src/vs/workbench/services/statusbar/browser/statusbar.d.ts +10 -51
  275. package/vscode/src/vs/workbench/services/suggest/browser/simpleSuggestWidget.js +2 -2
  276. package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +32 -1
  277. package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +1 -5
  278. package/vscode/src/vs/workbench/services/themes/browser/browserHostColorSchemeService.js +4 -3
  279. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +9 -3
  280. package/vscode/src/vs/workbench/services/title/browser/titleService.d.ts +18 -0
  281. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorInput.js +18 -3
  282. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorModel.js +16 -7
  283. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +6 -0
  284. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +13 -0
  285. package/vscode/src/vs/workbench/services/url/browser/urlService.js +2 -1
  286. package/vscode/src/vs/workbench/services/userActivity/common/userActivityService.js +2 -2
  287. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +9 -0
  288. package/vscode-dts/vscode.proposed.chatAgents2.d.ts +375 -0
  289. package/vscode-dts/vscode.proposed.chatAgents2Additions.d.ts +80 -0
  290. package/vscode-dts/vscode.proposed.chatProvider.d.ts +5 -1
  291. package/vscode-dts/vscode.proposed.chatRequestAccess.d.ts +68 -10
  292. package/vscode-dts/vscode.proposed.chatTab.d.ts +21 -0
  293. package/vscode-dts/vscode.proposed.chatVariables.d.ts +5 -1
  294. package/vscode-dts/vscode.proposed.codeActionAI.d.ts +16 -0
  295. package/vscode-dts/vscode.proposed.contribSourceControlInputBoxMenu.d.ts +7 -0
  296. package/vscode-dts/vscode.proposed.createFileSystemWatcher.d.ts +51 -0
  297. package/vscode-dts/vscode.proposed.defaultChatAgent.d.ts +30 -0
  298. package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +26 -0
  299. package/vscode-dts/vscode.proposed.interactive.d.ts +26 -100
  300. package/vscode-dts/vscode.proposed.interactiveUserActions.d.ts +14 -7
  301. package/vscode-dts/vscode.proposed.languageStatusText.d.ts +12 -0
  302. package/vscode-dts/vscode.proposed.multiDocumentHighlightProvider.d.ts +63 -0
  303. package/vscode-dts/vscode.proposed.notebookVariableProvider.d.ts +43 -0
  304. package/vscode-dts/vscode.proposed.resolvers.d.ts +100 -1
  305. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +9 -1
  306. package/vscode-dts/vscode.proposed.scmInputBoxActionButton.d.ts +19 -0
  307. package/vscode-dts/vscode.proposed.scmInputBoxValueProvider.d.ts +25 -0
  308. package/vscode-dts/vscode.proposed.speech.d.ts +35 -0
  309. package/vscode-dts/vscode.proposed.terminalQuickFixProvider.d.ts +11 -7
  310. package/vscode-dts/vscode.proposed.testCoverage.d.ts +6 -1
  311. package/vscode-dts/vscode.proposed.testingActiveProfile.d.ts +21 -0
  312. package/external/xterm-headless/typings/xterm-headless.d.ts +0 -49
  313. package/vscode/src/vs/platform/backup/common/backup.d.ts +0 -14
  314. package/vscode/src/vs/platform/update/common/update.d.ts +0 -112
  315. package/vscode/src/vs/workbench/api/common/extHostChatAgents.js +0 -62
  316. package/vscode/src/vs/workbench/api/common/extHostChatSlashCommand.js +0 -62
  317. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +0 -56
  318. package/vscode/src/vs/workbench/services/files/common/files.js +0 -4
  319. package/vscode/src/vs/workbench/services/host/browser/browserHostService.d.ts +0 -41
  320. package/vscode/src/vs/workbench/services/title/common/titleService.d.ts +0 -31
  321. package/vscode-dts/vscode.proposed.chatAgents.d.ts +0 -39
  322. package/vscode-dts/vscode.proposed.chatSlashCommands.d.ts +0 -47
  323. package/vscode-dts/vscode.proposed.testMessageContextValue.d.ts +0 -45
  324. /package/external/{xterm-addon-canvas/typings/xterm-addon-canvas.d.ts → @xterm/addon-canvas/typings/addon-canvas.d.ts} +0 -0
  325. /package/external/{xterm-addon-search/typings/xterm-addon-search.d.ts → @xterm/addon-search/typings/addon-search.d.ts} +0 -0
  326. /package/external/{xterm-addon-unicode11/typings/xterm-addon-unicode11.d.ts → @xterm/addon-unicode11/typings/addon-unicode11.d.ts} +0 -0
  327. /package/external/{xterm-addon-webgl/typings/xterm-addon-webgl.d.ts → @xterm/addon-webgl/typings/addon-webgl.d.ts} +0 -0
  328. /package/vscode/src/vs/workbench/services/title/{common → browser}/titleService.js +0 -0
@@ -1,12 +1,11 @@
1
1
  import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
- import { mapFindFirst } from 'monaco-editor/esm/vs/base/common/arraysFind.js';
3
2
  import { RunOnceScheduler } from 'monaco-editor/esm/vs/base/common/async.js';
4
3
  import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
5
4
  import { CancellationToken, CancellationTokenSource } from 'monaco-editor/esm/vs/base/common/cancellation.js';
6
5
  import { Emitter, Event } from 'monaco-editor/esm/vs/base/common/event.js';
7
6
  import { createSingleCallFunction } from 'monaco-editor/esm/vs/base/common/functional.js';
8
7
  import { hash } from 'monaco-editor/esm/vs/base/common/hash.js';
9
- import { toDisposable, DisposableStore, Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
8
+ import { Disposable, toDisposable, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
10
9
  import { deepFreeze } from 'monaco-editor/esm/vs/base/common/objects.js';
11
10
  import { isDefined } from 'monaco-editor/esm/vs/base/common/types.js';
12
11
  import { generateUuid } from 'monaco-editor/esm/vs/base/common/uuid.js';
@@ -17,13 +16,15 @@ import { TestMessage, TestResults, TestTag, location, TestItem, TestCoverage, Ra
17
16
  import { TestRunProfileKind, TestRunRequest } from './extHostTypes.js';
18
17
  import { TestId } from '../../contrib/testing/common/testId.js';
19
18
  import { InvalidTestItemError } from '../../contrib/testing/common/testItemCollection.js';
20
- import { TestsDiffOp, isStartControllerTests, AbstractIncrementalTestCollection } from '../../contrib/testing/common/testTypes.js';
19
+ import { TestsDiffOp, isStartControllerTests, KEEP_N_LAST_COVERAGE_REPORTS, AbstractIncrementalTestCollection } from '../../contrib/testing/common/testTypes.js';
21
20
  import { checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
22
- let ExtHostTesting = class ExtHostTesting {
21
+ let ExtHostTesting = class ExtHostTesting extends Disposable {
23
22
  constructor(rpc, commands, editors) {
23
+ super();
24
24
  this.editors = editors;
25
- this.resultsChangedEmitter = ( new Emitter());
25
+ this.resultsChangedEmitter = this._register(( new Emitter()));
26
26
  this.controllers = ( new Map());
27
+ this.activeProfilesChangedEmitter = this._register(( new Emitter()));
27
28
  this.onResultsChanged = this.resultsChangedEmitter.event;
28
29
  this.results = [];
29
30
  this.proxy = ( rpc.getProxy(MainContext.MainThreadTesting));
@@ -72,6 +73,7 @@ let ExtHostTesting = class ExtHostTesting {
72
73
  const collection = disposable.add(( new ExtHostTestItemCollection(controllerId, label, this.editors)));
73
74
  collection.root.label = label;
74
75
  const profiles = ( new Map());
76
+ const activeProfiles = ( new Set());
75
77
  const proxy = this.proxy;
76
78
  const controller = {
77
79
  items: collection.root.children,
@@ -101,6 +103,9 @@ let ExtHostTesting = class ExtHostTesting {
101
103
  return ( new TestRunProfileImpl(
102
104
  this.proxy,
103
105
  profiles,
106
+ extension,
107
+ activeProfiles,
108
+ this.activeProfilesChangedEmitter.event,
104
109
  controllerId,
105
110
  profileId,
106
111
  label,
@@ -138,7 +143,7 @@ let ExtHostTesting = class ExtHostTesting {
138
143
  };
139
144
  proxy.$registerTestController(controllerId, label, !!refreshHandler);
140
145
  disposable.add(toDisposable(() => proxy.$unregisterTestController(controllerId)));
141
- const info = { controller, collection, profiles: profiles, extension };
146
+ const info = { controller, collection, profiles, extension, activeProfiles };
142
147
  this.controllers.set(controllerId, info);
143
148
  disposable.add(toDisposable(() => this.controllers.delete(controllerId)));
144
149
  disposable.add(collection.onDidGenerateDiff(diff => proxy.$publishDiff(controllerId, ( diff.map(TestsDiffOp.serialize)))));
@@ -173,17 +178,43 @@ let ExtHostTesting = class ExtHostTesting {
173
178
  }
174
179
  return Promise.resolve();
175
180
  }
176
- $provideFileCoverage(runId, taskId, token) {
177
- const coverage = mapFindFirst(this.runTracker.trackers, t => t.id === runId ? t.getCoverage(taskId) : undefined);
178
- return coverage?.provideFileCoverage(token) ?? Promise.resolve([]);
181
+ async $provideFileCoverage(runId, taskId, token) {
182
+ const coverage = this.runTracker.getCoverageReport(runId, taskId);
183
+ const fileCoverage = await coverage?.provideFileCoverage(token);
184
+ return fileCoverage ?? [];
179
185
  }
180
- $resolveFileCoverage(runId, taskId, fileIndex, token) {
181
- const coverage = mapFindFirst(this.runTracker.trackers, t => t.id === runId ? t.getCoverage(taskId) : undefined);
182
- return coverage?.resolveFileCoverage(fileIndex, token) ?? Promise.resolve([]);
186
+ async $resolveFileCoverage(runId, taskId, fileIndex, token) {
187
+ const coverage = this.runTracker.getCoverageReport(runId, taskId);
188
+ const details = await coverage?.resolveFileCoverage(fileIndex, token);
189
+ return details ?? [];
183
190
  }
184
191
  $configureRunProfile(controllerId, profileId) {
185
192
  this.controllers.get(controllerId)?.profiles.get(profileId)?.configureHandler?.();
186
193
  }
194
+ $setActiveRunProfiles(profiles) {
195
+ const evt = ( new Map());
196
+ for (const [controllerId, profileIds] of Object.entries(profiles)) {
197
+ const ctrl = this.controllers.get(controllerId);
198
+ if (!ctrl) {
199
+ continue;
200
+ }
201
+ const changes = ( new Map());
202
+ const added = profileIds.filter(id => !( ctrl.activeProfiles.has(id)));
203
+ const removed = [...ctrl.activeProfiles].filter(id => !profileIds.includes(id));
204
+ for (const id of added) {
205
+ changes.set(id, true);
206
+ ctrl.activeProfiles.add(id);
207
+ }
208
+ for (const id of removed) {
209
+ changes.set(id, false);
210
+ ctrl.activeProfiles.delete(id);
211
+ }
212
+ if (changes.size) {
213
+ evt.set(controllerId, changes);
214
+ }
215
+ }
216
+ this.activeProfilesChangedEmitter.fire(evt);
217
+ }
187
218
  async $refreshTests(controllerId, token) {
188
219
  await this.controllers.get(controllerId)?.controller.refreshHandler?.(token);
189
220
  }
@@ -286,6 +317,8 @@ class TestRunTracker extends Disposable {
286
317
  this.tasks = ( new Map());
287
318
  this.sharedTestIds = ( new Set());
288
319
  this.endEmitter = this._register(( new Emitter()));
320
+ this.coverageEmitter = this._register(( new Emitter()));
321
+ this.onDidCoverage = this.coverageEmitter.event;
289
322
  this.onEnd = this.endEmitter.event;
290
323
  this.cts = this._register(( new CancellationTokenSource(parentToken)));
291
324
  const forciblyEnd = this._register(( new RunOnceScheduler(() => this.forciblyEndTasks(), RUN_CANCEL_DEADLINE)));
@@ -300,14 +333,13 @@ class TestRunTracker extends Disposable {
300
333
  this.forciblyEndTasks();
301
334
  }
302
335
  }
303
- getCoverage(taskId) {
304
- return this.tasks.get(taskId)?.coverage;
305
- }
306
336
  createRun(name) {
307
337
  const runId = this.dto.id;
308
338
  const ctrlId = this.dto.controllerId;
309
339
  const taskId = generateUuid();
310
- const coverage = ( new TestRunCoverageBearer(this.proxy, runId, taskId));
340
+ const extension = this.extension;
341
+ const coverageEmitter = this.coverageEmitter;
342
+ let coverage;
311
343
  const guardTestMutation = (fn) => (test, ...args) => {
312
344
  if (ended) {
313
345
  console.warn(`Setting the state of test "${test.id}" is a no-op after the run ends.`);
@@ -323,9 +355,6 @@ class TestRunTracker extends Disposable {
323
355
  const converted = messages instanceof Array
324
356
  ? ( messages.map(TestMessage.from))
325
357
  : [TestMessage.from(messages)];
326
- if (( converted.some(c => c.contextValue !== undefined))) {
327
- checkProposedApiEnabled(this.extension, 'testMessageContextValue');
328
- }
329
358
  if (test.uri && test.range) {
330
359
  const defaultLocation = { range: Range.from(test.range), uri: test.uri };
331
360
  for (const message of converted) {
@@ -340,10 +369,12 @@ class TestRunTracker extends Disposable {
340
369
  token: this.cts.token,
341
370
  name,
342
371
  get coverageProvider() {
343
- return coverage.coverageProvider;
372
+ return coverage?.provider;
344
373
  },
345
374
  set coverageProvider(provider) {
346
- coverage.coverageProvider = provider;
375
+ checkProposedApiEnabled(extension, 'testCoverage');
376
+ coverage = provider && ( new TestRunCoverageBearer(provider));
377
+ coverageEmitter.fire({ taskId, runId, coverage });
347
378
  },
348
379
  enqueued: guardTestMutation(test => {
349
380
  this.proxy.$updateTestStateInRun(runId, taskId, ( TestId.fromExtHostTestItem(test, ctrlId).toString()), 1 );
@@ -391,7 +422,7 @@ class TestRunTracker extends Disposable {
391
422
  }
392
423
  }
393
424
  };
394
- this.tasks.set(taskId, { run, coverage });
425
+ this.tasks.set(taskId, { run });
395
426
  this.proxy.$startedTestRunTask(runId, { id: taskId, name, running: true });
396
427
  return run;
397
428
  }
@@ -441,6 +472,12 @@ class TestRunCoordinator {
441
472
  constructor(proxy) {
442
473
  this.proxy = proxy;
443
474
  this.tracked = ( new Map());
475
+ this.coverageReports = [];
476
+ }
477
+ getCoverageReport(runId, taskId) {
478
+ return this.coverageReports
479
+ .find(r => r.runId === runId)
480
+ ?.coverage.get(taskId);
444
481
  }
445
482
  prepareForMainThreadTestRun(req, dto, extension, token) {
446
483
  return this.getTracker(req, dto, extension, token);
@@ -484,7 +521,22 @@ class TestRunCoordinator {
484
521
  getTracker(req, dto, extension, token) {
485
522
  const tracker = ( new TestRunTracker(dto, this.proxy, extension, token));
486
523
  this.tracked.set(req, tracker);
487
- Event.once(tracker.onEnd)(() => this.tracked.delete(req));
524
+ let coverageReports;
525
+ const coverageListener = tracker.onDidCoverage(({ runId, taskId, coverage }) => {
526
+ if (!coverageReports) {
527
+ coverageReports = { runId, coverage: ( new Map()) };
528
+ this.coverageReports.unshift(coverageReports);
529
+ if (this.coverageReports.length > KEEP_N_LAST_COVERAGE_REPORTS) {
530
+ this.coverageReports.pop();
531
+ }
532
+ }
533
+ coverageReports.coverage.set(taskId, coverage);
534
+ this.proxy.$signalCoverageAvailable(runId, taskId, !!coverage);
535
+ });
536
+ Event.once(tracker.onEnd)(() => {
537
+ this.tracked.delete(req);
538
+ coverageListener.dispose();
539
+ });
488
540
  return tracker;
489
541
  }
490
542
  }
@@ -535,30 +587,12 @@ class TestRunDto {
535
587
  }
536
588
  }
537
589
  class TestRunCoverageBearer {
538
- set coverageProvider(provider) {
539
- if (this._coverageProvider) {
540
- throw new Error('The TestCoverageProvider cannot be replaced after being provided');
541
- }
542
- if (!provider) {
543
- return;
544
- }
545
- this._coverageProvider = provider;
546
- this.proxy.$signalCoverageAvailable(this.runId, this.taskId);
547
- }
548
- get coverageProvider() {
549
- return this._coverageProvider;
550
- }
551
- constructor(proxy, runId, taskId) {
552
- this.proxy = proxy;
553
- this.runId = runId;
554
- this.taskId = taskId;
590
+ constructor(provider) {
591
+ this.provider = provider;
555
592
  }
556
593
  async provideFileCoverage(token) {
557
- if (!this._coverageProvider) {
558
- return [];
559
- }
560
594
  if (!this.fileCoverage) {
561
- this.fileCoverage = (async () => this._coverageProvider.provideFileCoverage(token))();
595
+ this.fileCoverage = (async () => this.provider.provideFileCoverage(token))();
562
596
  }
563
597
  try {
564
598
  const coverage = await this.fileCoverage;
@@ -572,11 +606,11 @@ class TestRunCoverageBearer {
572
606
  async resolveFileCoverage(index, token) {
573
607
  const fileCoverage = await this.fileCoverage;
574
608
  let file = fileCoverage?.[index];
575
- if (!this._coverageProvider || !fileCoverage || !file) {
609
+ if (!this.provider || !fileCoverage || !file) {
576
610
  return [];
577
611
  }
578
612
  if (!file.detailedCoverage) {
579
- file = fileCoverage[index] = (await this._coverageProvider.resolveFileCoverage?.(file, token)) ?? file;
613
+ file = fileCoverage[index] = (await this.provider.resolveFileCoverage?.(file, token)) ?? file;
580
614
  }
581
615
  return file.detailedCoverage?.map(TestCoverage.fromDetailed) ?? [];
582
616
  }
@@ -690,6 +724,9 @@ class TestObservers {
690
724
  }
691
725
  class TestRunProfileImpl {
692
726
  #proxy;
727
+ #extension;
728
+ #activeProfiles;
729
+ #onDidChangeActiveProfiles;
693
730
  #profiles;
694
731
  get label() {
695
732
  return this._label;
@@ -738,7 +775,17 @@ class TestRunProfileImpl {
738
775
  this.#proxy.$updateTestRunConfig(this.controllerId, this.profileId, { hasConfigurationHandler: !!handler });
739
776
  }
740
777
  }
741
- constructor(proxy, profiles, controllerId, profileId, _label, kind, runHandler, _isDefault = false, _tag = undefined, _supportsContinuousRun = false) {
778
+ get isSelected() {
779
+ checkProposedApiEnabled(this.#extension, 'testingActiveProfile');
780
+ return ( this.#activeProfiles.has(this.profileId));
781
+ }
782
+ get onDidChangeSelected() {
783
+ checkProposedApiEnabled(this.#extension, 'testingActiveProfile');
784
+ return Event.chain(this.#onDidChangeActiveProfiles, $ => ( $
785
+ .map(ev => ev.get(this.controllerId)?.get(this.profileId)))
786
+ .filter(isDefined));
787
+ }
788
+ constructor(proxy, profiles, extension, activeProfiles, onDidChangeActiveProfiles, controllerId, profileId, _label, kind, runHandler, _isDefault = false, _tag = undefined, _supportsContinuousRun = false) {
742
789
  this.controllerId = controllerId;
743
790
  this.profileId = profileId;
744
791
  this._label = _label;
@@ -749,6 +796,9 @@ class TestRunProfileImpl {
749
796
  this._supportsContinuousRun = _supportsContinuousRun;
750
797
  this.#proxy = proxy;
751
798
  this.#profiles = profiles;
799
+ this.#extension = extension;
800
+ this.#activeProfiles = activeProfiles;
801
+ this.#onDidChangeActiveProfiles = onDidChangeActiveProfiles;
752
802
  profiles.set(profileId, this);
753
803
  const groupBitset = profileGroupToBitset[kind];
754
804
  if (typeof groupBitset !== 'number') {
@@ -5,7 +5,7 @@ import { createSingleCallFunction } from 'monaco-editor/esm/vs/base/common/funct
5
5
  import * as htmlContent from 'monaco-editor/esm/vs/base/common/htmlContent.js';
6
6
  import { ResourceSet, ResourceMap } from 'monaco-editor/esm/vs/base/common/map.js';
7
7
  import { marked } from 'monaco-editor/esm/vs/base/common/marked/marked.js';
8
- import { parse } from 'monaco-editor/esm/vs/base/common/marshalling.js';
8
+ import { revive, parse } from 'monaco-editor/esm/vs/base/common/marshalling.js';
9
9
  import { Mimes } from 'monaco-editor/esm/vs/base/common/mime.js';
10
10
  import { cloneAndChange } from 'monaco-editor/esm/vs/base/common/objects.js';
11
11
  import { isString, isNumber, isEmptyObject, isUndefinedOrNull } from 'monaco-editor/esm/vs/base/common/types.js';
@@ -19,7 +19,8 @@ import { CellKind, NotebookCellExecutionState as NotebookCellExecutionState$1 }
19
19
  import { TestId } from '../../contrib/testing/common/testId.js';
20
20
  import { namespaceTestTag, denamespaceTestTag } from '../../contrib/testing/common/testTypes.js';
21
21
  import { SIDE_GROUP, ACTIVE_GROUP } from '../../services/editor/common/editorService.js';
22
- import { Position as Position$1, Selection as Selection$1, Range as Range$1, Diagnostic as Diagnostic$1, ViewColumn as ViewColumn$1, MarkdownString as MarkdownString$1, TextEdit as TextEdit$1, WorkspaceEdit as WorkspaceEdit$1, SnippetTextEdit, SnippetString, SymbolKind as SymbolKind$1, SymbolInformation, CallHierarchyItem as CallHierarchyItem$1, CallHierarchyIncomingCall as CallHierarchyIncomingCall$1, CallHierarchyOutgoingCall as CallHierarchyOutgoingCall$1, Location, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineValueContext as InlineValueContext$1, CompletionItemKind as CompletionItemKind$1, InlayHint as InlayHint$1, DocumentLink as DocumentLink$1, ColorPresentation as ColorPresentation$1, Color as Color$1, NotebookRange as NotebookRange$1, NotebookCellData as NotebookCellData$1, NotebookCellOutputItem as NotebookCellOutputItem$1, NotebookCellOutput as NotebookCellOutput$1, TestTag as TestTag$1, CodeActionTriggerKind as CodeActionTriggerKind$1, TypeHierarchyItem as TypeHierarchyItem$1, ChatMessage as ChatMessage$1, InteractiveEditorResponseFeedbackKind as InteractiveEditorResponseFeedbackKind$1, DiagnosticRelatedInformation as DiagnosticRelatedInformation$1, DiagnosticSeverity as DiagnosticSeverity$1, SymbolTag as SymbolTag$1, DocumentSymbol as DocumentSymbol$1, Hover as Hover$1, EvaluatableExpression as EvaluatableExpression$1, DocumentHighlight as DocumentHighlight$1, CompletionItemTag as CompletionItemTag$1, CompletionItem as CompletionItem$1, InlayHintLabelPart as InlayHintLabelPart$1, SelectionRange as SelectionRange$1, EndOfLine as EndOfLine$1, FoldingRangeKind as FoldingRangeKind$1, RelativePattern, NotebookData as NotebookData$1, NotebookCellStatusBarAlignment, DataTransfer as DataTransfer$1, ChatMessageRole as ChatMessageRole$1, ChatVariableLevel as ChatVariableLevel$1, DiagnosticTag as DiagnosticTag$1, DecorationRangeBehavior as DecorationRangeBehavior$1, NotebookCellKind as NotebookCellKind$1, StandardTokenType, CompletionTriggerKind as CompletionTriggerKind$1, TextDocumentSaveReason as TextDocumentSaveReason$1, TextEditorLineNumbersStyle as TextEditorLineNumbersStyle$1, ProgressLocation as ProgressLocation$1, NotebookCellExecutionState as NotebookCellExecutionState$2, TestMessage as TestMessage$1, InternalFileDataTransferItem, DataTransferFile, InternalDataTransferItem, NotebookRendererScript as NotebookRendererScript$1 } from './extHostTypes.js';
22
+ import { Position as Position$1, Selection as Selection$1, Range as Range$1, Diagnostic as Diagnostic$1, ViewColumn as ViewColumn$1, MarkdownString as MarkdownString$1, TextEdit as TextEdit$1, WorkspaceEdit as WorkspaceEdit$1, SnippetTextEdit, SnippetString, SymbolKind as SymbolKind$1, SymbolInformation, CallHierarchyItem as CallHierarchyItem$1, CallHierarchyIncomingCall as CallHierarchyIncomingCall$1, CallHierarchyOutgoingCall as CallHierarchyOutgoingCall$1, Location, InlineValueText, InlineValueVariableLookup, InlineValueEvaluatableExpression, InlineValueContext as InlineValueContext$1, InlayHint as InlayHint$1, DocumentLink as DocumentLink$1, ColorPresentation as ColorPresentation$1, Color as Color$1, NotebookRange as NotebookRange$1, NotebookCellData as NotebookCellData$1, NotebookCellOutputItem as NotebookCellOutputItem$1, NotebookCellOutput as NotebookCellOutput$1, TestTag as TestTag$1, CodeActionTriggerKind as CodeActionTriggerKind$1, TypeHierarchyItem as TypeHierarchyItem$1, ChatMessage as ChatMessage$1, InteractiveEditorResponseFeedbackKind as InteractiveEditorResponseFeedbackKind$1, DiagnosticRelatedInformation as DiagnosticRelatedInformation$1, DiagnosticSeverity as DiagnosticSeverity$1, SymbolTag as SymbolTag$1, DocumentSymbol as DocumentSymbol$1, Hover as Hover$1, EvaluatableExpression as EvaluatableExpression$1, DocumentHighlight as DocumentHighlight$1, MultiDocumentHighlight as MultiDocumentHighlight$1, CompletionItemTag as CompletionItemTag$1, CompletionItemKind as CompletionItemKind$1, CompletionItem as CompletionItem$1, InlayHintLabelPart as InlayHintLabelPart$1, SelectionRange as SelectionRange$1, EndOfLine as EndOfLine$1, FoldingRangeKind as FoldingRangeKind$1, RelativePattern, NotebookData as NotebookData$1, NotebookCellStatusBarAlignment, DataTransfer as DataTransfer$1, ChatMessageRole as ChatMessageRole$1, ChatVariableLevel as ChatVariableLevel$1, DiagnosticTag as DiagnosticTag$1, DecorationRangeBehavior as DecorationRangeBehavior$1, NotebookCellKind as NotebookCellKind$1, StandardTokenType, CompletionTriggerKind as CompletionTriggerKind$1, TextDocumentSaveReason as TextDocumentSaveReason$1, TextEditorLineNumbersStyle as TextEditorLineNumbersStyle$1, ProgressLocation as ProgressLocation$1, NotebookCellExecutionState as NotebookCellExecutionState$2, TestMessage as TestMessage$1, InternalFileDataTransferItem, DataTransferFile, InternalDataTransferItem, NotebookRendererScript as NotebookRendererScript$1 } from './extHostTypes.js';
23
+ import { checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
23
24
  var Selection;
24
25
  ( (function(Selection) {
25
26
  function to(selection) {
@@ -926,6 +927,20 @@ var DocumentHighlight;
926
927
  }
927
928
  DocumentHighlight.to = to;
928
929
  })(DocumentHighlight || (DocumentHighlight = {})));
930
+ var MultiDocumentHighlight;
931
+ ( (function(MultiDocumentHighlight) {
932
+ function from(multiDocumentHighlight) {
933
+ return {
934
+ uri: multiDocumentHighlight.uri,
935
+ highlights: ( multiDocumentHighlight.highlights.map(DocumentHighlight.from))
936
+ };
937
+ }
938
+ MultiDocumentHighlight.from = from;
939
+ function to(multiDocumentHighlight) {
940
+ return new MultiDocumentHighlight$1(URI.revive(multiDocumentHighlight.uri), ( multiDocumentHighlight.highlights.map(DocumentHighlight.to)));
941
+ }
942
+ MultiDocumentHighlight.to = to;
943
+ })(MultiDocumentHighlight || (MultiDocumentHighlight = {})));
929
944
  var CompletionTriggerKind;
930
945
  ( (function(CompletionTriggerKind) {
931
946
  function to(kind) {
@@ -1833,7 +1848,7 @@ var TestResults;
1833
1848
  var TestCoverage;
1834
1849
  ( (function(TestCoverage) {
1835
1850
  function fromCoveredCount(count) {
1836
- return { covered: count.covered, total: count.covered };
1851
+ return { covered: count.covered, total: count.total };
1837
1852
  }
1838
1853
  function fromLocation(location) {
1839
1854
  return 'line' in location ? Position.from(location) : Range.from(location);
@@ -1854,6 +1869,7 @@ var TestCoverage;
1854
1869
  else {
1855
1870
  return {
1856
1871
  type: 0 ,
1872
+ name: coverage.name,
1857
1873
  count: coverage.executionCount,
1858
1874
  location: fromLocation(coverage.location),
1859
1875
  };
@@ -2001,20 +2017,10 @@ var DataTransfer;
2001
2017
  })(DataTransfer || (DataTransfer = {})));
2002
2018
  var ChatReplyFollowup;
2003
2019
  ( (function(ChatReplyFollowup) {
2004
- function to(followup) {
2005
- return {
2006
- message: followup.message,
2007
- metadata: followup.metadata,
2008
- title: followup.title,
2009
- tooltip: followup.tooltip,
2010
- };
2011
- }
2012
- ChatReplyFollowup.to = to;
2013
2020
  function from(followup) {
2014
2021
  return {
2015
2022
  kind: 'reply',
2016
2023
  message: followup.message,
2017
- metadata: followup.metadata,
2018
2024
  title: followup.title,
2019
2025
  tooltip: followup.tooltip,
2020
2026
  };
@@ -2084,10 +2090,19 @@ var ChatMessageRole;
2084
2090
  })(ChatMessageRole || (ChatMessageRole = {})));
2085
2091
  var ChatVariable;
2086
2092
  ( (function(ChatVariable) {
2093
+ function objectTo(variableObject) {
2094
+ const result = {};
2095
+ for (const key of ( Object.keys(variableObject))) {
2096
+ result[key] = ( variableObject[key].map(ChatVariable.to));
2097
+ }
2098
+ return result;
2099
+ }
2100
+ ChatVariable.objectTo = objectTo;
2087
2101
  function to(variable) {
2088
2102
  return {
2089
2103
  level: ChatVariableLevel.to(variable.level),
2090
- value: variable.value,
2104
+ kind: variable.kind,
2105
+ value: revive(variable.value),
2091
2106
  description: variable.description
2092
2107
  };
2093
2108
  }
@@ -2095,6 +2110,7 @@ var ChatVariable;
2095
2110
  function from(variable) {
2096
2111
  return {
2097
2112
  level: ChatVariableLevel.from(variable.level),
2113
+ kind: variable.kind,
2098
2114
  value: variable.value,
2099
2115
  description: variable.description
2100
2116
  };
@@ -2136,17 +2152,100 @@ var InteractiveEditorResponseFeedbackKind;
2136
2152
  return InteractiveEditorResponseFeedbackKind$1.Undone;
2137
2153
  case 3 :
2138
2154
  return InteractiveEditorResponseFeedbackKind$1.Accepted;
2155
+ case 4 :
2156
+ return InteractiveEditorResponseFeedbackKind$1.Bug;
2139
2157
  }
2140
2158
  }
2141
2159
  InteractiveEditorResponseFeedbackKind.to = to;
2142
2160
  })(
2143
2161
  InteractiveEditorResponseFeedbackKind || (InteractiveEditorResponseFeedbackKind = {})
2144
2162
  ));
2163
+ var ChatResponseProgress;
2164
+ ( (function(ChatResponseProgress) {
2165
+ function from(extension, progress) {
2166
+ if ('placeholder' in progress && 'resolvedContent' in progress) {
2167
+ return { content: progress.placeholder, kind: 'asyncContent' };
2168
+ }
2169
+ else if ('markdownContent' in progress) {
2170
+ checkProposedApiEnabled(extension, 'chatAgents2Additions');
2171
+ return { content: MarkdownString.from(progress.markdownContent), kind: 'markdownContent' };
2172
+ }
2173
+ else if ('content' in progress) {
2174
+ if ('vulnerabilities' in progress && progress.vulnerabilities) {
2175
+ checkProposedApiEnabled(extension, 'chatAgents2Additions');
2176
+ return { content: progress.content, vulnerabilities: progress.vulnerabilities, kind: 'vulnerability' };
2177
+ }
2178
+ if (typeof progress.content === 'string') {
2179
+ return { content: progress.content, kind: 'content' };
2180
+ }
2181
+ checkProposedApiEnabled(extension, 'chatAgents2Additions');
2182
+ return { content: MarkdownString.from(progress.content), kind: 'markdownContent' };
2183
+ }
2184
+ else if ('documents' in progress) {
2185
+ return {
2186
+ documents: ( progress.documents.map(d => ({
2187
+ uri: d.uri,
2188
+ version: d.version,
2189
+ ranges: ( d.ranges.map(r => Range.from(r)))
2190
+ }))),
2191
+ kind: 'usedContext'
2192
+ };
2193
+ }
2194
+ else if ('reference' in progress) {
2195
+ return {
2196
+ reference: 'uri' in progress.reference ?
2197
+ {
2198
+ uri: progress.reference.uri,
2199
+ range: Range.from(progress.reference.range)
2200
+ } : progress.reference,
2201
+ kind: 'reference'
2202
+ };
2203
+ }
2204
+ else if ('inlineReference' in progress) {
2205
+ return {
2206
+ inlineReference: 'uri' in progress.inlineReference ?
2207
+ {
2208
+ uri: progress.inlineReference.uri,
2209
+ range: Range.from(progress.inlineReference.range)
2210
+ } : progress.inlineReference,
2211
+ name: progress.title,
2212
+ kind: 'inlineReference'
2213
+ };
2214
+ }
2215
+ else if ('agentName' in progress) {
2216
+ checkProposedApiEnabled(extension, 'chatAgents2Additions');
2217
+ return { agentName: progress.agentName, command: progress.command, kind: 'agentDetection' };
2218
+ }
2219
+ else if ('treeData' in progress) {
2220
+ return { treeData: progress.treeData, kind: 'treeData' };
2221
+ }
2222
+ else if ('message' in progress) {
2223
+ return { content: progress.message, kind: 'progressMessage' };
2224
+ }
2225
+ else {
2226
+ return undefined;
2227
+ }
2228
+ }
2229
+ ChatResponseProgress.from = from;
2230
+ })(ChatResponseProgress || (ChatResponseProgress = {})));
2231
+ var ChatAgentCompletionItem;
2232
+ ( (function(ChatAgentCompletionItem) {
2233
+ function from(item) {
2234
+ return {
2235
+ label: item.label,
2236
+ values: ( item.values.map(ChatVariable.from)),
2237
+ insertText: item.insertText,
2238
+ detail: item.detail,
2239
+ documentation: item.documentation,
2240
+ };
2241
+ }
2242
+ ChatAgentCompletionItem.from = from;
2243
+ })(ChatAgentCompletionItem || (ChatAgentCompletionItem = {})));
2145
2244
  var TerminalQuickFix;
2146
2245
  ( (function(TerminalQuickFix) {
2147
2246
  function from(quickFix, converter, disposables) {
2148
2247
  if ('terminalCommand' in quickFix) {
2149
- return { terminalCommand: quickFix.terminalCommand };
2248
+ return { terminalCommand: quickFix.terminalCommand, shouldExecute: quickFix.shouldExecute };
2150
2249
  }
2151
2250
  if ('uri' in quickFix) {
2152
2251
  return { uri: quickFix.uri };
@@ -2155,4 +2254,4 @@ var TerminalQuickFix;
2155
2254
  }
2156
2255
  TerminalQuickFix.from = from;
2157
2256
  })(TerminalQuickFix || (TerminalQuickFix = {})));
2158
- export { CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, ChatFollowup, ChatMessage, ChatMessageRole, ChatReplyFollowup, ChatVariable, ChatVariableLevel, CodeActionTriggerKind, Color, ColorPresentation, CompletionContext, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionTriggerKind, DataTransfer, DataTransferItem, DecorationRangeBehavior, DecorationRenderOptions, DefinitionLink, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, DocumentHighlight, DocumentLink, DocumentSelector, DocumentSymbol, EndOfLine, EvaluatableExpression, FoldingRange, FoldingRangeKind, GlobPattern, Hover, InlayHint, InlayHintKind, InlayHintLabelPart, InlineValue, InlineValueContext, InteractiveEditorResponseFeedbackKind, LanguageSelector, MappedEditsContext, MarkdownString, NotebookCellData, NotebookCellExecutionState, NotebookCellExecutionSummary, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookData, NotebookDocumentContentOptions, NotebookExclusiveDocumentPattern, NotebookKernelSourceAction, NotebookRange, NotebookRendererScript, NotebookStatusBarItem, ParameterInformation, Position, ProgressLocation, Range, Selection, SelectionRange, SignatureHelp, SignatureInformation, SymbolKind, SymbolTag, TerminalQuickFix, TestCoverage, TestItem, TestMessage, TestResults, TestTag, TextDocumentSaveReason, TextEdit, TextEditorLineNumbersStyle, TextEditorOpenOptions, ThemableDecorationAttachmentRenderOptions, ThemableDecorationRenderOptions, TokenType, TypeHierarchyItem, ViewBadge, ViewColumn, WorkspaceEdit, WorkspaceSymbol, fromRangeOrRangeWithMessage, isDecorationOptionsArr, location, pathOrURIToURI };
2257
+ export { CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, ChatAgentCompletionItem, ChatFollowup, ChatMessage, ChatMessageRole, ChatReplyFollowup, ChatResponseProgress, ChatVariable, ChatVariableLevel, CodeActionTriggerKind, Color, ColorPresentation, CompletionContext, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionTriggerKind, DataTransfer, DataTransferItem, DecorationRangeBehavior, DecorationRenderOptions, DefinitionLink, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, DocumentHighlight, DocumentLink, DocumentSelector, DocumentSymbol, EndOfLine, EvaluatableExpression, FoldingRange, FoldingRangeKind, GlobPattern, Hover, InlayHint, InlayHintKind, InlayHintLabelPart, InlineValue, InlineValueContext, InteractiveEditorResponseFeedbackKind, LanguageSelector, MappedEditsContext, MarkdownString, MultiDocumentHighlight, NotebookCellData, NotebookCellExecutionState, NotebookCellExecutionSummary, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookData, NotebookDocumentContentOptions, NotebookExclusiveDocumentPattern, NotebookKernelSourceAction, NotebookRange, NotebookRendererScript, NotebookStatusBarItem, ParameterInformation, Position, ProgressLocation, Range, Selection, SelectionRange, SignatureHelp, SignatureInformation, SymbolKind, SymbolTag, TerminalQuickFix, TestCoverage, TestItem, TestMessage, TestResults, TestTag, TextDocumentSaveReason, TextEdit, TextEditorLineNumbersStyle, TextEditorOpenOptions, ThemableDecorationAttachmentRenderOptions, ThemableDecorationRenderOptions, TokenType, TypeHierarchyItem, ViewBadge, ViewColumn, WorkspaceEdit, WorkspaceSymbol, fromRangeOrRangeWithMessage, isDecorationOptionsArr, location, pathOrURIToURI };