Fix rendering of auto-executing slash commands in requests (#189068)

This commit is contained in:
Joyce Er 2023-07-27 09:12:22 -07:00 committed by GitHub
parent df16c16211
commit 831ac957a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,7 +234,7 @@ class SlashCommandCompletions extends Disposable {
range: new Range(1, 1, 1, 1),
sortText: c.sortText ?? c.command,
kind: CompletionItemKind.Text, // The icons are disabled here anyway,
command: c.executeImmediately ? { id: SubmitAction.ID, title: withSlash, arguments: [{ widget, inputValue: withSlash }] } : undefined,
command: c.executeImmediately ? { id: SubmitAction.ID, title: withSlash, arguments: [{ widget, inputValue: `${withSlash} ` }] } : undefined,
};
})
};