mirror of
https://github.com/Microsoft/vscode
synced 2024-09-18 01:58:27 +00:00
Fix /clear
from suggest widget (#188959)
* Fix `/clear` from suggest widget
This commit is contained in:
parent
5b4a3822f0
commit
e7a70b7d00
|
@ -434,7 +434,7 @@ export class ChatWidget extends Disposable implements IChatWidget {
|
|||
const editorValue = this.inputPart.inputEditor.getValue();
|
||||
|
||||
// Shortcut for /clear command
|
||||
if (!query && editorValue.trim() === '/clear') {
|
||||
if (!query && editorValue.trim() === '/clear' || typeof query === 'string' && query.trim() === '/clear') {
|
||||
// Small hack, if this becomes a repeated pattern, we should have a real internal slash command provider system
|
||||
this.instantiationService.invokeFunction(clearChatSession, this);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue