149
150
hasCommand(id: string, sessionType: string): boolean {
152
>
}
153
154
async executeCommand(id: string, prompt: string, progress: IProgress<IChatProgress>, history: IChatMessage[], location: ChatAgentLocation, sessionResource: URI, token: CancellationToken, options?: IChatSendRequestOptions): Promise<{ followUp: IChatFollowup[] } | void> {
156
>
if (!data) {
157
throw new Error(`No command with id ${id} NOT registered`);
158
}
160
await this._extensionService.activateByEvent(`onSlash:${id}`);
161
}
163
throw new Error(`No command with id ${id} NOT resolved`);
164
}
166
>
return await data.command(prompt, progress, history, location, sessionResource, token, options);
167
>
}
168
}