Skip to content

Commit ead5a7c

Browse files
authored
1 parent e734146 commit ead5a7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vs/workbench/contrib/chat/browser/chatWidget.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,6 +1753,9 @@ export class ChatWidget extends Disposable implements IChatWidget {
17531753
} else {
17541754
// For user input, update the editor value if needed
17551755
const currentValue = this.getInput();
1756+
if (!currentValue.length) {
1757+
return;
1758+
}
17561759
if (!currentValue.startsWith(this._codingAgentPrefix)) {
17571760
const newValue = this._codingAgentPrefix + this.removeExistingAgentPrefix(currentValue);
17581761
this.input.inputEditor.setValue(newValue);

0 commit comments

Comments
 (0)