199
const configState = this._sessionInfo.getSessionConfigState?.(sessionId);
200
for (const item of getCopilotConfigSlashCommandItems(typed, configState)) {
202
>
insertText: item.insertText,
203
>
rangeStart,
204
>
rangeEnd,
205
>
attachment: {
206
>
type: MessageAttachmentKind.Simple,
207
>
label: item.label,
208
>
_meta: toCommandCompletionAttachmentMeta({
209
>
command: item.command,
210
>
description: item.description,
211
>
...(item.argumentHint !== undefined ? { argumentHint: item.argumentHint } : {}),
212
>
action: { applyConfig: item.applyConfig },
213
>
}),
214
>
},
215
>
});
216
>
}
217
}
218