fix: allow space to accept agent subcommand completion (#200768)

This commit is contained in:
Joyce Er 2023-12-13 10:07:52 -08:00 committed by GitHub
parent 228f3ffc59
commit 9cf4ff9921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -489,6 +489,7 @@ class AgentCompletions extends Disposable {
return {
label: { label: withSlash, description: agentLabel },
filterText: `${chatSubcommandLeader}${agent.id}${c.name}`,
commitCharacters: [' '],
insertText: `${agentLabel} ${withSlash} `,
detail: `(${agentLabel}) ${c.description}`,
range: new Range(1, 1, 1, 1),