238
*/
239
export function resolveCopilotConfigSlashCommandOnSend(command: string, rest: string): ICopilotConfigSlashCommandSendResult | undefined {
241
>
if (!descriptor) {
242
>
return undefined;
243
>
}
244
const trimmedRest = rest.trim();
245
const namedOptions = descriptor.options.filter(o => o.arg !== undefined);
246
const baseOption = descriptor.options.find(o => o.arg === undefined);
248
const match = /^(\S+)(?:\s+([\s\S]*))?$/.exec(trimmedRest);
249
const firstToken = match?.[1]?.toLowerCase();