@codingame/monaco-vscode-api 26.1.1 → 26.2.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 (335) hide show
  1. package/missing-services.js +26 -5
  2. package/package.json +8 -8
  3. package/services.js +3 -3
  4. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css +9 -0
  5. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +2 -0
  6. package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +12 -5
  7. package/vscode/src/vs/platform/actions/common/actions.d.ts +1 -0
  8. package/vscode/src/vs/platform/actions/common/actions.js +3 -0
  9. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +4 -0
  10. package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +5 -1
  11. package/vscode/src/vs/platform/product/common/product.js +3 -3
  12. package/vscode/src/vs/platform/window/common/window.d.ts +1 -0
  13. package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +2 -1
  14. package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +1 -0
  15. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +1 -0
  16. package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +31 -8
  17. package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +2 -1
  18. package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +7 -2
  19. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +12 -1
  20. package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +67 -3
  21. package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +12 -0
  22. package/vscode/src/vs/workbench/api/common/extHostTypes.js +9 -1
  23. package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +1 -7
  24. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +5 -0
  25. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +15 -12
  26. package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +1 -1
  27. package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
  28. package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +8 -3
  29. package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
  30. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileRewriter.d.ts +1 -1
  31. package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileRewriter.js +5 -3
  32. package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +2 -2
  33. package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +9 -9
  34. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +7 -0
  35. package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +80 -62
  36. package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +2 -2
  37. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +5 -5
  38. package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +8 -9
  39. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +70 -1
  40. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.js +27 -1
  41. package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.service.d.ts +27 -3
  42. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +2 -1
  43. package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +3 -2
  44. package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +2 -0
  45. package/vscode/src/vs/workbench/contrib/chat/common/constants.js +2 -0
  46. package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
  47. package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
  48. package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +22 -22
  49. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +84 -5
  50. package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +176 -70
  51. package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.d.ts +18 -5
  52. package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.js +46 -4
  53. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.d.ts +17 -0
  54. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.js +10 -0
  55. package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.service.d.ts +1 -0
  56. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +9 -0
  57. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +68 -54
  58. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +16 -0
  59. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +6 -0
  60. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts +48 -0
  61. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js +64 -3
  62. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.d.ts +159 -0
  63. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +387 -0
  64. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.d.ts +21 -4
  65. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +82 -26
  66. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.d.ts +3 -1
  67. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +5 -1
  68. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +51 -3
  69. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +14 -1
  70. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +11 -10
  71. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptEditHelper.d.ts +5 -0
  72. package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptEditHelper.js +22 -0
  73. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +9 -9
  74. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +14 -2
  75. package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +98 -25
  76. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +22 -22
  77. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.d.ts +14 -0
  78. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +3 -3
  79. package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service.d.ts +1 -2
  80. package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.js +1 -1
  81. package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
  82. package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
  83. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
  84. package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
  85. package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +9 -9
  86. package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
  87. package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
  88. package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
  89. package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
  90. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
  91. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -3
  92. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
  93. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
  94. package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
  95. package/vscode/src/vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint.js +65 -65
  96. package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
  97. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
  98. package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +2 -2
  99. package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
  100. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -3
  101. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
  102. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +3 -3
  103. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
  104. package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
  105. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +7 -7
  106. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
  107. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
  108. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +14 -14
  109. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
  110. package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
  111. package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
  112. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
  113. package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
  114. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
  115. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
  116. package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +75 -75
  117. package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
  118. package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +6 -6
  119. package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
  120. package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
  121. package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
  122. package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -3
  123. package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
  124. package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
  125. package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +4 -4
  126. package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
  127. package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +18 -18
  128. package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
  129. package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
  130. package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
  131. package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
  132. package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
  133. package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
  134. package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
  135. package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
  136. package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
  137. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/commands.js +2 -2
  138. package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
  139. package/vscode/src/vs/workbench/contrib/extensions/browser/abstractRuntimeExtensionsEditor.js +18 -18
  140. package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
  141. package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
  142. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +41 -41
  143. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
  144. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
  145. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +14 -14
  146. package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +147 -147
  147. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +170 -170
  148. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
  149. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
  150. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
  151. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
  152. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
  153. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +7 -7
  154. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +48 -48
  155. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +5 -5
  156. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +29 -29
  157. package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +74 -74
  158. package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
  159. package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
  160. package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
  161. package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
  162. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
  163. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
  164. package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
  165. package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +2 -2
  166. package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
  167. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
  168. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -3
  169. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
  170. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
  171. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
  172. package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
  173. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +39 -39
  174. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
  175. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
  176. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
  177. package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
  178. package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +27 -27
  179. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +50 -50
  180. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
  181. package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
  182. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
  183. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
  184. package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +17 -17
  185. package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
  186. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
  187. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
  188. package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
  189. package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
  190. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
  191. package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
  192. package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
  193. package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
  194. package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
  195. package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
  196. package/vscode/src/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration.js +66 -66
  197. package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +31 -31
  198. package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +9 -9
  199. package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
  200. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
  201. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
  202. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
  203. package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
  204. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
  205. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +3 -3
  206. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
  207. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +17 -17
  208. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
  209. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
  210. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
  211. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
  212. package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
  213. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
  214. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
  215. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
  216. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +8 -5
  217. package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
  218. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
  219. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +7 -7
  220. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
  221. package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
  222. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
  223. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
  224. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
  225. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
  226. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
  227. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
  228. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
  229. package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
  230. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
  231. package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
  232. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
  233. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
  234. package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
  235. package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
  236. package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +3 -3
  237. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
  238. package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
  239. package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
  240. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +3 -3
  241. package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
  242. package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
  243. package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
  244. package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +59 -59
  245. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
  246. package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
  247. package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +14 -14
  248. package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +9 -9
  249. package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
  250. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
  251. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -12
  252. package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
  253. package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +5 -5
  254. package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
  255. package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
  256. package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
  257. package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
  258. package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +55 -55
  259. package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +8 -8
  260. package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
  261. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
  262. package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
  263. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
  264. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
  265. package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
  266. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
  267. package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
  268. package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
  269. package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
  270. package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
  271. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +3 -3
  272. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
  273. package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +40 -40
  274. package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
  275. package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +9 -9
  276. package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
  277. package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
  278. package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
  279. package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
  280. package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
  281. package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +54 -54
  282. package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
  283. package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
  284. package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +1 -1
  285. package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
  286. package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
  287. package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
  288. package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
  289. package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
  290. package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
  291. package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
  292. package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
  293. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
  294. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
  295. package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
  296. package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
  297. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
  298. package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +14 -14
  299. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
  300. package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
  301. package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
  302. package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
  303. package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
  304. package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
  305. package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
  306. package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +88 -88
  307. package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
  308. package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
  309. package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
  310. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
  311. package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
  312. package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
  313. package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
  314. package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
  315. package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
  316. package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +5 -1
  317. package/vscode/src/vs/workbench/services/storage/browser/storageService.js +32 -16
  318. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
  319. package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
  320. package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
  321. package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
  322. package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
  323. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
  324. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
  325. package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
  326. package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
  327. package/vscode/src/vs/workbench/services/views/browser/viewsService.js +9 -9
  328. package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
  329. package/vscode/src/vs/workbench/services/workspaces/browser/workspaces.d.ts +2 -2
  330. package/vscode/src/vs/workbench/services/workspaces/browser/workspaces.js +4 -4
  331. package/vscode-dts/vscode.proposed.chatHooks.d.ts +126 -0
  332. package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +25 -1
  333. package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +35 -1
  334. package/vscode-dts/vscode.proposed.d.ts +1 -0
  335. package/workbench.js +2 -2
@@ -9,25 +9,25 @@ import { Categories } from '../../../../platform/action/common/actionCommonCateg
9
9
  function getSyncAreaLabel(source) {
10
10
  switch (source) {
11
11
  case SyncResource.Settings:
12
- return localize(14996, "Settings");
12
+ return localize(15186, "Settings");
13
13
  case SyncResource.Keybindings:
14
- return localize(14997, "Keyboard Shortcuts");
14
+ return localize(15187, "Keyboard Shortcuts");
15
15
  case SyncResource.Snippets:
16
- return localize(14998, "Snippets");
16
+ return localize(15188, "Snippets");
17
17
  case SyncResource.Prompts:
18
- return localize(14999, "Prompts and Instructions");
18
+ return localize(15189, "Prompts and Instructions");
19
19
  case SyncResource.Tasks:
20
- return localize(15000, "Tasks");
20
+ return localize(15190, "Tasks");
21
21
  case SyncResource.Mcp:
22
- return localize(15001, "MCP Servers");
22
+ return localize(15191, "MCP Servers");
23
23
  case SyncResource.Extensions:
24
- return localize(15002, "Extensions");
24
+ return localize(15192, "Extensions");
25
25
  case SyncResource.GlobalState:
26
- return localize(15003, "UI State");
26
+ return localize(15193, "UI State");
27
27
  case SyncResource.Profiles:
28
- return localize(15004, "Profiles");
28
+ return localize(15194, "Profiles");
29
29
  case SyncResource.WorkspaceState:
30
- return localize(15005, "Workspace State");
30
+ return localize(15195, "Workspace State");
31
31
  }
32
32
  }
33
33
  var AccountStatus;
@@ -36,8 +36,8 @@ var AccountStatus;
36
36
  AccountStatus["Unavailable"] = "unavailable";
37
37
  AccountStatus["Available"] = "available";
38
38
  })(AccountStatus || (AccountStatus = {}));
39
- const SYNC_TITLE = ( localize2(15006, "Settings Sync"));
40
- const SYNC_VIEW_ICON = registerIcon("settings-sync-view-icon", Codicon.sync, ( localize(15007, "View icon of the Settings Sync view.")));
39
+ const SYNC_TITLE = ( localize2(15196, "Settings Sync"));
40
+ const SYNC_VIEW_ICON = registerIcon("settings-sync-view-icon", Codicon.sync, ( localize(15197, "View icon of the Settings Sync view.")));
41
41
  const CONTEXT_SYNC_STATE = ( new RawContextKey("syncStatus", SyncStatus.Uninitialized));
42
42
  const CONTEXT_SYNC_ENABLEMENT = ( new RawContextKey("syncEnabled", false));
43
43
  const CONTEXT_ACCOUNT_STATE = ( new RawContextKey("userDataSyncAccountStatus", AccountStatus.Uninitialized));
@@ -50,7 +50,7 @@ const SYNC_VIEW_CONTAINER_ID = "workbench.view.sync";
50
50
  const SYNC_CONFLICTS_VIEW_ID = "workbench.views.sync.conflicts";
51
51
  const DOWNLOAD_ACTIVITY_ACTION_DESCRIPTOR = {
52
52
  id: "workbench.userDataSync.actions.downloadSyncActivity",
53
- title: ( localize2(15008, "Download Settings Sync Activity")),
53
+ title: ( localize2(15198, "Download Settings Sync Activity")),
54
54
  category: Categories.Developer,
55
55
  f1: true,
56
56
  precondition: ( ContextKeyExpr.and(( CONTEXT_ACCOUNT_STATE.isEqualTo(AccountStatus.Available)), ( CONTEXT_SYNC_STATE.notEqualsTo(SyncStatus.Uninitialized))))
@@ -285,7 +285,7 @@ let ViewsService = class ViewsService extends Disposable {
285
285
  return this.viewDescriptorService.getViewDescriptorById(( viewId.toString()));
286
286
  }
287
287
  getFocusedViewName() {
288
- const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localize(15014, "Text Editor")) : undefined;
288
+ const textEditorFocused = this.editorService.activeTextEditorControl?.hasTextFocus() ? ( localize(15204, "Text Editor")) : undefined;
289
289
  return this.getFocusedView()?.name?.value ?? textEditorFocused ?? "";
290
290
  }
291
291
  async openView(id, focus) {
@@ -391,12 +391,12 @@ let ViewsService = class ViewsService extends Disposable {
391
391
  const originalTitle = typeof title === "string" ? title : title.original;
392
392
  if (viewContainerLocation === ViewContainerLocation.Sidebar) {
393
393
  return {
394
- value: ( localize(15015, "Show {0}", localizedTitle)),
394
+ value: ( localize(15205, "Show {0}", localizedTitle)),
395
395
  original: `Show ${originalTitle}`
396
396
  };
397
397
  } else {
398
398
  return {
399
- value: ( localize(15016, "Toggle {0}", localizedTitle)),
399
+ value: ( localize(15206, "Toggle {0}", localizedTitle)),
400
400
  original: `Toggle ${originalTitle}`
401
401
  };
402
402
  }
@@ -468,12 +468,12 @@ let ViewsService = class ViewsService extends Disposable {
468
468
  const originalTitle = typeof title === "string" ? title : title.original;
469
469
  if (viewContainerLocation === ViewContainerLocation.Sidebar) {
470
470
  return {
471
- value: ( localize(15015, "Show {0}", localizedTitle)),
471
+ value: ( localize(15205, "Show {0}", localizedTitle)),
472
472
  original: `Show ${originalTitle}`
473
473
  };
474
474
  } else {
475
475
  return {
476
- value: ( localize(15016, "Toggle {0}", localizedTitle)),
476
+ value: ( localize(15206, "Toggle {0}", localizedTitle)),
477
477
  original: `Toggle ${originalTitle}`
478
478
  };
479
479
  }
@@ -486,7 +486,7 @@ let ViewsService = class ViewsService extends Disposable {
486
486
  } : undefined,
487
487
  f1: viewDescriptor.openCommandActionDescriptor ? true : undefined,
488
488
  metadata: {
489
- description: ( localize(15017, "Opens view {0}", viewDescriptor.name.value)),
489
+ description: ( localize(15207, "Opens view {0}", viewDescriptor.name.value)),
490
490
  args: [{
491
491
  name: "options",
492
492
  schema: {
@@ -495,7 +495,7 @@ let ViewsService = class ViewsService extends Disposable {
495
495
  "preserveFocus": {
496
496
  type: "boolean",
497
497
  default: false,
498
- description: ( localize(15018, "Whether to preserve the existing focus when opening the view."))
498
+ description: ( localize(15208, "Whether to preserve the existing focus when opening the view."))
499
499
  }
500
500
  }
501
501
  }
@@ -542,7 +542,7 @@ let ViewsService = class ViewsService extends Disposable {
542
542
  registerFocusViewAction(viewDescriptor, category) {
543
543
  return registerAction2(class FocusViewAction extends Action2 {
544
544
  constructor() {
545
- const title = ( localize2(15019, "Focus on {0} View", viewDescriptor.name.value));
545
+ const title = ( localize2(15209, "Focus on {0} View", viewDescriptor.name.value));
546
546
  super({
547
547
  id: viewDescriptor.focusCommand ? viewDescriptor.focusCommand.id : `${viewDescriptor.id}.focus`,
548
548
  title,
@@ -588,7 +588,7 @@ let ViewsService = class ViewsService extends Disposable {
588
588
  constructor() {
589
589
  super({
590
590
  id: `${viewDescriptor.id}.resetViewLocation`,
591
- title: ( localize2(15020, "Reset Location")),
591
+ title: ( localize2(15210, "Reset Location")),
592
592
  menu: [{
593
593
  id: MenuId.ViewTitleContext,
594
594
  when: ( ContextKeyExpr.or(( ContextKeyExpr.and(( ContextKeyExpr.equals("view", viewDescriptor.id)), ( ContextKeyExpr.equals(`${viewDescriptor.id}.defaultViewLocation`, false)))))),
@@ -453,7 +453,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
453
453
  }
454
454
  const saveCancellation = ( new CancellationTokenSource());
455
455
  return this.progressService.withProgress({
456
- title: ( localize(15033, "Saving '{0}'", this.name)),
456
+ title: ( localize(15223, "Saving '{0}'", this.name)),
457
457
  location: ProgressLocation.Window,
458
458
  cancellable: true,
459
459
  delay: this.isDirty() ? 3000 : 5000
@@ -512,7 +512,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
512
512
  versionId = this.versionId;
513
513
  this.inErrorMode = false;
514
514
  progress.report({
515
- message: ( localize(15034, "Writing into file..."))
515
+ message: ( localize(15224, "Writing into file..."))
516
516
  });
517
517
  this.trace(`doSave(${versionId}) - before write()`);
518
518
  const lastResolvedFileStat = assertReturnsDefined(this.lastResolvedFileStat);
@@ -608,13 +608,13 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
608
608
  let message;
609
609
  if (fileOperationError.fileOperationResult === FileOperationResult.FILE_MODIFIED_SINCE) {
610
610
  message = ( localize(
611
- 15035,
611
+ 15225,
612
612
  "Failed to save '{0}': The content of the file is newer. Do you want to overwrite the file with your changes?",
613
613
  this.name
614
614
  ));
615
615
  primaryActions.push(toAction({
616
616
  id: "fileWorkingCopy.overwrite",
617
- label: ( localize(15036, "Overwrite")),
617
+ label: ( localize(15226, "Overwrite")),
618
618
  run: () => this.save({
619
619
  ...options,
620
620
  ignoreModifiedSince: true,
@@ -623,7 +623,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
623
623
  }));
624
624
  primaryActions.push(toAction({
625
625
  id: "fileWorkingCopy.revert",
626
- label: ( localize(15037, "Revert")),
626
+ label: ( localize(15227, "Revert")),
627
627
  run: () => this.revert()
628
628
  }));
629
629
  }
@@ -638,7 +638,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
638
638
  if (canSaveElevated && (isPermissionDenied || triedToUnlock)) {
639
639
  primaryActions.push(toAction({
640
640
  id: "fileWorkingCopy.saveElevated",
641
- label: triedToUnlock ? isWindows ? ( localize(15038, "Overwrite as Admin...")) : ( localize(15039, "Overwrite as Sudo...")) : isWindows ? ( localize(15040, "Retry as Admin...")) : ( localize(15041, "Retry as Sudo...")),
641
+ label: triedToUnlock ? isWindows ? ( localize(15228, "Overwrite as Admin...")) : ( localize(15229, "Overwrite as Sudo...")) : isWindows ? ( localize(15230, "Retry as Admin...")) : ( localize(15231, "Retry as Sudo...")),
642
642
  run: () => {
643
643
  this.save({
644
644
  ...options,
@@ -652,7 +652,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
652
652
  else if (isWriteLocked) {
653
653
  primaryActions.push(toAction({
654
654
  id: "fileWorkingCopy.unlock",
655
- label: ( localize(15036, "Overwrite")),
655
+ label: ( localize(15226, "Overwrite")),
656
656
  run: () => this.save({
657
657
  ...options,
658
658
  writeUnlock: true,
@@ -663,7 +663,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
663
663
  else {
664
664
  primaryActions.push(toAction({
665
665
  id: "fileWorkingCopy.retry",
666
- label: ( localize(15042, "Retry")),
666
+ label: ( localize(15232, "Retry")),
667
667
  run: () => this.save({
668
668
  ...options,
669
669
  reason: SaveReason.EXPLICIT
@@ -672,7 +672,7 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
672
672
  }
673
673
  primaryActions.push(toAction({
674
674
  id: "fileWorkingCopy.saveAs",
675
- label: ( localize(15043, "Save As...")),
675
+ label: ( localize(15233, "Save As...")),
676
676
  run: async () => {
677
677
  const editor = this.workingCopyEditorService.findEditor(this);
678
678
  if (editor) {
@@ -688,40 +688,40 @@ let StoredFileWorkingCopy = class StoredFileWorkingCopy extends ResourceWorkingC
688
688
  }));
689
689
  primaryActions.push(toAction({
690
690
  id: "fileWorkingCopy.revert",
691
- label: ( localize(15037, "Revert")),
691
+ label: ( localize(15227, "Revert")),
692
692
  run: () => this.revert()
693
693
  }));
694
694
  if (isWriteLocked) {
695
695
  if (triedToUnlock && canSaveElevated) {
696
696
  message = isWindows ? ( localize(
697
- 15044,
697
+ 15234,
698
698
  "Failed to save '{0}': File is read-only. Select 'Overwrite as Admin' to retry as administrator.",
699
699
  this.name
700
700
  )) : ( localize(
701
- 15045,
701
+ 15235,
702
702
  "Failed to save '{0}': File is read-only. Select 'Overwrite as Sudo' to retry as superuser.",
703
703
  this.name
704
704
  ));
705
705
  } else {
706
706
  message = ( localize(
707
- 15046,
707
+ 15236,
708
708
  "Failed to save '{0}': File is read-only. Select 'Overwrite' to attempt to make it writeable.",
709
709
  this.name
710
710
  ));
711
711
  }
712
712
  } else if (canSaveElevated && isPermissionDenied) {
713
713
  message = isWindows ? ( localize(
714
- 15047,
714
+ 15237,
715
715
  "Failed to save '{0}': Insufficient permissions. Select 'Retry as Admin' to retry as administrator.",
716
716
  this.name
717
717
  )) : ( localize(
718
- 15048,
718
+ 15238,
719
719
  "Failed to save '{0}': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.",
720
720
  this.name
721
721
  ));
722
722
  } else {
723
723
  message = ( localize(
724
- 15049,
724
+ 15239,
725
725
  "Failed to save '{0}': {1}",
726
726
  this.name,
727
727
  toErrorMessage(error, false)
@@ -1,4 +1,4 @@
1
1
  import { ISingleFolderWorkspaceIdentifier, IWorkspaceIdentifier } from "../../../../platform/workspace/common/workspace.js";
2
2
  import { URI } from "../../../../base/common/uri.js";
3
- export declare function getWorkspaceIdentifier(workspaceUri: URI): IWorkspaceIdentifier;
4
- export declare function getSingleFolderWorkspaceIdentifier(folderUri: URI): ISingleFolderWorkspaceIdentifier;
3
+ export declare function getWorkspaceIdentifier(workspaceUri: URI, id?: string): IWorkspaceIdentifier;
4
+ export declare function getSingleFolderWorkspaceIdentifier(folderUri: URI, id?: string): ISingleFolderWorkspaceIdentifier;
@@ -1,15 +1,15 @@
1
1
 
2
2
  import { hash } from '../../../../base/common/hash.js';
3
3
 
4
- function getWorkspaceIdentifier(workspaceUri) {
4
+ function getWorkspaceIdentifier(workspaceUri, id) {
5
5
  return {
6
- id: getWorkspaceId(workspaceUri),
6
+ id: id ?? getWorkspaceId(workspaceUri),
7
7
  configPath: workspaceUri
8
8
  };
9
9
  }
10
- function getSingleFolderWorkspaceIdentifier(folderUri) {
10
+ function getSingleFolderWorkspaceIdentifier(folderUri, id) {
11
11
  return {
12
- id: getWorkspaceId(folderUri),
12
+ id: id ?? getWorkspaceId(folderUri),
13
13
  uri: folderUri
14
14
  };
15
15
  }
@@ -0,0 +1,126 @@
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+
6
+ // version: 6
7
+
8
+ declare module 'vscode' {
9
+
10
+ /**
11
+ * The type of hook to execute.
12
+ */
13
+ export type ChatHookType = 'SessionStart' | 'UserPromptSubmit' | 'PreToolUse' | 'PostToolUse' | 'PreCompact' | 'SubagentStart' | 'SubagentStop' | 'Stop';
14
+
15
+ /**
16
+ * A resolved hook command ready for execution.
17
+ * The command has already been resolved for the current platform.
18
+ */
19
+ export interface ChatHookCommand {
20
+ /**
21
+ * The shell command to execute, already resolved for the current platform.
22
+ */
23
+ readonly command: string;
24
+ /**
25
+ * Working directory for the command.
26
+ */
27
+ readonly cwd?: Uri;
28
+ /**
29
+ * Additional environment variables for the command.
30
+ */
31
+ readonly env?: Record<string, string>;
32
+ /**
33
+ * Maximum execution time in seconds.
34
+ */
35
+ readonly timeout?: number;
36
+ }
37
+
38
+ /**
39
+ * Collected hooks for a chat request, organized by hook type.
40
+ */
41
+ export interface ChatRequestHooks {
42
+ readonly [hookType: string]: readonly ChatHookCommand[];
43
+ }
44
+
45
+ /**
46
+ * The kind of result from executing a hook command.
47
+ * - 'success': Hook executed successfully (exit code 0)
48
+ * - 'error': Blocking error shown to model (exit code 2)
49
+ * - 'warning': Non-blocking warning shown to user only (other exit codes)
50
+ */
51
+ export type ChatHookResultKind = 'success' | 'error' | 'warning';
52
+
53
+ /**
54
+ * Result of executing a hook command.
55
+ * Contains common flow control fields and the hook's output.
56
+ */
57
+ export interface ChatHookResult {
58
+ /**
59
+ * The kind of result from executing the hook.
60
+ */
61
+ readonly resultKind: ChatHookResultKind;
62
+ /**
63
+ * If set, the agent should stop processing entirely after this hook.
64
+ * The message is shown to the user but not to the agent.
65
+ */
66
+ readonly stopReason?: string;
67
+ /**
68
+ * Warning message shown to the user.
69
+ */
70
+ readonly warningMessage?: string;
71
+ /**
72
+ * The hook's output (hook-specific fields only).
73
+ * For errors, this is the error message string.
74
+ */
75
+ readonly output: unknown;
76
+ }
77
+
78
+ export interface ChatRequest {
79
+ /**
80
+ * Resolved hook commands for this request, organized by hook type.
81
+ * The commands have already been resolved for the current platform.
82
+ * Only present when hooks are enabled.
83
+ */
84
+ readonly hooks?: ChatRequestHooks;
85
+ }
86
+
87
+ /**
88
+ * A progress part representing the execution result of a hook.
89
+ * Hooks are user-configured scripts that run at specific points during chat processing.
90
+ * If {@link stopReason} is set, the hook blocked/denied the operation.
91
+ */
92
+ export class ChatResponseHookPart {
93
+ /** The type of hook that was executed */
94
+ hookType: ChatHookType;
95
+ /** If set, the hook blocked processing. This message is shown to the user. */
96
+ stopReason?: string;
97
+ /** Warning/system message from the hook, shown to the user */
98
+ systemMessage?: string;
99
+ /** Optional metadata associated with the hook execution */
100
+ metadata?: { readonly [key: string]: unknown };
101
+
102
+ /**
103
+ * Creates a new hook progress part.
104
+ * @param hookType The type of hook that was executed
105
+ * @param stopReason Message shown when processing was stopped
106
+ * @param systemMessage Warning/system message from the hook
107
+ * @param metadata Optional metadata
108
+ */
109
+ constructor(hookType: ChatHookType, stopReason?: string, systemMessage?: string, metadata?: { readonly [key: string]: unknown });
110
+ }
111
+
112
+ export interface ExtendedChatResponseParts {
113
+ ChatResponseHookPart: ChatResponseHookPart;
114
+ }
115
+
116
+ export interface ChatResponseStream {
117
+
118
+ /**
119
+ * Push a hook execution result to this stream.
120
+ * @param hookType The type of hook that was executed
121
+ * @param stopReason If set, the hook blocked processing. This message is shown to the user.
122
+ * @param systemMessage Warning/system message from the hook
123
+ */
124
+ hookProgress(hookType: ChatHookType, stopReason?: string, systemMessage?: string): void;
125
+ }
126
+ }
@@ -346,7 +346,31 @@ declare module 'vscode' {
346
346
  constructor(uris: Uri[], callback: () => Thenable<unknown>);
347
347
  }
348
348
 
349
- export type ExtendedChatResponsePart = ChatResponsePart | ChatResponseTextEditPart | ChatResponseNotebookEditPart | ChatResponseWorkspaceEditPart | ChatResponseConfirmationPart | ChatResponseCodeCitationPart | ChatResponseReferencePart2 | ChatResponseMovePart | ChatResponseExtensionsPart | ChatResponsePullRequestPart | ChatToolInvocationPart | ChatResponseMultiDiffPart | ChatResponseThinkingProgressPart | ChatResponseExternalEditPart | ChatResponseQuestionCarouselPart;
349
+ /**
350
+ * Internal type that lists all the proposed chat response parts. This is used to generate `ExtendedChatResponsePart`
351
+ * which is the actual type used in this API. This is done so that other proposals can easily add their own response parts
352
+ * without having to modify this file.
353
+ */
354
+ export interface ExtendedChatResponseParts {
355
+ ChatResponsePart: ChatResponsePart;
356
+ ChatResponseTextEditPart: ChatResponseTextEditPart;
357
+ ChatResponseNotebookEditPart: ChatResponseNotebookEditPart;
358
+ ChatResponseWorkspaceEditPart: ChatResponseWorkspaceEditPart;
359
+ ChatResponseConfirmationPart: ChatResponseConfirmationPart;
360
+ ChatResponseCodeCitationPart: ChatResponseCodeCitationPart;
361
+ ChatResponseReferencePart2: ChatResponseReferencePart2;
362
+ ChatResponseMovePart: ChatResponseMovePart;
363
+ ChatResponseExtensionsPart: ChatResponseExtensionsPart;
364
+ ChatResponsePullRequestPart: ChatResponsePullRequestPart;
365
+ ChatToolInvocationPart: ChatToolInvocationPart;
366
+ ChatResponseMultiDiffPart: ChatResponseMultiDiffPart;
367
+ ChatResponseThinkingProgressPart: ChatResponseThinkingProgressPart;
368
+ ChatResponseExternalEditPart: ChatResponseExternalEditPart;
369
+ ChatResponseQuestionCarouselPart: ChatResponseQuestionCarouselPart;
370
+ }
371
+
372
+ export type ExtendedChatResponsePart = ExtendedChatResponseParts[keyof ExtendedChatResponseParts];
373
+
350
374
  export class ChatResponseWarningPart {
351
375
  value: MarkdownString;
352
376
  constructor(value: string | MarkdownString);
@@ -3,7 +3,7 @@
3
3
  * Licensed under the MIT License. See License.txt in the project root for license information.
4
4
  *--------------------------------------------------------------------------------------------*/
5
5
 
6
- // version: 12
6
+ // version: 13
7
7
 
8
8
  declare module 'vscode' {
9
9
 
@@ -110,6 +110,11 @@ declare module 'vscode' {
110
110
  * Display name of the subagent that is invoking this request.
111
111
  */
112
112
  readonly subAgentName?: string;
113
+
114
+ /**
115
+ * Whether any hooks are enabled for this request.
116
+ */
117
+ readonly hasHooksEnabled: boolean;
113
118
  }
114
119
 
115
120
  export enum ChatRequestEditedFileEventKind {
@@ -244,6 +249,8 @@ declare module 'vscode' {
244
249
  provideFileIgnored(uri: Uri, token: CancellationToken): ProviderResult<boolean>;
245
250
  }
246
251
 
252
+ export type PreToolUsePermissionDecision = 'allow' | 'deny' | 'ask';
253
+
247
254
  export interface LanguageModelToolInvocationOptions<T> {
248
255
  chatRequestId?: string;
249
256
  /** @deprecated Use {@link chatSessionResource} instead */
@@ -255,6 +262,16 @@ declare module 'vscode' {
255
262
  * Unique ID for the subagent invocation, used to group tool calls from the same subagent run together.
256
263
  */
257
264
  subAgentInvocationId?: string;
265
+ /**
266
+ * Pre-tool-use hook result, if the hook was already executed by the caller.
267
+ * When provided, the tools service will skip executing its own preToolUse hook
268
+ * and use this result for permission decisions and input modifications instead.
269
+ */
270
+ preToolUseResult?: {
271
+ permissionDecision?: PreToolUsePermissionDecision;
272
+ permissionDecisionReason?: string;
273
+ updatedInput?: object;
274
+ };
258
275
  }
259
276
 
260
277
  export interface LanguageModelToolInvocationPrepareOptions<T> {
@@ -267,6 +284,10 @@ declare module 'vscode' {
267
284
  chatSessionId?: string;
268
285
  chatSessionResource?: Uri;
269
286
  chatInteractionId?: string;
287
+ /**
288
+ * If set, tells the tool that it should include confirmation messages.
289
+ */
290
+ forceConfirmationReason?: string;
270
291
  }
271
292
 
272
293
  export interface PreparedToolInvocation {
@@ -339,4 +360,17 @@ declare module 'vscode' {
339
360
  }
340
361
 
341
362
  // #endregion
363
+
364
+ // #region Steering
365
+
366
+ export interface ChatContext {
367
+ /**
368
+ * Set to `true` by the editor to request the language model gracefully
369
+ * stop after its next opportunity. When set, it's likely that the editor
370
+ * will immediately follow up with a new request in the same conversation.
371
+ */
372
+ readonly yieldRequested: boolean;
373
+ }
374
+
375
+ // #endregion
342
376
  }
@@ -11,6 +11,7 @@ import "./vscode.proposed.authSession.d.ts"
11
11
  import "./vscode.proposed.authenticationChallenges.d.ts"
12
12
  import "./vscode.proposed.canonicalUriProvider.d.ts"
13
13
  import "./vscode.proposed.chatContextProvider.d.ts"
14
+ import "./vscode.proposed.chatHooks.d.ts"
14
15
  import "./vscode.proposed.chatOutputRenderer.d.ts"
15
16
  import "./vscode.proposed.chatParticipantAdditions.d.ts"
16
17
  import "./vscode.proposed.chatParticipantPrivate.d.ts"
package/workbench.js CHANGED
@@ -30,10 +30,10 @@ function resolveWorkspace(configuration) {
30
30
  workspace = configuration.workspaceProvider.workspace;
31
31
  }
32
32
  if (workspace != null && isWorkspaceToOpen(workspace)) {
33
- return getWorkspaceIdentifier$1(workspace.workspaceUri);
33
+ return getWorkspaceIdentifier$1(workspace.workspaceUri, workspace.id);
34
34
  }
35
35
  if (workspace != null && isFolderToOpen(workspace)) {
36
- return getSingleFolderWorkspaceIdentifier(workspace.folderUri);
36
+ return getSingleFolderWorkspaceIdentifier(workspace.folderUri, workspace.id);
37
37
  }
38
38
  return UNKNOWN_EMPTY_WINDOW_WORKSPACE;
39
39
  }