@@ -83,12 +83,12 @@ declare module 'vscode' {
8383 readonly kind : ChatAgentResultFeedbackKind ;
8484 }
8585
86- export interface ChatAgentSlashCommand {
86+ export interface ChatAgentSubCommand {
8787 /**
8888 * A short name by which this command is referred to in the UI, e.g. `fix` or
8989 * `explain` for commands that fix an issue or explain code.
9090 *
91- * **Note**: The name should be unique among the slash commands provided by this agent.
91+ * **Note**: The name should be unique among the subCommands provided by this agent.
9292 */
9393 readonly name : string ;
9494
@@ -98,39 +98,39 @@ declare module 'vscode' {
9898 readonly description : string ;
9999
100100 /**
101- * When the user clicks this slash command in `/help`, this text will be submitted to this slash command
101+ * When the user clicks this subCommand in `/help`, this text will be submitted to this subCommand
102102 */
103103 readonly sampleRequest ?: string ;
104104
105105 /**
106106 * Whether executing the command puts the
107107 * chat into a persistent mode, where the
108- * slash command is prepended to the chat input.
108+ * subCommand is prepended to the chat input.
109109 */
110110 readonly shouldRepopulate ?: boolean ;
111111
112112 /**
113113 * Placeholder text to render in the chat input
114- * when the slash command has been repopulated.
114+ * when the subCommand has been repopulated.
115115 * Has no effect if `shouldRepopulate` is `false`.
116116 */
117117 // TODO@API merge this with shouldRepopulate? so that invalid state cannot be represented?
118118 readonly followupPlaceholder ?: string ;
119119 }
120120
121- export interface ChatAgentSlashCommandProvider {
121+ export interface ChatAgentSubCommandProvider {
122122
123123 /**
124- * Returns a list of slash commands that its agent is capable of handling. A slash command
124+ * Returns a list of subCommands that its agent is capable of handling. A subCommand
125125 * can be selected by the user and will then be passed to the {@link ChatAgentHandler handler}
126- * via the {@link ChatAgentRequest.slashCommand slashCommand } property.
126+ * via the {@link ChatAgentRequest.subCommand subCommand } property.
127127 *
128128 *
129129 * @param token A cancellation token.
130- * @returns A list of slash commands . The lack of a result can be signaled by returning `undefined`, `null`, or
130+ * @returns A list of subCommands . The lack of a result can be signaled by returning `undefined`, `null`, or
131131 * an empty array.
132132 */
133- provideSlashCommands ( token : CancellationToken ) : ProviderResult < ChatAgentSlashCommand [ ] > ;
133+ provideSubCommands ( token : CancellationToken ) : ProviderResult < ChatAgentSubCommand [ ] > ;
134134 }
135135
136136 // TODO@API This should become a progress type, and use vscode.Command
@@ -208,17 +208,17 @@ declare module 'vscode' {
208208 } | ThemeIcon ;
209209
210210 /**
211- * This provider will be called to retrieve the agent's slash commands .
211+ * This provider will be called to retrieve the agent's subCommands .
212212 */
213- slashCommandProvider ?: ChatAgentSlashCommandProvider ;
213+ subCommandProvider ?: ChatAgentSubCommandProvider ;
214214
215215 /**
216216 * This provider will be called once after each request to retrieve suggested followup questions.
217217 */
218218 followupProvider ?: FollowupProvider < TResult > ;
219219
220220 /**
221- * When the user clicks this agent in `/help`, this text will be submitted to this slash command
221+ * When the user clicks this agent in `/help`, this text will be submitted to this subCommand
222222 */
223223 sampleRequest ?: string ;
224224
@@ -240,10 +240,10 @@ declare module 'vscode' {
240240 export interface ChatAgentRequest {
241241
242242 /**
243- * The prompt entered by the user. The {@link ChatAgent2.name name} of the agent or the {@link ChatAgentSlashCommand .name slash command }
243+ * The prompt entered by the user. The {@link ChatAgent2.name name} of the agent or the {@link ChatAgentSubCommand .name subCommand }
244244 * are not part of the prompt.
245245 *
246- * @see {@link ChatAgentRequest.slashCommand }
246+ * @see {@link ChatAgentRequest.subCommand }
247247 */
248248 prompt : string ;
249249
@@ -253,14 +253,14 @@ declare module 'vscode' {
253253 agentId : string ;
254254
255255 /**
256- * The {@link ChatAgentSlashCommand slash command } that was selected for this request. It is guaranteed that the passed slash
257- * command is an instance that was previously returned from the {@link ChatAgentSlashCommandProvider.provideSlashCommands slash command provider}.
256+ * The {@link ChatAgentSubCommand subCommand } that was selected for this request. It is guaranteed that the passed subCommand
257+ * is an instance that was previously returned from the {@link ChatAgentSubCommandProvider.provideSubCommands subCommand provider}.
258258 * @deprecated this will be replaced by `subCommand`
259259 */
260- slashCommand ?: ChatAgentSlashCommand ;
260+ slashCommand ?: ChatAgentSubCommand ;
261261
262262 /**
263- * The name of the {@link ChatAgentSlashCommand slash command } that was selected for this request.
263+ * The name of the {@link ChatAgentSubCommand subCommand } that was selected for this request.
264264 */
265265 subCommand ?: string ;
266266
0 commit comments