@codingame/monaco-vscode-api 21.6.0 → 22.0.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 (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
@@ -487,7 +487,7 @@ let BaseExtHostTerminalService = class BaseExtHostTerminalService extends Dispos
487
487
  async $startExtensionTerminal(id, initialDimensions) {
488
488
  const terminal = this.getTerminalById(id);
489
489
  if (!terminal) {
490
- return { message: ( localize(2641, "Could not find the terminal with id {0} on the extension host", id)) };
490
+ return { message: ( localize(2647, "Could not find the terminal with id {0} on the extension host", id)) };
491
491
  }
492
492
  if (!terminal.isOpen) {
493
493
  await ( new Promise(r => {
@@ -570,15 +570,15 @@ let BaseExtHostTerminalService = class BaseExtHostTerminalService extends Dispos
570
570
  this._proxy.$unregisterProfileProvider(id);
571
571
  }));
572
572
  }
573
- registerTerminalCompletionProvider(extension, provider, ...triggerCharacters) {
574
- if (( this._completionProviders.has(provider.id))) {
575
- throw ( new Error(`Terminal completion provider "${provider.id}" already registered`));
573
+ registerTerminalCompletionProvider(extension, id, provider, ...triggerCharacters) {
574
+ if (( this._completionProviders.has(id))) {
575
+ throw ( new Error(`Terminal completion provider "${id}" already registered`));
576
576
  }
577
- this._completionProviders.set(provider.id, provider);
578
- this._proxy.$registerCompletionProvider(provider.id, extension.identifier.value, ...triggerCharacters);
577
+ this._completionProviders.set(id, provider);
578
+ this._proxy.$registerCompletionProvider(id, extension.identifier.value, ...triggerCharacters);
579
579
  return ( new Disposable$1(() => {
580
- this._completionProviders.delete(provider.id);
581
- this._proxy.$unregisterCompletionProvider(provider.id);
580
+ this._completionProviders.delete(id);
581
+ this._proxy.$unregisterCompletionProvider(id);
582
582
  }));
583
583
  }
584
584
  async $provideTerminalCompletions(id, options) {
@@ -8,7 +8,8 @@ import { NoTreeViewError } from '../../common/views.js';
8
8
  import { asPromise } from '../../../base/common/async.js';
9
9
  import { ViewBadge, DataTransfer as DataTransfer$1, TreeItemCheckboxState, TreeItem, TreeItemCollapsibleState, ThemeIcon } from './extHostTypes.js';
10
10
  import { isString, isUndefinedOrNull } from '../../../base/common/types.js';
11
- import { equals, coalesce } from '../../../base/common/arrays.js';
11
+ import { distinct, equals, coalesce } from '../../../base/common/arrays.js';
12
+ import { LogLevel } from '../../../platform/log/common/log.js';
12
13
  import { DataTransfer, MarkdownString, ViewBadge as ViewBadge$1 } from './extHostTypeConverters.js';
13
14
  import { isMarkdownString } from '../../../base/common/htmlContent.js';
14
15
  import { CancellationTokenSource } from '../../../base/common/cancellation.js';
@@ -347,13 +348,23 @@ class ExtHostTreeView extends Disposable {
347
348
  }, 200, true);
348
349
  this._register(onDidChangeData(({ message, elements }) => {
349
350
  if (elements.length) {
351
+ elements = distinct(elements);
350
352
  this._refreshQueue = this._refreshQueue.then(() => {
351
353
  const _promiseCallback = promiseCallback;
352
354
  refreshingPromise = null;
353
355
  const childrenToClear = Array.from(this._nodesToClear);
356
+ this._nodesToClear.clear();
357
+ this._debugLogRefresh('start', elements, childrenToClear);
354
358
  return this._refresh(elements).then(() => {
359
+ this._debugLogRefresh('done', elements, childrenToClear);
355
360
  this._clearNodes(childrenToClear);
356
361
  return _promiseCallback();
362
+ }).catch(e => {
363
+ const message = e instanceof Error ? e.message : JSON.stringify(e);
364
+ this._debugLogRefresh('error', elements, childrenToClear);
365
+ this._clearNodes(childrenToClear);
366
+ this._logService.error(`Unable to refresh tree view ${this._viewId}: ${message}`);
367
+ return _promiseCallback();
357
368
  });
358
369
  });
359
370
  }
@@ -362,6 +373,45 @@ class ExtHostTreeView extends Disposable {
362
373
  }
363
374
  }));
364
375
  }
376
+ _debugCollectHandles(elements) {
377
+ const changed = [];
378
+ for (const el of elements) {
379
+ if (!el) {
380
+ changed.push('<root>');
381
+ continue;
382
+ }
383
+ const node = this._nodes.get(el);
384
+ if (node) {
385
+ changed.push(node.item.handle);
386
+ }
387
+ }
388
+ const roots = this._roots?.map(r => r.item.handle) ?? [];
389
+ return { changed, roots };
390
+ }
391
+ _debugLogRefresh(phase, elements, childrenToClear) {
392
+ if (!this._isDebugLogging()) {
393
+ return;
394
+ }
395
+ try {
396
+ const snapshot = this._debugCollectHandles(elements);
397
+ snapshot.clearing = ( childrenToClear.map(n => n.item.handle));
398
+ const changedCount = snapshot.changed.length;
399
+ const nodesToClearLen = childrenToClear.length;
400
+ this._logService.debug(`[TreeView:${this._viewId}] refresh ${phase} changed=${changedCount} nodesToClear=${nodesToClearLen} elements.size=${this._elements.size} nodes.size=${this._nodes.size} handles=${JSON.stringify(snapshot)}`);
401
+ }
402
+ catch {
403
+ this._logService.debug(`[TreeView:${this._viewId}] refresh ${phase} (snapshot failed)`);
404
+ }
405
+ }
406
+ _isDebugLogging() {
407
+ try {
408
+ const level = this._logService.getLevel();
409
+ return (level === LogLevel.Debug) || (level === LogLevel.Trace);
410
+ }
411
+ catch {
412
+ return false;
413
+ }
414
+ }
365
415
  async getChildren(parentHandle) {
366
416
  const parentElement = parentHandle ? this.getExtensionElement(parentHandle) : undefined;
367
417
  if (parentHandle && !parentElement) {
@@ -581,8 +631,8 @@ class ExtHostTreeView extends Disposable {
581
631
  this._addChildrenToClear(parentElement);
582
632
  const cts = ( new CancellationTokenSource(this._refreshCancellationSource.token));
583
633
  try {
584
- const parentNode = parentElement ? this._nodes.get(parentElement) : undefined;
585
634
  const elements = await this._dataProvider.getChildren(parentElement);
635
+ const parentNode = parentElement ? this._nodes.get(parentElement) : undefined;
586
636
  if (cts.token.isCancellationRequested) {
587
637
  return undefined;
588
638
  }
@@ -678,7 +728,7 @@ class ExtHostTreeView extends Disposable {
678
728
  _createAndRegisterTreeNode(element, extTreeItem, parentNode) {
679
729
  const node = this._createTreeNode(element, extTreeItem, parentNode);
680
730
  if (extTreeItem.id && ( this._elements.has(node.item.handle))) {
681
- throw ( new Error(( localize(2642, 'Element with id {0} is already registered', extTreeItem.id))));
731
+ throw ( new Error(( localize(2648, 'Element with id {0} is already registered', extTreeItem.id))));
682
732
  }
683
733
  this._addNodeToCache(element, node);
684
734
  this._addNodeToParentCache(node, parentNode);
@@ -26,6 +26,7 @@ export interface IExtHostTunnelService extends ExtHostTunnelServiceShape {
26
26
  setTunnelFactory(provider: vscode.RemoteAuthorityResolver | undefined, managedRemoteAuthority: vscode.ManagedResolvedAuthority | undefined): Promise<IDisposable>;
27
27
  registerPortsAttributesProvider(portSelector: PortAttributesSelector, provider: vscode.PortAttributesProvider): IDisposable;
28
28
  registerTunnelProvider(provider: vscode.TunnelProvider, information: vscode.TunnelInformation): Promise<IDisposable>;
29
+ hasTunnelProvider(): Promise<boolean>;
29
30
  }
30
31
  export declare const IExtHostTunnelService: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IExtHostTunnelService>;
31
32
  export declare class ExtHostTunnelService extends Disposable implements IExtHostTunnelService {
@@ -47,6 +48,7 @@ export declare class ExtHostTunnelService extends Disposable implements IExtHost
47
48
  $providePortAttributes(handles: number[], ports: number[], pid: number | undefined, commandLine: string | undefined, cancellationToken: vscode.CancellationToken): Promise<ProvidedPortAttributes[]>;
48
49
  $registerCandidateFinder(_enable: boolean): Promise<void>;
49
50
  registerTunnelProvider(provider: vscode.TunnelProvider, information: vscode.TunnelInformation): Promise<IDisposable>;
51
+ hasTunnelProvider(): Promise<boolean>;
50
52
  /**
51
53
  * Applies the tunnel metadata and factory found in the remote authority
52
54
  * resolver to the tunnel system.
@@ -131,6 +131,9 @@ let ExtHostTunnelService = class ExtHostTunnelService extends Disposable {
131
131
  this._proxy.$setTunnelProvider(undefined, false);
132
132
  }));
133
133
  }
134
+ hasTunnelProvider() {
135
+ return this._proxy.$hasTunnelProvider();
136
+ }
134
137
  async setTunnelFactory(provider, managedRemoteAuthority) {
135
138
  if (provider) {
136
139
  if (provider.candidatePortSource !== undefined) {
@@ -148,12 +151,12 @@ let ExtHostTunnelService = class ExtHostTunnelService extends Disposable {
148
151
  privacyOptions = [
149
152
  {
150
153
  id: 'private',
151
- label: ( localize(2643, "Private")),
154
+ label: ( localize(2649, "Private")),
152
155
  themeIcon: 'lock'
153
156
  },
154
157
  {
155
158
  id: 'public',
156
- label: ( localize(2644, "Public")),
159
+ label: ( localize(2650, "Public")),
157
160
  themeIcon: 'eye'
158
161
  }
159
162
  ];
@@ -22,6 +22,7 @@ import { SaveReason } from "../../common/editor.js";
22
22
  import { IViewBadge } from "../../common/views.js";
23
23
  import { IChatAgentRequest, IChatAgentResult } from "@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatAgents";
24
24
  import { IChatRequestDraft } from "../../contrib/chat/common/chatEditingService.js";
25
+ import { IChatRequestModeInstructions } from "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModel";
25
26
  import { IChatAgentMarkdownContentWithVulnerability, IChatCodeCitation, IChatCommandButton, IChatConfirmation, IChatContentInlineReference, IChatContentReference, IChatExtensionsContent, IChatFollowup, IChatMarkdownContent, IChatMoveMessage, IChatMultiDiffData, IChatPrepareToolInvocationPart, IChatProgressMessage, IChatPullRequestContent, IChatResponseCodeblockUriPart, IChatTaskDto, IChatTaskResult, IChatTextEdit, IChatThinkingPart, IChatToolInvocationSerialized, IChatTreeData, IChatUserActionEvent, IChatWarningMessage } from "../../contrib/chat/common/chatService.js";
26
27
  import { IChatRequestVariableEntry } from "../../contrib/chat/common/chatVariableEntries.js";
27
28
  import { ChatAgentLocation } from "../../contrib/chat/common/constants.js";
@@ -31,10 +32,10 @@ import { IDebugVisualizationTreeItem } from "../../contrib/debug/common/debug.js
31
32
  import { McpServerLaunch } from "../../contrib/mcp/common/mcpTypes.js";
32
33
  import * as notebooks from "../../contrib/notebook/common/notebookCommon.js";
33
34
  import { ICellRange } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/common/notebookRange";
34
- import * as search from "@codingame/monaco-vscode-4dda7789-5a25-5e8b-b2de-c2f11b1b96e5-common/vscode/vs/workbench/contrib/search/common/search";
35
+ import * as search from "@codingame/monaco-vscode-5084de40-f866-5cb5-9d9b-33a10f6f235d-common/vscode/vs/workbench/contrib/search/common/search";
35
36
  import { CoverageDetails, IFileCoverage, ISerializedTestResults, ITestErrorMessage, ITestItem, ITestRunProfileReference, ITestTag, TestRunProfileBitset } from "../../contrib/testing/common/testTypes.js";
36
37
  import { AiSettingsSearchResult } from "../../services/aiSettingsSearch/common/aiSettingsSearch.js";
37
- import { EditorGroupColumn } from "@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common/vscode/vs/workbench/services/editor/common/editorGroupColumn";
38
+ import { EditorGroupColumn } from "@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common/vscode/vs/workbench/services/editor/common/editorGroupColumn";
38
39
  import { Dto, SerializableObjectWithBuffers } from "../../services/extensions/common/proxyIdentifier.js";
39
40
  import * as extHostProtocol from "./extHost.protocol.js";
40
41
  import { CommandsConverter } from "./extHostCommands.js";
@@ -566,6 +567,9 @@ export declare namespace ChatPromptReference {
566
567
  export declare namespace ChatLanguageModelToolReference {
567
568
  function to(variable: IChatRequestVariableEntry): vscode.ChatLanguageModelToolReference;
568
569
  }
570
+ export declare namespace ChatRequestModeInstructions {
571
+ function to(mode: IChatRequestModeInstructions | undefined): vscode.ChatRequestModeInstructions | undefined;
572
+ }
569
573
  export declare namespace ChatAgentCompletionItem {
570
574
  function from(item: vscode.ChatCompletionItem, commandsConverter: CommandsConverter, disposables: DisposableStore): extHostProtocol.IChatAgentCompletionItem;
571
575
  }
@@ -24,7 +24,7 @@ import { TrackedRangeStickiness, EndOfLineSequence } from '../../../editor/commo
24
24
  import { MarkerTag, MarkerSeverity } from '../../../platform/markers/common/markers.js';
25
25
  import { ProgressLocation as ProgressLocation$2 } from '../../../platform/progress/common/progress.js';
26
26
  import { SaveReason, DEFAULT_EDITOR_ASSOCIATION } from '../../common/editor.js';
27
- import { isImageVariableEntry } from '../../contrib/chat/common/chatVariableEntries.js';
27
+ import { isImageVariableEntry, isPromptFileVariableEntry, isPromptTextVariableEntry } from '../../contrib/chat/common/chatVariableEntries.js';
28
28
  import { ChatAgentLocation } from '../../contrib/chat/common/constants.js';
29
29
  import { ToolDataSource } from '../../contrib/chat/common/languageModelToolsService.js';
30
30
  import { ChatMessageRole } from '../../contrib/chat/common/languageModels.js';
@@ -2675,7 +2675,8 @@ var ChatToolInvocationPart;
2675
2675
  isComplete: part.isComplete ?? true,
2676
2676
  source: ToolDataSource.External,
2677
2677
  toolSpecificData: part.toolSpecificData ? convertToolSpecificData(part.toolSpecificData) : undefined,
2678
- presentation: undefined
2678
+ presentation: undefined,
2679
+ fromSubAgent: part.fromSubAgent
2679
2680
  };
2680
2681
  }
2681
2682
  ChatToolInvocationPart.from = from;
@@ -2716,6 +2717,7 @@ var ChatToolInvocationPart;
2716
2717
  if (part.toolSpecificData) {
2717
2718
  toolInvocation.toolSpecificData = convertFromInternalToolSpecificData(part.toolSpecificData);
2718
2719
  }
2720
+ toolInvocation.fromSubAgent = part.fromSubAgent;
2719
2721
  return toolInvocation;
2720
2722
  }
2721
2723
  ChatToolInvocationPart.to = to;
@@ -2999,6 +3001,7 @@ var ChatAgentRequest;
2999
3001
  attempt: request.attempt ?? 0,
3000
3002
  enableCommandDetection: request.enableCommandDetection ?? true,
3001
3003
  isParticipantDetected: request.isParticipantDetected ?? false,
3004
+ sessionId: request.sessionId,
3002
3005
  references: ( variableReferences
3003
3006
  .map(v => ChatPromptReference.to(v, diagnostics, logService)))
3004
3007
  .filter(isDefined),
@@ -3011,7 +3014,8 @@ var ChatAgentRequest;
3011
3014
  tools,
3012
3015
  model,
3013
3016
  editedFileEvents: request.editedFileEvents,
3014
- modeInstructions: request.modeInstructions,
3017
+ modeInstructions: request.modeInstructions?.content,
3018
+ modeInstructions2: ChatRequestModeInstructions.to(request.modeInstructions),
3015
3019
  };
3016
3020
  if (!isProposedApiEnabled(extension, 'chatParticipantPrivate')) {
3017
3021
  delete requestWithAllProps.id;
@@ -3021,6 +3025,7 @@ var ChatAgentRequest;
3021
3025
  delete requestWithAllProps.location;
3022
3026
  delete requestWithAllProps.location2;
3023
3027
  delete requestWithAllProps.editedFileEvents;
3028
+ delete requestWithAllProps.sessionId;
3024
3029
  }
3025
3030
  if (!isProposedApiEnabled(extension, 'chatParticipantAdditions')) {
3026
3031
  delete requestWithAllProps.acceptedConfirmationData;
@@ -3047,8 +3052,8 @@ var ChatLocation;
3047
3052
  switch (loc) {
3048
3053
  case ChatAgentLocation.Notebook: return ChatLocation$1.Notebook;
3049
3054
  case ChatAgentLocation.Terminal: return ChatLocation$1.Terminal;
3050
- case ChatAgentLocation.Panel: return ChatLocation$1.Panel;
3051
- case ChatAgentLocation.Editor: return ChatLocation$1.Editor;
3055
+ case ChatAgentLocation.Chat: return ChatLocation$1.Panel;
3056
+ case ChatAgentLocation.EditorInline: return ChatLocation$1.Editor;
3052
3057
  }
3053
3058
  }
3054
3059
  ChatLocation.to = to;
@@ -3056,8 +3061,8 @@ var ChatLocation;
3056
3061
  switch (loc) {
3057
3062
  case ChatLocation$1.Notebook: return ChatAgentLocation.Notebook;
3058
3063
  case ChatLocation$1.Terminal: return ChatAgentLocation.Terminal;
3059
- case ChatLocation$1.Panel: return ChatAgentLocation.Panel;
3060
- case ChatLocation$1.Editor: return ChatAgentLocation.Editor;
3064
+ case ChatLocation$1.Panel: return ChatAgentLocation.Chat;
3065
+ case ChatLocation$1.Editor: return ChatAgentLocation.EditorInline;
3061
3066
  }
3062
3067
  }
3063
3068
  ChatLocation.from = from;
@@ -3105,10 +3110,17 @@ var ChatPromptReference;
3105
3110
  })];
3106
3111
  })).filter(([, d]) => d.length > 0));
3107
3112
  }
3113
+ let toolReferences;
3114
+ if (isPromptFileVariableEntry(variable) || isPromptTextVariableEntry(variable)) {
3115
+ if (variable.toolReferences) {
3116
+ toolReferences = ChatLanguageModelToolReferences.to(variable.toolReferences);
3117
+ }
3118
+ }
3108
3119
  return {
3109
3120
  id: variable.id,
3110
3121
  name: variable.name,
3111
3122
  range: variable.range && [variable.range.start, variable.range.endExclusive],
3123
+ toolReferences,
3112
3124
  value,
3113
3125
  modelDescription: variable.modelDescription,
3114
3126
  };
@@ -3129,6 +3141,39 @@ var ChatLanguageModelToolReference;
3129
3141
  }
3130
3142
  ChatLanguageModelToolReference.to = to;
3131
3143
  })(ChatLanguageModelToolReference || (ChatLanguageModelToolReference = {}));
3144
+ var ChatLanguageModelToolReferences;
3145
+ (function (ChatLanguageModelToolReferences) {
3146
+ function to(variables) {
3147
+ const toolReferences = [];
3148
+ for (const v of variables) {
3149
+ if (v.kind === 'tool') {
3150
+ toolReferences.push(ChatLanguageModelToolReference.to(v));
3151
+ }
3152
+ else if (v.kind === 'toolset') {
3153
+ toolReferences.push(...( v.value.map(ChatLanguageModelToolReference.to)));
3154
+ }
3155
+ else {
3156
+ throw ( new Error('Invalid tool reference in prompt variables'));
3157
+ }
3158
+ }
3159
+ return toolReferences;
3160
+ }
3161
+ ChatLanguageModelToolReferences.to = to;
3162
+ })(ChatLanguageModelToolReferences || (ChatLanguageModelToolReferences = {}));
3163
+ var ChatRequestModeInstructions;
3164
+ (function (ChatRequestModeInstructions) {
3165
+ function to(mode) {
3166
+ if (mode) {
3167
+ return {
3168
+ content: mode.content,
3169
+ toolReferences: ChatLanguageModelToolReferences.to(mode.toolReferences),
3170
+ metadata: mode.metadata
3171
+ };
3172
+ }
3173
+ return undefined;
3174
+ }
3175
+ ChatRequestModeInstructions.to = to;
3176
+ })(ChatRequestModeInstructions || (ChatRequestModeInstructions = {}));
3132
3177
  var ChatAgentCompletionItem;
3133
3178
  (function (ChatAgentCompletionItem) {
3134
3179
  function from(item, commandsConverter, disposables) {
@@ -3289,6 +3334,7 @@ var TerminalResourceRequestConfig;
3289
3334
  ...resourceRequestConfig,
3290
3335
  pathSeparator,
3291
3336
  cwd: resourceRequestConfig.cwd,
3337
+ globPattern: GlobPattern.from(resourceRequestConfig.globPattern) ?? undefined
3292
3338
  };
3293
3339
  }
3294
3340
  TerminalResourceRequestConfig.from = from;
@@ -3442,7 +3488,7 @@ var LanguageModelToolResult;
3442
3488
  var LanguageModelToolResult2;
3443
3489
  (function (LanguageModelToolResult2) {
3444
3490
  function to(result) {
3445
- return new LanguageModelToolResult2$1(( result.content.map(item => {
3491
+ const toolResult = new LanguageModelToolResult2$1(( result.content.map(item => {
3446
3492
  if (item.kind === 'text') {
3447
3493
  return new LanguageModelTextPart(item.value, item.audience);
3448
3494
  }
@@ -3453,6 +3499,10 @@ var LanguageModelToolResult2;
3453
3499
  return new LanguageModelPromptTsxPart(item.value);
3454
3500
  }
3455
3501
  })));
3502
+ if (result.toolMetadata) {
3503
+ toolResult.toolMetadata = result.toolMetadata;
3504
+ }
3505
+ return toolResult;
3456
3506
  }
3457
3507
  LanguageModelToolResult2.to = to;
3458
3508
  function from(result, extension) {
@@ -3517,6 +3567,7 @@ var LanguageModelToolResult2;
3517
3567
  })),
3518
3568
  toolResultMessage: MarkdownString.fromStrict(result.toolResultMessage),
3519
3569
  toolResultDetails: detailsDto,
3570
+ toolMetadata: result.toolMetadata,
3520
3571
  };
3521
3572
  return hasBuffers ? ( new SerializableObjectWithBuffers(dto)) : dto;
3522
3573
  }
@@ -3576,4 +3627,4 @@ var McpServerDefinition;
3576
3627
  McpServerDefinition.from = from;
3577
3628
  })(McpServerDefinition || (McpServerDefinition = {}));
3578
3629
 
3579
- export { AiSettingsSearch, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, ChatAgentCompletionItem, ChatAgentRequest, ChatAgentResult, ChatAgentUserActionEvent, ChatFollowup, ChatLanguageModelToolReference, ChatLocation, ChatPrepareToolInvocationPart, ChatPromptReference, ChatRequestDraft, ChatResponseAnchorPart, ChatResponseCodeCitationPart, ChatResponseCodeblockUriPart, ChatResponseCommandButtonPart, ChatResponseConfirmationPart, ChatResponseExtensionsPart, ChatResponseFilesPart, ChatResponseMarkdownPart, ChatResponseMarkdownWithVulnerabilitiesPart, ChatResponseMovePart, ChatResponseMultiDiffPart, ChatResponseNotebookEditPart, ChatResponsePart, ChatResponseProgressPart, ChatResponsePullRequestPart, ChatResponseReferencePart, ChatResponseTextEditPart, ChatResponseThinkingProgressPart, ChatResponseWarningPart, ChatTask, ChatTaskResult, ChatToolInvocationPart, CodeActionTriggerKind, Color, ColorPresentation, CompletionCommand, CompletionContext, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionTriggerKind, DataTransfer, DataTransferItem, DebugTreeItem, DecorationRangeBehavior, DecorationRenderOptions, DefinitionLink, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, DocumentHighlight, DocumentLink, DocumentSelector, DocumentSymbol, EndOfLine, EvaluatableExpression, FoldingRange, FoldingRangeKind, GlobPattern, Hover, IconPath, InlayHint, InlayHintKind, InlayHintLabelPart, InlineCompletionDisplayLocationKind, InlineCompletionEndOfLifeReason, InlineValue, InlineValueContext, LanguageModelChatMessage, LanguageModelChatMessage2, LanguageModelChatMessageRole, LanguageModelToolResult, LanguageModelToolResult2, LanguageModelToolSource, LanguageSelector, Location, MarkdownString, McpServerDefinition, MultiDocumentHighlight, NotebookCellData, NotebookCellExecutionSummary, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookData, NotebookDocumentContentOptions, NotebookEdit, NotebookExclusiveDocumentPattern, NotebookKernelSourceAction, NotebookRange, NotebookRendererScript, NotebookStatusBarItem, ParameterInformation, PartialAcceptInfo, PartialAcceptTriggerKind, Position, ProgressLocation, Range, Selection, SelectionRange, SignatureHelp, SignatureInformation, SymbolKind, SymbolTag, TerminalCompletionItemDto, TerminalCompletionList, TerminalQuickFix, TerminalResourceRequestConfig, TestCoverage, TestItem, TestMessage, TestResults, TestRunProfile, TestRunProfileKind, TestTag, TextDocumentSaveReason, TextEdit, TextEditorLineNumbersStyle, TextEditorOpenOptions, ThemableDecorationAttachmentRenderOptions, ThemableDecorationRenderOptions, TokenType, TypeHierarchyItem, ViewBadge, ViewColumn, WorkspaceEdit, WorkspaceSymbol, fromRangeOrRangeWithMessage, isDecorationOptionsArr, location, pathOrURIToURI };
3630
+ export { AiSettingsSearch, CallHierarchyIncomingCall, CallHierarchyItem, CallHierarchyOutgoingCall, ChatAgentCompletionItem, ChatAgentRequest, ChatAgentResult, ChatAgentUserActionEvent, ChatFollowup, ChatLanguageModelToolReference, ChatLocation, ChatPrepareToolInvocationPart, ChatPromptReference, ChatRequestDraft, ChatRequestModeInstructions, ChatResponseAnchorPart, ChatResponseCodeCitationPart, ChatResponseCodeblockUriPart, ChatResponseCommandButtonPart, ChatResponseConfirmationPart, ChatResponseExtensionsPart, ChatResponseFilesPart, ChatResponseMarkdownPart, ChatResponseMarkdownWithVulnerabilitiesPart, ChatResponseMovePart, ChatResponseMultiDiffPart, ChatResponseNotebookEditPart, ChatResponsePart, ChatResponseProgressPart, ChatResponsePullRequestPart, ChatResponseReferencePart, ChatResponseTextEditPart, ChatResponseThinkingProgressPart, ChatResponseWarningPart, ChatTask, ChatTaskResult, ChatToolInvocationPart, CodeActionTriggerKind, Color, ColorPresentation, CompletionCommand, CompletionContext, CompletionItem, CompletionItemKind, CompletionItemTag, CompletionTriggerKind, DataTransfer, DataTransferItem, DebugTreeItem, DecorationRangeBehavior, DecorationRenderOptions, DefinitionLink, Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag, DocumentHighlight, DocumentLink, DocumentSelector, DocumentSymbol, EndOfLine, EvaluatableExpression, FoldingRange, FoldingRangeKind, GlobPattern, Hover, IconPath, InlayHint, InlayHintKind, InlayHintLabelPart, InlineCompletionDisplayLocationKind, InlineCompletionEndOfLifeReason, InlineValue, InlineValueContext, LanguageModelChatMessage, LanguageModelChatMessage2, LanguageModelChatMessageRole, LanguageModelToolResult, LanguageModelToolResult2, LanguageModelToolSource, LanguageSelector, Location, MarkdownString, McpServerDefinition, MultiDocumentHighlight, NotebookCellData, NotebookCellExecutionSummary, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookData, NotebookDocumentContentOptions, NotebookEdit, NotebookExclusiveDocumentPattern, NotebookKernelSourceAction, NotebookRange, NotebookRendererScript, NotebookStatusBarItem, ParameterInformation, PartialAcceptInfo, PartialAcceptTriggerKind, Position, ProgressLocation, Range, Selection, SelectionRange, SignatureHelp, SignatureInformation, SymbolKind, SymbolTag, TerminalCompletionItemDto, TerminalCompletionList, TerminalQuickFix, TerminalResourceRequestConfig, TestCoverage, TestItem, TestMessage, TestResults, TestRunProfile, TestRunProfileKind, TestTag, TextDocumentSaveReason, TextEdit, TextEditorLineNumbersStyle, TextEditorOpenOptions, ThemableDecorationAttachmentRenderOptions, ThemableDecorationRenderOptions, TokenType, TypeHierarchyItem, ViewBadge, ViewColumn, WorkspaceEdit, WorkspaceSymbol, fromRangeOrRangeWithMessage, isDecorationOptionsArr, location, pathOrURIToURI };
@@ -8,29 +8,29 @@ import { ExtensionIdentifier, IExtensionDescription } from "../../../platform/ex
8
8
  import { FileSystemProviderErrorCode } from "../../../platform/files/common/files.js";
9
9
  import { RemoteAuthorityResolverErrorCode } from "../../../platform/remote/common/remoteAuthorityResolver.js";
10
10
  import { IRelativePatternDto } from "./extHost.protocol.js";
11
- import { Position } from "./extHostTypes/position.js";
12
- import { Range } from "./extHostTypes/range.js";
13
11
  import { CodeActionKind } from "./extHostTypes/codeActionKind.js";
14
- import { Location } from "./extHostTypes/location.js";
15
12
  import { Diagnostic } from "./extHostTypes/diagnostic.js";
16
- import { TextEdit } from "./extHostTypes/textEdit.js";
17
- import { WorkspaceEdit } from "./extHostTypes/workspaceEdit.js";
18
- import { SnippetString } from "./extHostTypes/snippetString.js";
13
+ import { Location } from "./extHostTypes/location.js";
19
14
  import { MarkdownString } from "./extHostTypes/markdownString.js";
15
+ import { Position } from "./extHostTypes/position.js";
16
+ import { Range } from "./extHostTypes/range.js";
17
+ import { SnippetString } from "./extHostTypes/snippetString.js";
20
18
  import { SymbolKind, SymbolTag } from "./extHostTypes/symbolInformation.js";
19
+ import { TextEdit } from "./extHostTypes/textEdit.js";
20
+ import { WorkspaceEdit } from "./extHostTypes/workspaceEdit.js";
21
+ export { CodeActionKind } from "./extHostTypes/codeActionKind.js";
22
+ export { Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag } from "./extHostTypes/diagnostic.js";
23
+ export { Location } from "./extHostTypes/location.js";
24
+ export { MarkdownString } from "./extHostTypes/markdownString.js";
25
+ export { NotebookCellData, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookData, NotebookEdit, NotebookRange } from "./extHostTypes/notebooks.js";
21
26
  export { Position } from "./extHostTypes/position.js";
22
27
  export { Range } from "./extHostTypes/range.js";
23
28
  export { Selection } from "./extHostTypes/selection.js";
24
- export { CodeActionKind } from "./extHostTypes/codeActionKind.js";
25
- export { Location } from "./extHostTypes/location.js";
26
- export { Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag } from "./extHostTypes/diagnostic.js";
27
- export { EndOfLine, TextEdit } from "./extHostTypes/textEdit.js";
28
- export { FileEditType, WorkspaceEdit } from "./extHostTypes/workspaceEdit.js";
29
29
  export { SnippetString } from "./extHostTypes/snippetString.js";
30
30
  export { SnippetTextEdit } from "./extHostTypes/snippetTextEdit.js";
31
- export { NotebookCellKind, NotebookRange, NotebookCellData, NotebookCellOutput, NotebookData, NotebookEdit, NotebookCellOutputItem } from "./extHostTypes/notebooks.js";
32
- export { MarkdownString } from "./extHostTypes/markdownString.js";
33
- export { SymbolKind, SymbolTag, SymbolInformation } from "./extHostTypes/symbolInformation.js";
31
+ export { SymbolInformation, SymbolKind, SymbolTag } from "./extHostTypes/symbolInformation.js";
32
+ export { EndOfLine, TextEdit } from "./extHostTypes/textEdit.js";
33
+ export { FileEditType, WorkspaceEdit } from "./extHostTypes/workspaceEdit.js";
34
34
  export declare enum TerminalOutputAnchor {
35
35
  Top = 0,
36
36
  Bottom = 1
@@ -1596,6 +1596,7 @@ export declare class ChatToolInvocationPart {
1596
1596
  isConfirmed?: boolean;
1597
1597
  isComplete?: boolean;
1598
1598
  toolSpecificData?: ChatTerminalToolInvocationData2;
1599
+ fromSubAgent?: boolean;
1599
1600
  constructor(toolName: string, toolCallId: string, isError?: boolean);
1600
1601
  }
1601
1602
  export declare class ChatRequestTurn implements vscode.ChatRequestTurn2 {
@@ -1828,6 +1829,9 @@ export declare class LanguageModelToolResult2 {
1828
1829
  };
1829
1830
  }
1830
1831
  export declare class ExtendedLanguageModelToolResult extends LanguageModelToolResult {
1832
+ toolResultMessage?: string | MarkdownString;
1833
+ toolResultDetails?: Array<URI | Location>;
1834
+ toolMetadata?: unknown;
1831
1835
  }
1832
1836
  export declare enum LanguageModelChatToolMode {
1833
1837
  Auto = 1,
@@ -14,18 +14,18 @@ import { ExtensionIdentifier } from '../../../platform/extensions/common/extensi
14
14
  import { FileSystemProviderErrorCode, markAsFileSystemProviderError } from '../../../platform/files/common/files.js';
15
15
  import { RemoteAuthorityResolverErrorCode } from '../../../platform/remote/common/remoteAuthorityResolver.js';
16
16
  import { es5ClassCompat } from './extHostTypes/es5ClassCompat.js';
17
- import { Range } from './extHostTypes/range.js';
18
17
  import { MarkdownString } from './extHostTypes/markdownString.js';
19
- export { Position } from './extHostTypes/position.js';
20
- export { Selection } from './extHostTypes/selection.js';
18
+ import { Range } from './extHostTypes/range.js';
21
19
  export { CodeActionKind } from './extHostTypes/codeActionKind.js';
22
- export { Location } from './extHostTypes/location.js';
23
20
  export { Diagnostic, DiagnosticRelatedInformation, DiagnosticSeverity, DiagnosticTag } from './extHostTypes/diagnostic.js';
24
- export { EndOfLine, TextEdit } from './extHostTypes/textEdit.js';
25
- export { FileEditType, WorkspaceEdit } from './extHostTypes/workspaceEdit.js';
26
- export { SnippetString } from './extHostTypes/snippetString.js';
21
+ export { Location } from './extHostTypes/location.js';
27
22
  export { NotebookCellData, NotebookCellKind, NotebookCellOutput, NotebookCellOutputItem, NotebookData, NotebookEdit, NotebookRange } from './extHostTypes/notebooks.js';
23
+ export { Position } from './extHostTypes/position.js';
24
+ export { Selection } from './extHostTypes/selection.js';
25
+ export { SnippetString } from './extHostTypes/snippetString.js';
28
26
  export { SymbolInformation, SymbolKind, SymbolTag } from './extHostTypes/symbolInformation.js';
27
+ export { EndOfLine, TextEdit } from './extHostTypes/textEdit.js';
28
+ export { FileEditType, WorkspaceEdit } from './extHostTypes/workspaceEdit.js';
29
29
 
30
30
  var Disposable_1, DocumentSymbol_1, TaskGroup_1, Task_1, TreeItem_1, FileSystemError_1, TestMessage_1;
31
31
  var TerminalOutputAnchor;
@@ -3,7 +3,7 @@ import { URI } from "../../../base/common/uri.js";
3
3
  import { IExtensionDescription } from "../../../platform/extensions/common/extensions.js";
4
4
  import { ExtHostWebview, ExtHostWebviews } from "./extHostWebview.js";
5
5
  import { IExtHostWorkspace } from "./extHostWorkspace.js";
6
- import { EditorGroupColumn } from "@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common/vscode/vs/workbench/services/editor/common/editorGroupColumn";
6
+ import { EditorGroupColumn } from "@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common/vscode/vs/workbench/services/editor/common/editorGroupColumn";
7
7
  import type * as vscode from "vscode";
8
8
  import * as extHostProtocol from "./extHost.protocol.js";
9
9
  type IconPath = URI | {
@@ -250,7 +250,7 @@ let ExtHostWorkspace = class ExtHostWorkspace {
250
250
  this._unconfirmedWorkspace = undefined;
251
251
  const options = { source: { identifier: extension.identifier, label: extension.displayName || extension.name } };
252
252
  this._messageService.$showMessage(Severity$1.Error, ( localize(
253
- 2645,
253
+ 2651,
254
254
  "Extension '{0}' failed to update workspace folders: {1}",
255
255
  extName,
256
256
  (error.toString())
@@ -16,7 +16,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
16
16
  extensionPoint: 'jsonValidation',
17
17
  defaultExtensionKind: ['workspace', 'web'],
18
18
  jsonSchema: {
19
- description: ( localize(2646, 'Contributes json schema configuration.')),
19
+ description: ( localize(2652, 'Contributes json schema configuration.')),
20
20
  type: 'array',
21
21
  defaultSnippets: [{ body: [{ fileMatch: '${1:file.json}', url: '${2:url}' }] }],
22
22
  items: {
@@ -26,7 +26,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
26
26
  fileMatch: {
27
27
  type: ['string', 'array'],
28
28
  description: ( localize(
29
- 2647,
29
+ 2653,
30
30
  'The file pattern (or an array of patterns) to match, for example "package.json" or "*.launch". Exclusion patterns start with \'!\''
31
31
  )),
32
32
  items: {
@@ -35,7 +35,7 @@ const configurationExtPoint = ExtensionsRegistry.registerExtensionPoint({
35
35
  },
36
36
  url: {
37
37
  description: ( localize(
38
- 2648,
38
+ 2654,
39
39
  'A schema URL (\'http:\', \'https:\') or relative path to the extension folder (\'./\').'
40
40
  )),
41
41
  type: 'string'
@@ -52,20 +52,20 @@ class JSONValidationExtensionPoint {
52
52
  const collector = extension.collector;
53
53
  const extensionLocation = extension.description.extensionLocation;
54
54
  if (!extensionValue || !Array.isArray(extensionValue)) {
55
- collector.error(( localize(2649, "'configuration.jsonValidation' must be a array")));
55
+ collector.error(( localize(2655, "'configuration.jsonValidation' must be a array")));
56
56
  return;
57
57
  }
58
58
  extensionValue.forEach(extension => {
59
59
  if (!isString(extension.fileMatch) && !(Array.isArray(extension.fileMatch) && extension.fileMatch.every(isString))) {
60
60
  collector.error(( localize(
61
- 2650,
61
+ 2656,
62
62
  "'configuration.jsonValidation.fileMatch' must be defined as a string or an array of strings."
63
63
  )));
64
64
  return;
65
65
  }
66
66
  const uri = extension.url;
67
67
  if (!isString(uri)) {
68
- collector.error(( localize(2651, "'configuration.jsonValidation.url' must be a URL or relative path")));
68
+ collector.error(( localize(2657, "'configuration.jsonValidation.url' must be a URL or relative path")));
69
69
  return;
70
70
  }
71
71
  if (uri.startsWith('./')) {
@@ -73,7 +73,7 @@ class JSONValidationExtensionPoint {
73
73
  const colorThemeLocation = joinPath(extensionLocation, uri);
74
74
  if (!isEqualOrParent(colorThemeLocation, extensionLocation)) {
75
75
  collector.warn(( localize(
76
- 2652,
76
+ 2658,
77
77
  "Expected `contributes.{0}.url` ({1}) to be included inside extension's folder ({2}). This might make the extension non-portable.",
78
78
  configurationExtPoint.name,
79
79
  (colorThemeLocation.toString()),
@@ -83,7 +83,7 @@ class JSONValidationExtensionPoint {
83
83
  }
84
84
  catch (e) {
85
85
  collector.error(( localize(
86
- 2653,
86
+ 2659,
87
87
  "'configuration.jsonValidation.url' is an invalid relative URL: {0}",
88
88
  e.message
89
89
  )));
@@ -91,7 +91,7 @@ class JSONValidationExtensionPoint {
91
91
  }
92
92
  else if (!/^[^:/?#]+:\/\//.test(uri)) {
93
93
  collector.error(( localize(
94
- 2654,
94
+ 2660,
95
95
  "'configuration.jsonValidation.url' must be an absolute URL or start with './' to reference schemas located in the extension."
96
96
  )));
97
97
  return;
@@ -115,8 +115,8 @@ class JSONValidationDataRenderer extends Disposable {
115
115
  return { data: { headers: [], rows: [] }, dispose: () => { } };
116
116
  }
117
117
  const headers = [
118
- ( localize(2655, "File Match")),
119
- ( localize(2656, "Schema")),
118
+ ( localize(2661, "File Match")),
119
+ ( localize(2662, "Schema")),
120
120
  ];
121
121
  const rows = ( contrib.map(v => {
122
122
  return [
@@ -135,7 +135,7 @@ class JSONValidationDataRenderer extends Disposable {
135
135
  }
136
136
  ( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
137
137
  id: 'jsonValidation',
138
- label: ( localize(2657, "JSON Validation")),
138
+ label: ( localize(2663, "JSON Validation")),
139
139
  access: {
140
140
  canToggle: false
141
141
  },