@codingame/monaco-vscode-api 21.6.0 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (446) hide show
  1. package/missing-services.js +68 -78
  2. package/package.json +8 -8
  3. package/services.d.ts +4 -4
  4. package/services.js +5 -4
  5. package/vscode/product.json.js +1 -1
  6. package/vscode/src/vs/base/browser/dom.js +6 -3
  7. package/vscode/src/vs/base/browser/domSanitize.d.ts +8 -0
  8. package/vscode/src/vs/base/browser/domSanitize.js +49 -27
  9. package/vscode/src/vs/base/browser/domStylesheets.js +5 -1
  10. package/vscode/src/vs/base/browser/markdownRenderer.js +7 -5
  11. package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  12. package/vscode/src/vs/base/browser/ui/contextview/contextview.js +2 -2
  13. package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
  14. package/vscode/src/vs/base/browser/ui/menu/menu.js +1 -0
  15. package/vscode/src/vs/base/browser/ui/progressbar/progressbar.d.ts +1 -1
  16. package/vscode/src/vs/base/common/async.js +6 -0
  17. package/vscode/src/vs/base/common/cancellation.d.ts +21 -0
  18. package/vscode/src/vs/base/common/cancellation.js +42 -1
  19. package/vscode/src/vs/base/common/codicons.d.ts +3 -0
  20. package/vscode/src/vs/base/common/codiconsLibrary.d.ts +3 -0
  21. package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
  22. package/vscode/src/vs/base/common/decorators/cancelPreviousCalls.d.ts +84 -0
  23. package/vscode/src/vs/base/common/decorators.d.ts +1 -1
  24. package/vscode/src/vs/base/common/htmlContent.d.ts +2 -0
  25. package/vscode/src/vs/base/common/htmlContent.js +9 -6
  26. package/vscode/src/vs/base/common/lifecycle.js +21 -7
  27. package/vscode/src/vs/base/common/numbers.d.ts +0 -45
  28. package/vscode/src/vs/base/common/oauth.d.ts +33 -0
  29. package/vscode/src/vs/base/common/oauth.js +79 -3
  30. package/vscode/src/vs/base/common/observableInternal/base.d.ts +4 -0
  31. package/vscode/src/vs/base/common/observableInternal/index.js +3 -0
  32. package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.d.ts +4 -0
  33. package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js +98 -0
  34. package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +4 -0
  35. package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.js +8 -1
  36. package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +1 -0
  37. package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +10 -0
  38. package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +4 -0
  39. package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.js +3 -0
  40. package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +1 -0
  41. package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.js +9 -0
  42. package/vscode/src/vs/base/common/product.d.ts +7 -1
  43. package/vscode/src/vs/base/common/strings.d.ts +0 -1
  44. package/vscode/src/vs/base/common/strings.js +9 -4
  45. package/vscode/src/vs/base/common/uriIpc.js +24 -1
  46. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +26 -16
  47. package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentSimple.js +3 -3
  48. package/vscode/src/vs/editor/browser/services/hoverService/hover.css +1 -1
  49. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.d.ts +3 -1
  50. package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -1
  51. package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +8 -8
  52. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +4 -4
  53. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.d.ts +1 -0
  54. package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +26 -1
  55. package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
  56. package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +1 -1
  57. package/vscode/src/vs/editor/common/config/editorOptions.d.ts +93 -85
  58. package/vscode/src/vs/editor/common/config/editorOptions.js +386 -351
  59. package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
  60. package/vscode/src/vs/editor/common/core/ranges/lineRange.d.ts +3 -3
  61. package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
  62. package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
  63. package/vscode/src/vs/editor/common/languages.d.ts +5 -1
  64. package/vscode/src/vs/editor/common/languages.js +56 -56
  65. package/vscode/src/vs/editor/common/model/editStack.js +1 -1
  66. package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +86 -85
  67. package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +86 -85
  68. package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
  69. package/vscode/src/vs/editor/common/textModelEditSource.d.ts +1 -0
  70. package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
  71. package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +9 -7
  72. package/vscode/src/vs/editor/common/viewModel/screenReaderSimpleModel.d.ts +1 -0
  73. package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +6 -6
  74. package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
  75. package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
  76. package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
  77. package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +17 -17
  78. package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
  79. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
  80. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
  81. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
  82. package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
  83. package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
  84. package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
  85. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
  86. package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
  87. package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
  88. package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
  89. package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
  90. package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
  91. package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
  92. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
  93. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
  94. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
  95. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
  96. package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
  97. package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
  98. package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
  99. package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +26 -26
  100. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.contribution.d.ts +1 -0
  101. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.contribution.js +8 -0
  102. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +44 -0
  103. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.d.ts +10 -0
  104. package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +81 -0
  105. package/vscode/src/vs/editor/contrib/folding/browser/folding.js +21 -20
  106. package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
  107. package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
  108. package/vscode/src/vs/editor/contrib/format/browser/format.js +3 -0
  109. package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
  110. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
  111. package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
  112. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
  113. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.d.ts +4 -1
  114. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +20 -11
  115. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
  116. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
  117. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
  118. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
  119. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
  120. package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +3 -3
  121. package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
  122. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +2 -1
  123. package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
  124. package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
  125. package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
  126. package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
  127. package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
  128. package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
  129. package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
  130. package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
  131. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +2 -7
  132. package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
  133. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
  134. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
  135. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +18 -13
  136. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
  137. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
  138. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +3 -1
  139. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +14 -6
  140. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +7 -1
  141. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +154 -5
  142. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +1 -0
  143. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +3 -0
  144. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +7 -3
  145. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +18 -3
  146. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.d.ts +45 -0
  147. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.js +7 -0
  148. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +16 -15
  149. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +5 -2
  150. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
  151. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +2 -2
  152. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +24 -21
  153. package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +13 -4
  154. package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
  155. package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
  156. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.d.ts +2 -1
  157. package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +36 -35
  158. package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
  159. package/vscode/src/vs/editor/contrib/links/browser/links.js +11 -11
  160. package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
  161. package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +3 -3
  162. package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
  163. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
  164. package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
  165. package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +18 -18
  166. package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
  167. package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
  168. package/vscode/src/vs/editor/contrib/rename/browser/rename.js +11 -11
  169. package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
  170. package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
  171. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.d.ts +3 -0
  172. package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +13 -4
  173. package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
  174. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
  175. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +12 -19
  176. package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +10 -1
  177. package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
  178. package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
  179. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
  180. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
  181. package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
  182. package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
  183. package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
  184. package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
  185. package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
  186. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
  187. package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +26 -26
  188. package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
  189. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
  190. package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
  191. package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
  192. package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
  193. package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +0 -1
  194. package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +1 -0
  195. package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
  196. package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
  197. package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
  198. package/vscode/src/vs/platform/actionWidget/browser/actionList.js +9 -6
  199. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +13 -14
  200. package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
  201. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
  202. package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -1
  203. package/vscode/src/vs/platform/actions/browser/toolbar.js +5 -5
  204. package/vscode/src/vs/platform/actions/common/actions.d.ts +2 -0
  205. package/vscode/src/vs/platform/actions/common/actions.js +2 -0
  206. package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
  207. package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
  208. package/vscode/src/vs/platform/assignment/common/assignment.d.ts +6 -1
  209. package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +2 -2
  210. package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
  211. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.d.ts +2 -0
  212. package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +32 -3
  213. package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
  214. package/vscode/src/vs/platform/contextkey/common/contextkeys.d.ts +0 -1
  215. package/vscode/src/vs/platform/contextkey/common/contextkeys.js +10 -11
  216. package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
  217. package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.d.ts +32 -0
  218. package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.js +86 -0
  219. package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
  220. package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
  221. package/vscode/src/vs/platform/environment/common/argv.d.ts +1 -0
  222. package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
  223. package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
  224. package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
  225. package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
  226. package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.d.ts +1 -3
  227. package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +1 -1
  228. package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
  229. package/vscode/src/vs/platform/extensions/common/extensions.d.ts +2 -1
  230. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +4 -3
  231. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +4 -3
  232. package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
  233. package/vscode/src/vs/platform/files/common/files.js +6 -6
  234. package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
  235. package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
  236. package/vscode/src/vs/platform/list/browser/listService.js +27 -27
  237. package/vscode/src/vs/platform/log/common/log.js +6 -6
  238. package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
  239. package/vscode/src/vs/platform/markers/common/markers.js +6 -6
  240. package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.d.ts +10 -2
  241. package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.js +10 -2
  242. package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +3 -3
  243. package/vscode/src/vs/platform/notification/common/notification.js +3 -3
  244. package/vscode/src/vs/platform/product/common/product.js +3 -3
  245. package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +1 -0
  246. package/vscode/src/vs/platform/quickinput/browser/quickInput.js +23 -15
  247. package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +47 -13
  248. package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +10 -61
  249. package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
  250. package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
  251. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
  252. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +6 -0
  253. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +10 -0
  254. package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +10 -5
  255. package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +4 -1
  256. package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +10 -1
  257. package/vscode/src/vs/platform/request/common/request.js +34 -18
  258. package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
  259. package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -3
  260. package/vscode/src/vs/platform/terminal/common/terminal.js +6 -7
  261. package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
  262. package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
  263. package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
  264. package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -95
  265. package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -47
  266. package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
  267. package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
  268. package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
  269. package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
  270. package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
  271. package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
  272. package/vscode/src/vs/platform/theme/common/iconRegistry.js +6 -6
  273. package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
  274. package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
  275. package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
  276. package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
  277. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +11 -10
  278. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +25 -24
  279. package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +4 -4
  280. package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +10 -18
  281. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +5 -0
  282. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +16 -4
  283. package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +1 -3
  284. package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +9 -5
  285. package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
  286. package/vscode/src/vs/workbench/api/common/extHostDebugService.js +0 -3
  287. package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
  288. package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
  289. package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
  290. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +9 -4
  291. package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +7 -2
  292. package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
  293. package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +97 -9
  294. package/vscode/src/vs/workbench/api/common/extHostMcp.js +66 -62
  295. package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
  296. package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
  297. package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +2 -0
  298. package/vscode/src/vs/workbench/api/common/extHostSCM.js +22 -0
  299. package/vscode/src/vs/workbench/api/common/extHostSecrets.d.ts +0 -1
  300. package/vscode/src/vs/workbench/api/common/extHostSecrets.js +0 -3
  301. package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
  302. package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
  303. package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +2 -2
  304. package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +8 -8
  305. package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +53 -3
  306. package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +2 -0
  307. package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +5 -2
  308. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +6 -2
  309. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +60 -9
  310. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +18 -14
  311. package/vscode/src/vs/workbench/api/common/extHostTypes.js +7 -7
  312. package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
  313. package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
  314. package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
  315. package/vscode/src/vs/workbench/browser/actions/developerActions.js +262 -31
  316. package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
  317. package/vscode/src/vs/workbench/browser/contextkeys.d.ts +5 -7
  318. package/vscode/src/vs/workbench/browser/contextkeys.js +15 -43
  319. package/vscode/src/vs/workbench/common/configuration.js +9 -9
  320. package/vscode/src/vs/workbench/common/contextkeys.js +73 -73
  321. package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
  322. package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
  323. package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
  324. package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
  325. package/vscode/src/vs/workbench/common/editor.js +4 -4
  326. package/vscode/src/vs/workbench/common/theme.js +167 -167
  327. package/vscode/src/vs/workbench/common/views.js +4 -4
  328. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +3 -2
  329. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +175 -158
  330. package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
  331. package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -1
  332. package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +1 -1
  333. package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
  334. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.d.ts +1 -0
  335. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +15 -9
  336. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +7 -0
  337. package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +61 -66
  338. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +2 -1
  339. package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
  340. package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.d.ts +1 -2
  341. package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +24 -8
  342. package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +8 -1
  343. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +6 -2
  344. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +0 -2
  345. package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +28 -3
  346. package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +35 -6
  347. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +16 -6
  348. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +11 -8
  349. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +9 -2
  350. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
  351. package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +10 -3
  352. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +8 -4
  353. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +50 -42
  354. package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
  355. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +23 -8
  356. package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +4 -3
  357. package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +29 -29
  358. package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +4 -3
  359. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
  360. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  361. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  362. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  363. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  364. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +7 -6
  365. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  366. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
  367. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  368. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  369. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  370. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  371. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
  372. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  373. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
  374. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
  375. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
  376. package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +3 -1
  377. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
  378. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
  379. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  380. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  381. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  382. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  383. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  384. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  385. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  386. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  387. package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.d.ts +6 -1
  388. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +33 -0
  389. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +16 -5
  390. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +2 -2
  391. package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +217 -60
  392. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
  393. package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +2 -0
  394. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  395. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  396. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  397. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  398. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  399. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +7 -7
  400. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +1 -1
  401. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +16 -3
  402. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +18 -6
  403. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +42 -8
  404. package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
  405. package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +1 -0
  406. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +12 -11
  407. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  408. package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +2 -2
  409. package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
  410. package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +4 -4
  411. package/vscode/src/vs/workbench/services/authentication/common/authentication.js +2 -2
  412. package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +6 -6
  413. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +286 -0
  414. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +861 -0
  415. package/vscode/src/vs/workbench/{contrib → services}/chat/common/chatEntitlementService.service.d.ts +8 -2
  416. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  417. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  418. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +87 -87
  419. package/vscode/src/vs/workbench/services/language/common/languageService.js +30 -30
  420. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  421. package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
  422. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  423. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  424. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  425. package/vscode/src/vs/workbench/services/textfile/common/encoding.js +1 -1
  426. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
  427. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  428. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
  429. package/vscode-dts/vscode.d.ts +92 -47
  430. package/vscode-dts/vscode.proposed.authenticationChallenges.d.ts +7 -80
  431. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +14 -1
  432. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +12 -0
  433. package/vscode-dts/vscode.proposed.chatProvider.d.ts +19 -0
  434. package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +19 -11
  435. package/vscode-dts/vscode.proposed.d.ts +1 -1
  436. package/vscode-dts/{vscode.proposed.secretStorageKeys.d.ts → vscode.proposed.devDeviceId.d.ts} +3 -4
  437. package/vscode-dts/vscode.proposed.languageModelCapabilities.d.ts +5 -0
  438. package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +2 -0
  439. package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +70 -16
  440. package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.d.ts +0 -8
  441. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/frontMatterCodec/tokens/index.d.ts +0 -5
  442. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/simpleCodec/tokens/tokens.d.ts +0 -20
  443. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +0 -55
  444. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +0 -91
  445. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +0 -125
  446. /package/vscode/src/vs/workbench/{contrib → services}/chat/common/chatEntitlementService.service.js +0 -0
@@ -10,10 +10,10 @@ import { ISelection } from "../../../../editor/common/core/selection.js";
10
10
  import { Command, Location, TextEdit } from "../../../../editor/common/languages.js";
11
11
  import { FileType } from "../../../../platform/files/common/files.js";
12
12
  import { ICellEditOperation } from "../../notebook/common/notebookCommon.js";
13
- import { IWorkspaceSymbol } from "@codingame/monaco-vscode-4dda7789-5a25-5e8b-b2de-c2f11b1b96e5-common/vscode/vs/workbench/contrib/search/common/search";
13
+ import { IWorkspaceSymbol } from "@codingame/monaco-vscode-5084de40-f866-5cb5-9d9b-33a10f6f235d-common/vscode/vs/workbench/contrib/search/common/search";
14
14
  import { IChatAgentCommand, IChatAgentData, IChatAgentResult, UserSelectedTools } from "@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatAgents";
15
15
  import { IChatRequestModeInfo, IChatResponseModel } from "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModel";
16
- import { IChatParserContext } from "@codingame/monaco-vscode-0af61f78-dfc5-57ba-8d32-66268c8de38d-common/vscode/vs/workbench/contrib/chat/common/chatRequestParser";
16
+ import { IChatParserContext } from "@codingame/monaco-vscode-5084de40-f866-5cb5-9d9b-33a10f6f235d-common/vscode/vs/workbench/contrib/chat/common/chatRequestParser";
17
17
  import { IChatRequestVariableEntry } from "./chatVariableEntries.js";
18
18
  import { IChatRequestVariableValue } from "./chatVariables.js";
19
19
  import { ChatAgentLocation, ChatModeKind } from "./constants.js";
@@ -38,6 +38,7 @@ export interface IChatResponseErrorDetails {
38
38
  responseIsFiltered?: boolean;
39
39
  responseIsRedacted?: boolean;
40
40
  isQuotaExceeded?: boolean;
41
+ isRateLimited?: boolean;
41
42
  level?: ChatErrorLevel;
42
43
  confirmationButtons?: IChatResponseErrorDetailsConfirmationButton[];
43
44
  code?: string;
@@ -217,15 +218,16 @@ export interface IChatElicitationRequest {
217
218
  title: string | IMarkdownString;
218
219
  message: string | IMarkdownString;
219
220
  acceptButtonLabel: string;
220
- rejectButtonLabel: string;
221
+ rejectButtonLabel: string | undefined;
221
222
  subtitle?: string | IMarkdownString;
222
223
  source?: ToolDataSource;
223
224
  state: "pending" | "accepted" | "rejected";
224
225
  acceptedResult?: Record<string, unknown>;
225
226
  moreActions?: IAction[];
226
227
  accept(value: IAction | true): Promise<void>;
227
- reject(): Promise<void>;
228
- onDidRequestHide?: Event<void>;
228
+ reject?: () => Promise<void>;
229
+ isHidden?: IObservable<boolean>;
230
+ hide?(): void;
229
231
  }
230
232
  export interface IChatThinkingPart {
231
233
  kind: "thinking";
@@ -299,10 +301,11 @@ export interface IChatToolInvocation {
299
301
  source: ToolDataSource;
300
302
  progress: IObservable<{
301
303
  message?: string | IMarkdownString;
302
- progress: number;
304
+ progress: number | undefined;
303
305
  }>;
304
306
  readonly toolId: string;
305
307
  readonly toolCallId: string;
308
+ readonly fromSubAgent?: boolean;
306
309
  isCompletePromise: Promise<void>;
307
310
  isComplete: boolean;
308
311
  complete(result: IToolResult): void;
@@ -331,6 +334,7 @@ export interface IChatToolInvocationSerialized {
331
334
  toolCallId: string;
332
335
  toolId: string;
333
336
  source: ToolDataSource;
337
+ readonly fromSubAgent?: boolean;
334
338
  kind: "toolInvocationSerialized";
335
339
  }
336
340
  export interface IChatExtensionsContent {
@@ -355,11 +359,21 @@ export interface IChatTodoListContent {
355
359
  status: "not-started" | "in-progress" | "completed";
356
360
  }>;
357
361
  }
362
+ export interface IChatMcpServersInteractionRequired {
363
+ kind: "mcpServersInteractionRequired";
364
+ isDone?: boolean;
365
+ servers: Array<{
366
+ serverId: string;
367
+ serverLabel: string;
368
+ errorMessage?: string;
369
+ }>;
370
+ startCommand: Command;
371
+ }
358
372
  export interface IChatPrepareToolInvocationPart {
359
373
  readonly kind: "prepareToolInvocation";
360
374
  readonly toolName: string;
361
375
  }
362
- export type IChatProgress = IChatMarkdownContent | IChatAgentMarkdownContentWithVulnerability | IChatTreeData | IChatMultiDiffData | IChatUsedContext | IChatContentReference | IChatContentInlineReference | IChatCodeCitation | IChatProgressMessage | IChatTask | IChatTaskResult | IChatCommandButton | IChatWarningMessage | IChatTextEdit | IChatNotebookEdit | IChatMoveMessage | IChatResponseCodeblockUriPart | IChatConfirmation | IChatClearToPreviousToolInvocation | IChatToolInvocation | IChatToolInvocationSerialized | IChatExtensionsContent | IChatPullRequestContent | IChatUndoStop | IChatPrepareToolInvocationPart | IChatThinkingPart | IChatTaskSerialized | IChatElicitationRequest;
376
+ export type IChatProgress = IChatMarkdownContent | IChatAgentMarkdownContentWithVulnerability | IChatTreeData | IChatMultiDiffData | IChatUsedContext | IChatContentReference | IChatContentInlineReference | IChatCodeCitation | IChatProgressMessage | IChatTask | IChatTaskResult | IChatCommandButton | IChatWarningMessage | IChatTextEdit | IChatNotebookEdit | IChatMoveMessage | IChatResponseCodeblockUriPart | IChatConfirmation | IChatClearToPreviousToolInvocation | IChatToolInvocation | IChatToolInvocationSerialized | IChatExtensionsContent | IChatPullRequestContent | IChatUndoStop | IChatPrepareToolInvocationPart | IChatThinkingPart | IChatTaskSerialized | IChatElicitationRequest | IChatMcpServersInteractionRequired;
363
377
  export interface IChatFollowup {
364
378
  kind: "reply";
365
379
  message: string;
@@ -512,10 +526,12 @@ export interface IChatSendRequestData extends IChatSendRequestResponseState {
512
526
  slashCommand?: IChatAgentCommand;
513
527
  }
514
528
  export interface IChatEditorLocationData {
515
- type: ChatAgentLocation.Editor;
529
+ type: ChatAgentLocation.EditorInline;
516
530
  document: URI;
517
531
  selection: ISelection;
518
532
  wholeRange: IRange;
533
+ close: () => void;
534
+ delegateSessionId: string | undefined;
519
535
  }
520
536
  export interface IChatNotebookLocationData {
521
537
  type: ChatAgentLocation.Notebook;
@@ -2,6 +2,7 @@ import { CancellationToken } from "../../../../base/common/cancellation.js";
2
2
  import { Event } from "../../../../base/common/event.js";
3
3
  import { IObservable } from "../../../../base/common/observable.js";
4
4
  import { URI } from "../../../../base/common/uri.js";
5
+ import { IChatEditingSession } from "./chatEditingService.js";
5
6
  import { ChatModel, IChatModel, IExportableChatData, ISerializableChatData, IChatRequestModel, IChatRequestVariableData } from "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModel";
6
7
  import { IParsedChatRequest } from "@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes";
7
8
  import { IChatTransferredSessionData, IChatSendRequestOptions, IChatSendRequestData, IChatCompleteResponse, IChatDetail, IChatUserActionEvent } from "./chatService.js";
@@ -22,8 +23,14 @@ export interface IChatService {
22
23
  isPersistedSessionEmpty(sessionId: string): boolean;
23
24
  loadSessionFromContent(data: IExportableChatData | ISerializableChatData | URI): IChatModel | undefined;
24
25
  loadSessionForResource(resource: URI, location: ChatAgentLocation, token: CancellationToken): Promise<IChatModel | undefined>;
26
+ readonly editingSessions: IChatEditingSession[];
27
+ getChatSessionFromInternalId(sessionId: string): {
28
+ chatSessionType: string;
29
+ chatSessionId: string;
30
+ isUntitled: boolean;
31
+ } | undefined;
25
32
  /**
26
- * Returns whether the request was accepted.
33
+ * Returns whether the request was accepted.`
27
34
  */
28
35
  sendRequest(sessionId: string, message: string, options?: IChatSendRequestOptions): Promise<IChatSendRequestData | undefined>;
29
36
  resendRequest(request: IChatRequestModel, options?: IChatSendRequestOptions): Promise<void>;
@@ -12,6 +12,11 @@ export declare enum ChatSessionStatus {
12
12
  Completed = 1,
13
13
  InProgress = 2
14
14
  }
15
+ export interface IChatSessionCommandContribution {
16
+ name: string;
17
+ description: string;
18
+ when?: string;
19
+ }
15
20
  export interface IChatSessionsExtensionPoint {
16
21
  readonly type: string;
17
22
  readonly name: string;
@@ -23,6 +28,7 @@ export interface IChatSessionsExtensionPoint {
23
28
  supportsFileAttachments?: boolean;
24
29
  supportsToolAttachments?: boolean;
25
30
  };
31
+ readonly commands?: IChatSessionCommandContribution[];
26
32
  }
27
33
  export interface IChatSessionItem {
28
34
  id: string;
@@ -65,8 +71,6 @@ export interface IChatSessionItemProvider {
65
71
  provideChatSessionItems(token: CancellationToken): Promise<IChatSessionItem[]>;
66
72
  provideNewChatSessionItem?(options: {
67
73
  request: IChatAgentRequest;
68
- prompt?: string;
69
- history?: any[];
70
74
  metadata?: any;
71
75
  }, token: CancellationToken): Promise<IChatSessionItem>;
72
76
  }
@@ -16,8 +16,6 @@ export interface IChatSessionsService {
16
16
  getAllChatSessionItemProviders(): IChatSessionItemProvider[];
17
17
  provideNewChatSessionItem(chatSessionType: string, options: {
18
18
  request: IChatAgentRequest;
19
- prompt?: string;
20
- history?: any[];
21
19
  metadata?: any;
22
20
  }, token: CancellationToken): Promise<IChatSessionItem>;
23
21
  provideChatSessionItems(chatSessionType: string, token: CancellationToken): Promise<IChatSessionItem[]>;
@@ -7,6 +7,7 @@ import { MarkerSeverity, IMarker } from "../../../../platform/markers/common/mar
7
7
  import { ISCMHistoryItem } from "../../scm/common/history.js";
8
8
  import { IChatContentReference } from "./chatService.js";
9
9
  import { IChatRequestVariableValue } from "./chatVariables.js";
10
+ import { IToolData, ToolSet } from "./languageModelToolsService.js";
10
11
  interface IBaseChatRequestVariableEntry {
11
12
  readonly id: string;
12
13
  readonly fullName?: string;
@@ -43,6 +44,7 @@ export interface IChatRequestToolSetEntry extends IBaseChatRequestVariableEntry
43
44
  readonly kind: "toolset";
44
45
  readonly value: IChatRequestToolEntry[];
45
46
  }
47
+ export type ChatRequestToolReferenceEntry = IChatRequestToolEntry | IChatRequestToolSetEntry;
46
48
  export interface IChatRequestImplicitVariableEntry extends IBaseChatRequestVariableEntry {
47
49
  readonly kind: "implicit";
48
50
  readonly isFile: true;
@@ -107,6 +109,7 @@ export interface IPromptFileVariableEntry extends IBaseChatRequestVariableEntry
107
109
  readonly originLabel?: string;
108
110
  readonly modelDescription: string;
109
111
  readonly automaticallyAdded: boolean;
112
+ readonly toolReferences?: readonly ChatRequestToolReferenceEntry[];
110
113
  }
111
114
  export interface IPromptTextVariableEntry extends IBaseChatRequestVariableEntry {
112
115
  readonly kind: "promptText";
@@ -114,13 +117,31 @@ export interface IPromptTextVariableEntry extends IBaseChatRequestVariableEntry
114
117
  readonly settingId?: string;
115
118
  readonly modelDescription: string;
116
119
  readonly automaticallyAdded: boolean;
120
+ readonly toolReferences?: readonly ChatRequestToolReferenceEntry[];
117
121
  }
118
122
  export interface ISCMHistoryItemVariableEntry extends IBaseChatRequestVariableEntry {
119
123
  readonly kind: "scmHistoryItem";
120
124
  readonly value: URI;
121
125
  readonly historyItem: ISCMHistoryItem;
122
126
  }
123
- export type IChatRequestVariableEntry = IGenericChatRequestVariableEntry | IChatRequestImplicitVariableEntry | IChatRequestPasteVariableEntry | ISymbolVariableEntry | ICommandResultVariableEntry | IDiagnosticVariableEntry | IImageVariableEntry | IChatRequestToolEntry | IChatRequestToolSetEntry | IChatRequestDirectoryEntry | IChatRequestFileEntry | INotebookOutputVariableEntry | IElementVariableEntry | IPromptFileVariableEntry | IPromptTextVariableEntry | ISCMHistoryItemVariableEntry;
127
+ export interface ISCMHistoryItemChangeVariableEntry extends IBaseChatRequestVariableEntry {
128
+ readonly kind: "scmHistoryItemChange";
129
+ readonly value: URI;
130
+ readonly historyItem: ISCMHistoryItem;
131
+ }
132
+ export interface ISCMHistoryItemChangeRangeVariableEntry extends IBaseChatRequestVariableEntry {
133
+ readonly kind: "scmHistoryItemChangeRange";
134
+ readonly value: URI;
135
+ readonly historyItemChangeStart: {
136
+ readonly uri: URI;
137
+ readonly historyItem: ISCMHistoryItem;
138
+ };
139
+ readonly historyItemChangeEnd: {
140
+ readonly uri: URI;
141
+ readonly historyItem: ISCMHistoryItem;
142
+ };
143
+ }
144
+ export type IChatRequestVariableEntry = IGenericChatRequestVariableEntry | IChatRequestImplicitVariableEntry | IChatRequestPasteVariableEntry | ISymbolVariableEntry | ICommandResultVariableEntry | IDiagnosticVariableEntry | IImageVariableEntry | IChatRequestToolEntry | IChatRequestToolSetEntry | IChatRequestDirectoryEntry | IChatRequestFileEntry | INotebookOutputVariableEntry | IElementVariableEntry | IPromptFileVariableEntry | IPromptTextVariableEntry | ISCMHistoryItemVariableEntry | ISCMHistoryItemChangeVariableEntry | ISCMHistoryItemChangeRangeVariableEntry;
124
145
  export declare namespace IChatRequestVariableEntry {
125
146
  /**
126
147
  * Returns URI of the passed variant entry. Return undefined if not found.
@@ -138,6 +159,8 @@ export declare function isPromptFileVariableEntry(obj: IChatRequestVariableEntry
138
159
  export declare function isPromptTextVariableEntry(obj: IChatRequestVariableEntry): obj is IPromptTextVariableEntry;
139
160
  export declare function isChatRequestVariableEntry(obj: unknown): obj is IChatRequestVariableEntry;
140
161
  export declare function isSCMHistoryItemVariableEntry(obj: IChatRequestVariableEntry): obj is ISCMHistoryItemVariableEntry;
162
+ export declare function isSCMHistoryItemChangeVariableEntry(obj: IChatRequestVariableEntry): obj is ISCMHistoryItemChangeVariableEntry;
163
+ export declare function isSCMHistoryItemChangeRangeVariableEntry(obj: IChatRequestVariableEntry): obj is ISCMHistoryItemChangeRangeVariableEntry;
141
164
  export declare enum PromptFileVariableKind {
142
165
  Instruction = "vscode.prompt.instructions.root",
143
166
  InstructionReference = "vscode.prompt.instructions",
@@ -154,9 +177,11 @@ export declare enum PromptFileVariableKind {
154
177
  * @param uri A resource URI that points to a prompt instructions file.
155
178
  * @param kind The kind of the prompt file variable entry.
156
179
  */
157
- export declare function toPromptFileVariableEntry(uri: URI, kind: PromptFileVariableKind, originLabel?: string, automaticallyAdded?: boolean): IPromptFileVariableEntry;
158
- export declare function toPromptTextVariableEntry(content: string, automaticallyAdded?: boolean): IPromptTextVariableEntry;
180
+ export declare function toPromptFileVariableEntry(uri: URI, kind: PromptFileVariableKind, originLabel?: string, automaticallyAdded?: boolean, toolReferences?: ChatRequestToolReferenceEntry[]): IPromptFileVariableEntry;
181
+ export declare function toPromptTextVariableEntry(content: string, automaticallyAdded?: boolean, toolReferences?: ChatRequestToolReferenceEntry[]): IPromptTextVariableEntry;
159
182
  export declare function toFileVariableEntry(uri: URI, range?: IRange): IChatRequestFileEntry;
183
+ export declare function toToolVariableEntry(entry: IToolData, range?: IOffsetRange): IChatRequestToolEntry;
184
+ export declare function toToolSetVariableEntry(entry: ToolSet, range?: IOffsetRange): IChatRequestToolSetEntry;
160
185
  export declare class ChatRequestVariableSet {
161
186
  private _ids;
162
187
  private _entries;
@@ -1,6 +1,7 @@
1
1
 
2
2
  import { Codicon } from '../../../../base/common/codicons.js';
3
3
  import { basename } from '../../../../base/common/resources.js';
4
+ import { ThemeIcon } from '../../../../base/common/themables.js';
4
5
  import { URI } from '../../../../base/common/uri.js';
5
6
  import { isLocation } from '../../../../editor/common/languages.js';
6
7
  import { localize } from '../../../../nls.js';
@@ -54,9 +55,9 @@ var IDiagnosticVariableEntryFilterData;
54
55
  }
55
56
  return data.problemMessage.substring(0, lastSpace) + '…';
56
57
  }
57
- let labelStr = ( localize(5547, "All Problems"));
58
+ let labelStr = ( localize(5603, "All Problems"));
58
59
  if (data.filterUri) {
59
- labelStr = ( localize(5548, "Problems in {0}", basename(data.filterUri)));
60
+ labelStr = ( localize(5604, "Problems in {0}", basename(data.filterUri)));
60
61
  }
61
62
  return labelStr;
62
63
  }
@@ -97,13 +98,19 @@ function isPromptTextVariableEntry(obj) {
97
98
  function isSCMHistoryItemVariableEntry(obj) {
98
99
  return obj.kind === 'scmHistoryItem';
99
100
  }
101
+ function isSCMHistoryItemChangeVariableEntry(obj) {
102
+ return obj.kind === 'scmHistoryItemChange';
103
+ }
104
+ function isSCMHistoryItemChangeRangeVariableEntry(obj) {
105
+ return obj.kind === 'scmHistoryItemChangeRange';
106
+ }
100
107
  var PromptFileVariableKind;
101
108
  (function (PromptFileVariableKind) {
102
109
  PromptFileVariableKind["Instruction"] = "vscode.prompt.instructions.root";
103
110
  PromptFileVariableKind["InstructionReference"] = "vscode.prompt.instructions";
104
111
  PromptFileVariableKind["PromptFile"] = "vscode.prompt.file";
105
112
  })(PromptFileVariableKind || (PromptFileVariableKind = {}));
106
- function toPromptFileVariableEntry(uri, kind, originLabel, automaticallyAdded = false) {
113
+ function toPromptFileVariableEntry(uri, kind, originLabel, automaticallyAdded = false, toolReferences) {
107
114
  return {
108
115
  id: `${kind}__${( uri.toString())}`,
109
116
  name: `prompt:${basename(uri)}`,
@@ -112,17 +119,39 @@ function toPromptFileVariableEntry(uri, kind, originLabel, automaticallyAdded =
112
119
  modelDescription: 'Prompt instructions file',
113
120
  isRoot: kind !== PromptFileVariableKind.InstructionReference,
114
121
  originLabel,
122
+ toolReferences,
115
123
  automaticallyAdded
116
124
  };
117
125
  }
118
- function toPromptTextVariableEntry(content, automaticallyAdded = false) {
126
+ function toPromptTextVariableEntry(content, automaticallyAdded = false, toolReferences) {
119
127
  return {
120
128
  id: `vscode.prompt.instructions.text`,
121
129
  name: `prompt:instructionsList`,
122
130
  value: content,
123
131
  kind: 'promptText',
124
132
  modelDescription: 'Prompt instructions list',
125
- automaticallyAdded
133
+ automaticallyAdded,
134
+ toolReferences
135
+ };
136
+ }
137
+ function toToolVariableEntry(entry, range) {
138
+ return {
139
+ kind: 'tool',
140
+ id: entry.id,
141
+ icon: ThemeIcon.isThemeIcon(entry.icon) ? entry.icon : undefined,
142
+ name: entry.displayName,
143
+ value: undefined,
144
+ range
145
+ };
146
+ }
147
+ function toToolSetVariableEntry(entry, range) {
148
+ return {
149
+ kind: 'toolset',
150
+ id: entry.id,
151
+ icon: entry.icon,
152
+ name: entry.referenceName,
153
+ value: ( Array.from(entry.getTools()).map(t => toToolVariableEntry(t))),
154
+ range
126
155
  };
127
156
  }
128
157
  class ChatRequestVariableSet {
@@ -162,4 +191,4 @@ class ChatRequestVariableSet {
162
191
  }
163
192
  }
164
193
 
165
- export { ChatRequestVariableSet, IChatRequestVariableEntry, IDiagnosticVariableEntryFilterData, OmittedState, PromptFileVariableKind, isChatRequestFileEntry, isElementVariableEntry, isImageVariableEntry, isNotebookOutputVariableEntry, isPasteVariableEntry, isPromptFileVariableEntry, isPromptTextVariableEntry, isSCMHistoryItemVariableEntry, toPromptFileVariableEntry, toPromptTextVariableEntry };
194
+ export { ChatRequestVariableSet, IChatRequestVariableEntry, IDiagnosticVariableEntryFilterData, OmittedState, PromptFileVariableKind, isChatRequestFileEntry, isElementVariableEntry, isImageVariableEntry, isNotebookOutputVariableEntry, isPasteVariableEntry, isPromptFileVariableEntry, isPromptTextVariableEntry, isSCMHistoryItemChangeRangeVariableEntry, isSCMHistoryItemChangeVariableEntry, isSCMHistoryItemVariableEntry, toPromptFileVariableEntry, toPromptTextVariableEntry, toToolSetVariableEntry, toToolVariableEntry };
@@ -1,5 +1,4 @@
1
1
  export declare enum ChatConfiguration {
2
- UseFileStorage = "chat.useFileStorage",
3
2
  AgentEnabled = "chat.agent.enabled",
4
3
  Edits2Enabled = "chat.edits2.enabled",
5
4
  ExtensionToolsEnabled = "chat.extensionTools.enabled",
@@ -10,9 +9,11 @@ export declare enum ChatConfiguration {
10
9
  CheckpointsEnabled = "chat.checkpoints.enabled",
11
10
  AgentSessionsViewLocation = "chat.agentSessionsViewLocation",
12
11
  ThinkingStyle = "chat.agent.thinkingStyle",
13
- UseChatSessionsForCloudButton = "chat.useChatSessionsForCloudButton",
12
+ TodoList = "chat.agent.todoList",
13
+ UseCloudButtonV2 = "chat.useCloudButtonV2",
14
14
  ShowAgentSessionsViewDescription = "chat.showAgentSessionsViewDescription",
15
- EmptyStateHistoryEnabled = "chat.emptyState.history.enabled"
15
+ EmptyStateHistoryEnabled = "chat.emptyState.history.enabled",
16
+ NotifyWindowOnResponseReceived = "chat.notifyWindowOnResponseReceived"
16
17
  }
17
18
  /**
18
19
  * The "kind" of the chat mode- "Agent" for custom modes.
@@ -28,16 +29,25 @@ export declare enum ThinkingDisplayMode {
28
29
  Collapsed = "collapsed",
29
30
  CollapsedPreview = "collapsedPreview",
30
31
  Expanded = "expanded",
31
- None = "none"
32
+ None = "none",
33
+ CollapsedPerItem = "collapsedPerItem"
32
34
  }
33
35
  export type RawChatParticipantLocation = "panel" | "terminal" | "notebook" | "editing-session";
34
36
  export declare enum ChatAgentLocation {
35
- Panel = "panel",
37
+ /**
38
+ * This is chat, whether it's in the sidebar, a chat editor, or quick chat.
39
+ * Leaving the values alone as they are in stored data so we don't have to normalize them.
40
+ */
41
+ Chat = "panel",
36
42
  Terminal = "terminal",
37
43
  Notebook = "notebook",
38
- Editor = "editor"
44
+ /**
45
+ * EditorInline means inline chat in a text editor.
46
+ */
47
+ EditorInline = "editor"
39
48
  }
40
49
  export declare namespace ChatAgentLocation {
41
50
  function fromRaw(value: RawChatParticipantLocation | string): ChatAgentLocation;
42
51
  }
43
52
  export declare const ChatUnsupportedFileSchemes: Set<string>;
53
+ export declare const VIEWLET_ID = "workbench.view.chat.sessions";
@@ -3,7 +3,6 @@ import { Schemas } from '../../../../base/common/network.js';
3
3
 
4
4
  var ChatConfiguration;
5
5
  (function (ChatConfiguration) {
6
- ChatConfiguration["UseFileStorage"] = "chat.useFileStorage";
7
6
  ChatConfiguration["AgentEnabled"] = "chat.agent.enabled";
8
7
  ChatConfiguration["Edits2Enabled"] = "chat.edits2.enabled";
9
8
  ChatConfiguration["ExtensionToolsEnabled"] = "chat.extensionTools.enabled";
@@ -14,9 +13,11 @@ var ChatConfiguration;
14
13
  ChatConfiguration["CheckpointsEnabled"] = "chat.checkpoints.enabled";
15
14
  ChatConfiguration["AgentSessionsViewLocation"] = "chat.agentSessionsViewLocation";
16
15
  ChatConfiguration["ThinkingStyle"] = "chat.agent.thinkingStyle";
17
- ChatConfiguration["UseChatSessionsForCloudButton"] = "chat.useChatSessionsForCloudButton";
16
+ ChatConfiguration["TodoList"] = "chat.agent.todoList";
17
+ ChatConfiguration["UseCloudButtonV2"] = "chat.useCloudButtonV2";
18
18
  ChatConfiguration["ShowAgentSessionsViewDescription"] = "chat.showAgentSessionsViewDescription";
19
19
  ChatConfiguration["EmptyStateHistoryEnabled"] = "chat.emptyState.history.enabled";
20
+ ChatConfiguration["NotifyWindowOnResponseReceived"] = "chat.notifyWindowOnResponseReceived";
20
21
  })(ChatConfiguration || (ChatConfiguration = {}));
21
22
  var ChatModeKind;
22
23
  (function (ChatModeKind) {
@@ -40,28 +41,30 @@ var ThinkingDisplayMode;
40
41
  ThinkingDisplayMode["CollapsedPreview"] = "collapsedPreview";
41
42
  ThinkingDisplayMode["Expanded"] = "expanded";
42
43
  ThinkingDisplayMode["None"] = "none";
44
+ ThinkingDisplayMode["CollapsedPerItem"] = "collapsedPerItem";
43
45
  })(ThinkingDisplayMode || (ThinkingDisplayMode = {}));
44
46
  var ChatAgentLocation;
45
47
  (function (ChatAgentLocation) {
46
- ChatAgentLocation["Panel"] = "panel";
48
+ ChatAgentLocation["Chat"] = "panel";
47
49
  ChatAgentLocation["Terminal"] = "terminal";
48
50
  ChatAgentLocation["Notebook"] = "notebook";
49
- ChatAgentLocation["Editor"] = "editor";
51
+ ChatAgentLocation["EditorInline"] = "editor";
50
52
  })(ChatAgentLocation || (ChatAgentLocation = {}));
51
53
  (function (ChatAgentLocation) {
52
54
  function fromRaw(value) {
53
55
  switch (value) {
54
- case 'panel': return ChatAgentLocation.Panel;
56
+ case 'panel': return ChatAgentLocation.Chat;
55
57
  case 'terminal': return ChatAgentLocation.Terminal;
56
58
  case 'notebook': return ChatAgentLocation.Notebook;
57
- case 'editor': return ChatAgentLocation.Editor;
59
+ case 'editor': return ChatAgentLocation.EditorInline;
58
60
  }
59
- return ChatAgentLocation.Panel;
61
+ return ChatAgentLocation.Chat;
60
62
  }
61
63
  ChatAgentLocation.fromRaw = fromRaw;
62
64
  })(ChatAgentLocation || (ChatAgentLocation = {}));
63
65
  const ChatUnsupportedFileSchemes = ( new Set(
64
66
  [Schemas.vscodeChatEditor, Schemas.walkThrough, Schemas.vscodeChatSession, 'ccreq']
65
67
  ));
68
+ const VIEWLET_ID = 'workbench.view.chat.sessions';
66
69
 
67
- export { ChatAgentLocation, ChatConfiguration, ChatModeKind, ChatUnsupportedFileSchemes, ThinkingDisplayMode, validateChatMode };
70
+ export { ChatAgentLocation, ChatConfiguration, ChatModeKind, ChatUnsupportedFileSchemes, ThinkingDisplayMode, VIEWLET_ID, validateChatMode };
@@ -37,8 +37,8 @@ export interface IToolData {
37
37
  }
38
38
  export interface IToolProgressStep {
39
39
  readonly message: string | IMarkdownString | undefined;
40
- readonly increment?: number;
41
- readonly total?: number;
40
+ /** 0-1 progress of the tool call */
41
+ readonly progress?: number;
42
42
  }
43
43
  export type ToolProgress = IProgress<IToolProgressStep>;
44
44
  export type ToolDataSource = {
@@ -82,6 +82,10 @@ export interface IToolInvocation {
82
82
  context: IToolInvocationContext | undefined;
83
83
  chatRequestId?: string;
84
84
  chatInteractionId?: string;
85
+ /**
86
+ * Lets us add some nicer UI to toolcalls that came from a sub-agent, but in the long run, this should probably just be rendered in a similar way to thinking text + tool call groups
87
+ */
88
+ fromSubAgent?: boolean;
85
89
  toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent | IChatTodoListContent;
86
90
  modelId?: string;
87
91
  }
@@ -102,6 +106,8 @@ export type ToolInputOutputBase = {
102
106
  uri?: URI;
103
107
  /** If true, this part came in as a resource reference rather than direct data. */
104
108
  asResource?: boolean;
109
+ /** Audience of the data part */
110
+ audience?: LanguageModelPartAudience[];
105
111
  };
106
112
  export type ToolInputOutputEmbedded = ToolInputOutputBase & {
107
113
  type: "embed";
@@ -132,6 +138,7 @@ export interface IToolResult {
132
138
  toolResultMessage?: string | IMarkdownString;
133
139
  toolResultDetails?: Array<URI | Location> | IToolResultInputOutputDetails | IToolResultOutputDetails;
134
140
  toolResultError?: string;
141
+ toolMetadata?: unknown;
135
142
  }
136
143
  export declare function toolResultHasBuffers(result: IToolResult): boolean;
137
144
  export interface IToolResultPromptTsxPart {
@@ -29,16 +29,16 @@ var ToolDataSource;
29
29
  ToolDataSource.equals = equals;
30
30
  function classify(source) {
31
31
  if (source.type === 'internal') {
32
- return { ordinal: 1, label: ( localize(5552, 'Built-In')) };
32
+ return { ordinal: 1, label: ( localize(5608, 'Built-In')) };
33
33
  }
34
34
  else if (source.type === 'mcp') {
35
- return { ordinal: 2, label: ( localize(5553, 'MCP Server: {0}', source.label)) };
35
+ return { ordinal: 2, label: ( localize(5609, 'MCP Server: {0}', source.label)) };
36
36
  }
37
37
  else if (source.type === 'user') {
38
- return { ordinal: 0, label: ( localize(5554, 'User Defined')) };
38
+ return { ordinal: 0, label: ( localize(5610, 'User Defined')) };
39
39
  }
40
40
  else {
41
- return { ordinal: 3, label: ( localize(5555, 'Extension: {0}', source.label)) };
41
+ return { ordinal: 3, label: ( localize(5611, 'Extension: {0}', source.label)) };
42
42
  }
43
43
  }
44
44
  ToolDataSource.classify = classify;
@@ -3,7 +3,9 @@ import { Event } from "../../../../base/common/event.js";
3
3
  import { IDisposable } from "../../../../base/common/lifecycle.js";
4
4
  import { IObservable } from "../../../../base/common/observable.js";
5
5
  import { ThemeIcon } from "../../../../base/common/themables.js";
6
- import { IToolData, IToolImpl, IToolInvocation, CountTokensCallback, IToolResult, IToolAndToolSetEnablementMap, ToolSet, ToolDataSource } from "./languageModelToolsService.js";
6
+ import { IVariableReference } from "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModes";
7
+ import { ChatRequestToolReferenceEntry } from "./chatVariableEntries.js";
8
+ import { IToolData, IToolImpl, IToolInvocation, CountTokensCallback, IToolResult, ToolSet, ToolDataSource, IToolAndToolSetEnablementMap } from "./languageModelToolsService.js";
7
9
  export declare const ILanguageModelToolsService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<ILanguageModelToolsService>;
8
10
  export interface ILanguageModelToolsService {
9
11
  _serviceBrand: undefined;
@@ -19,8 +21,6 @@ export interface ILanguageModelToolsService {
19
21
  getToolAutoConfirmation(toolId: string): "workspace" | "profile" | "session" | "never";
20
22
  resetToolAutoConfirmation(): void;
21
23
  cancelToolCallsForRequest(requestId: string): void;
22
- toToolEnablementMap(toolOrToolSetNames: Set<string>): Record<string, boolean>;
23
- toToolAndToolSetEnablementMap(toolOrToolSetNames: readonly string[]): IToolAndToolSetEnablementMap;
24
24
  readonly toolSets: IObservable<Iterable<ToolSet>>;
25
25
  getToolSet(id: string): ToolSet | undefined;
26
26
  getToolSetByName(name: string): ToolSet | undefined;
@@ -28,4 +28,11 @@ export interface ILanguageModelToolsService {
28
28
  icon?: ThemeIcon;
29
29
  description?: string;
30
30
  }): ToolSet & IDisposable;
31
+ getQualifiedToolNames(): Iterable<string>;
32
+ getToolByQualifiedName(qualifiedName: string): IToolData | ToolSet | undefined;
33
+ getQualifiedToolName(tool: IToolData, toolSet?: ToolSet): string;
34
+ getDeprecatedQualifiedToolNames(): Map<string, string>;
35
+ toToolAndToolSetEnablementMap(qualifiedToolOrToolSetNames: readonly string[]): IToolAndToolSetEnablementMap;
36
+ toQualifiedToolNames(map: IToolAndToolSetEnablementMap): string[];
37
+ toToolReferences(variableReferences: readonly IVariableReference[]): ChatRequestToolReferenceEntry[];
31
38
  }
@@ -8,6 +8,7 @@ import { IContextKeyService } from "../../../../platform/contextkey/common/conte
8
8
  import { ExtensionIdentifier } from "../../../../platform/extensions/common/extensions.js";
9
9
  import { ILogService } from "../../../../platform/log/common/log.service.js";
10
10
  import { IStorageService } from "../../../../platform/storage/common/storage.service.js";
11
+ import { IChatEntitlementService } from "../../../services/chat/common/chatEntitlementService.service.js";
11
12
  import { IExtensionService } from "../../../services/extensions/common/extensions.service.js";
12
13
  import { ILanguageModelsService } from "./languageModels.service.js";
13
14
  export declare enum ChatMessageRole {
@@ -147,6 +148,7 @@ export interface ILanguageModelChatMetadata {
147
148
  readonly vision?: boolean;
148
149
  readonly toolCalling?: boolean;
149
150
  readonly agentMode?: boolean;
151
+ readonly editTools?: ReadonlyArray<string>;
150
152
  };
151
153
  }
152
154
  export declare namespace ILanguageModelChatMetadata {
@@ -198,24 +200,26 @@ export declare class LanguageModelsService implements ILanguageModelsService {
198
200
  private readonly _extensionService;
199
201
  private readonly _logService;
200
202
  private readonly _storageService;
203
+ private readonly _chatEntitlementService;
201
204
  readonly _serviceBrand: undefined;
202
205
  private readonly _store;
203
206
  private readonly _providers;
204
207
  private readonly _modelCache;
205
208
  private readonly _vendors;
206
- private readonly _modelPickerUserPreferences;
209
+ private readonly _resolveLMSequencer;
210
+ private _modelPickerUserPreferences;
207
211
  private readonly _hasUserSelectableModels;
208
212
  private readonly _onLanguageModelChange;
209
213
  readonly onDidChangeLanguageModels: Event<void>;
210
- constructor(_extensionService: IExtensionService, _logService: ILogService, _storageService: IStorageService, _contextKeyService: IContextKeyService);
211
- private _hasStoredModelForvendor;
214
+ constructor(_extensionService: IExtensionService, _logService: ILogService, _storageService: IStorageService, _contextKeyService: IContextKeyService, _chatEntitlementService: IChatEntitlementService);
215
+ private _hasStoredModelForVendor;
212
216
  dispose(): void;
213
217
  updateModelPickerPreference(modelIdentifier: string, showInModelPicker: boolean): void;
214
218
  getVendors(): IUserFriendlyLanguageModel[];
215
219
  getLanguageModelIds(): string[];
216
220
  lookupLanguageModel(modelIdentifier: string): ILanguageModelChatMetadata | undefined;
217
221
  private _clearModelCache;
218
- resolveLanguageModels(vendors: string | string[], silent: boolean): Promise<void>;
222
+ private _resolveLanguageModels;
219
223
  selectLanguageModels(selector: ILanguageModelChatSelector, allowPromptingUser?: boolean): Promise<string[]>;
220
224
  registerLanguageModelProvider(vendor: string, provider: ILanguageModelChatProvider): IDisposable;
221
225
  sendChatRequest(modelId: string, from: ExtensionIdentifier, messages: IChatMessage[], options: {