Skip to content

Commit 8cd1d86

Browse files
authored
Fix slash comands in /help that don't have sample queries (microsoft#227027)
Fix microsoft/vscode-copilot#7742
1 parent 40a85d8 commit 8cd1d86

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vs/workbench/contrib/chat/common/chatServiceImpl.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,8 @@ export class ChatService extends Disposable implements IChatService {
481481
}
482482

483483
async sendRequest(sessionId: string, request: string, options?: IChatSendRequestOptions): Promise<IChatSendRequestData | undefined> {
484-
485484
this.trace('sendRequest', `sessionId: ${sessionId}, message: ${request.substring(0, 20)}${request.length > 20 ? '[...]' : ''}}`);
486-
if (!request.trim()) {
485+
if (!request.trim() && !options?.slashCommand && !options?.agentId) {
487486
this.trace('sendRequest', 'Rejected empty message');
488487
return;
489488
}

0 commit comments

Comments
 (0)