@@ -83,12 +83,12 @@ declare module 'vscode' {
83
83
readonly kind : ChatAgentResultFeedbackKind ;
84
84
}
85
85
86
- export interface ChatAgentSlashCommand {
86
+ export interface ChatAgentSubCommand {
87
87
/**
88
88
* A short name by which this command is referred to in the UI, e.g. `fix` or
89
89
* `explain` for commands that fix an issue or explain code.
90
90
*
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.
92
92
*/
93
93
readonly name : string ;
94
94
@@ -98,39 +98,39 @@ declare module 'vscode' {
98
98
readonly description : string ;
99
99
100
100
/**
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
102
102
*/
103
103
readonly sampleRequest ?: string ;
104
104
105
105
/**
106
106
* Whether executing the command puts the
107
107
* chat into a persistent mode, where the
108
- * slash command is prepended to the chat input.
108
+ * subCommand is prepended to the chat input.
109
109
*/
110
110
readonly shouldRepopulate ?: boolean ;
111
111
112
112
/**
113
113
* Placeholder text to render in the chat input
114
- * when the slash command has been repopulated.
114
+ * when the subCommand has been repopulated.
115
115
* Has no effect if `shouldRepopulate` is `false`.
116
116
*/
117
117
// TODO@API merge this with shouldRepopulate? so that invalid state cannot be represented?
118
118
readonly followupPlaceholder ?: string ;
119
119
}
120
120
121
- export interface ChatAgentSlashCommandProvider {
121
+ export interface ChatAgentSubCommandProvider {
122
122
123
123
/**
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
125
125
* 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.
127
127
*
128
128
*
129
129
* @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
131
131
* an empty array.
132
132
*/
133
- provideSlashCommands ( token : CancellationToken ) : ProviderResult < ChatAgentSlashCommand [ ] > ;
133
+ provideSubCommands ( token : CancellationToken ) : ProviderResult < ChatAgentSubCommand [ ] > ;
134
134
}
135
135
136
136
// TODO@API This should become a progress type, and use vscode.Command
@@ -208,17 +208,17 @@ declare module 'vscode' {
208
208
} | ThemeIcon ;
209
209
210
210
/**
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 .
212
212
*/
213
- slashCommandProvider ?: ChatAgentSlashCommandProvider ;
213
+ subCommandProvider ?: ChatAgentSubCommandProvider ;
214
214
215
215
/**
216
216
* This provider will be called once after each request to retrieve suggested followup questions.
217
217
*/
218
218
followupProvider ?: FollowupProvider < TResult > ;
219
219
220
220
/**
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
222
222
*/
223
223
sampleRequest ?: string ;
224
224
@@ -240,10 +240,10 @@ declare module 'vscode' {
240
240
export interface ChatAgentRequest {
241
241
242
242
/**
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 }
244
244
* are not part of the prompt.
245
245
*
246
- * @see {@link ChatAgentRequest.slashCommand }
246
+ * @see {@link ChatAgentRequest.subCommand }
247
247
*/
248
248
prompt : string ;
249
249
@@ -253,14 +253,14 @@ declare module 'vscode' {
253
253
agentId : string ;
254
254
255
255
/**
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}.
258
258
* @deprecated this will be replaced by `subCommand`
259
259
*/
260
- slashCommand ?: ChatAgentSlashCommand ;
260
+ slashCommand ?: ChatAgentSubCommand ;
261
261
262
262
/**
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.
264
264
*/
265
265
subCommand ?: string ;
266
266
0 commit comments