File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/vs/workbench/contrib/inlineChat/browser Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -247,6 +247,7 @@ export class InlineChatController implements IEditorContribution {
247
247
}
248
248
this . _historyOffset = - 1 ;
249
249
this . _historyCandidate = '' ;
250
+ this . _stashedSession . clear ( ) ;
250
251
this . _onWillStartSession . fire ( ) ;
251
252
this . _currentRun = this . _nextState ( State . CREATE_SESSION , options ) ;
252
253
await this . _currentRun ;
@@ -815,12 +816,10 @@ export class InlineChatController implements IEditorContribution {
815
816
}
816
817
817
818
private async [ State . PAUSE ] ( ) {
818
- assertType ( this . _session ) ;
819
- assertType ( this . _strategy ) ;
820
819
821
820
this . _resetWidget ( ) ;
822
821
823
- this . _strategy . pause ?.( ) ;
822
+ this . _strategy ? .pause ?.( ) ;
824
823
this . _session = undefined ;
825
824
}
826
825
You can’t perform that action at this time.
0 commit comments