mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
fix: don't assert chat view model (#232513)
This commit is contained in:
@@ -472,7 +472,10 @@ export class ChatWidget extends Disposable implements IChatWidget {
|
||||
}
|
||||
|
||||
refreshParsedInput() {
|
||||
this.parsedChatRequest = this.instantiationService.createInstance(ChatRequestParser).parseChatRequest(this.viewModel!.sessionId, this.getInput(), this.location, { selectedAgent: this._lastSelectedAgent });
|
||||
if (!this.viewModel) {
|
||||
return;
|
||||
}
|
||||
this.parsedChatRequest = this.instantiationService.createInstance(ChatRequestParser).parseChatRequest(this.viewModel.sessionId, this.getInput(), this.location, { selectedAgent: this._lastSelectedAgent });
|
||||
this._onDidChangeParsedInput.fire();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user