mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
inline chat fixes (#203297)
* Pause state should be more relaxed and expect partial state fixes https://github.com/microsoft/vscode/issues/203173 * clear stashed session before starting a new session fixes https://github.com/microsoft/vscode-copilot/issues/3719
This commit is contained in:
parent
b27e28197e
commit
afd4f631aa
|
@ -247,6 +247,7 @@ export class InlineChatController implements IEditorContribution {
|
|||
}
|
||||
this._historyOffset = -1;
|
||||
this._historyCandidate = '';
|
||||
this._stashedSession.clear();
|
||||
this._onWillStartSession.fire();
|
||||
this._currentRun = this._nextState(State.CREATE_SESSION, options);
|
||||
await this._currentRun;
|
||||
|
@ -815,12 +816,10 @@ export class InlineChatController implements IEditorContribution {
|
|||
}
|
||||
|
||||
private async[State.PAUSE]() {
|
||||
assertType(this._session);
|
||||
assertType(this._strategy);
|
||||
|
||||
this._resetWidget();
|
||||
|
||||
this._strategy.pause?.();
|
||||
this._strategy?.pause?.();
|
||||
this._session = undefined;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue