@@ -482,7 +482,7 @@ export class InlineChatController implements IEditorContribution {
482
482
483
483
let message = Message . NONE ;
484
484
const msgListener = Event . once ( this . _messages . event ) ( m => {
485
- console . log ( 'inside of msgListener of MAKE REQUEST' ) ;
485
+ console . log ( 'inside of MAKE_REQUEST, inside of msgListener of MAKE REQUEST' ) ;
486
486
this . _log ( 'state=_makeRequest) message received' , m ) ;
487
487
message = m ;
488
488
requestCts . cancel ( ) ;
@@ -537,14 +537,12 @@ export class InlineChatController implements IEditorContribution {
537
537
this . _activeSession . addExchange ( new SessionExchange ( this . _activeSession . lastInput , response ) ) ;
538
538
539
539
if ( message & Message . CANCEL_SESSION ) {
540
- console . log ( 'inside of make request' ) ;
541
- console . log ( 'cancelling the session' ) ;
540
+ console . log ( 'inside of MAKE_REQUEST, cancelling the session' ) ;
542
541
return State . CANCEL ;
543
542
} else if ( message & Message . PAUSE_SESSION ) {
544
543
return State . PAUSE ;
545
544
} else if ( message & Message . ACCEPT_SESSION ) {
546
- console . log ( 'inside of make request' ) ;
547
- console . log ( 'accepting' ) ;
545
+ console . log ( 'inside of MAKE_REQUEST, accepting' ) ;
548
546
return State . ACCEPT ;
549
547
} else {
550
548
return State . APPLY_RESPONSE ;
@@ -685,25 +683,25 @@ export class InlineChatController implements IEditorContribution {
685
683
assertType ( this . _activeSession ) ;
686
684
assertType ( this . _strategy ) ;
687
685
this . _sessionStore . clear ( ) ;
688
- console . log ( 'after assert type' ) ;
686
+ console . log ( 'inside of State.ACCEPT, after assert type' ) ;
689
687
690
688
try {
691
- console . log ( 'before strategy apply' ) ;
689
+ console . log ( 'inside of State.ACCEPT, before strategy apply' ) ;
692
690
await this . _strategy . apply ( ) ;
693
- console . log ( 'after strategy apply' ) ;
691
+ console . log ( 'inside of State.ACCEPT, after strategy apply' ) ;
694
692
// TODO: ASK WHY DESPITE AWAIT AFTER STRATEFY NOT PRINTED BEFORE CREATE SESSION
695
693
} catch ( err ) {
696
- console . log ( 'when error obtained' ) ;
694
+ console . log ( 'inside of State.ACCEPT, when error obtained' ) ;
697
695
this . _dialogService . error ( localize ( 'err.apply' , "Failed to apply changes." , toErrorMessage ( err ) ) ) ;
698
696
this . _log ( 'FAILED to apply changes' ) ;
699
697
this . _log ( err ) ;
700
698
}
701
699
702
- console . log ( 'before release session' ) ;
700
+ console . log ( 'inside of State.ACCEPT, before release session' ) ;
703
701
704
702
await this . _inlineChatSessionService . releaseSession ( this . _activeSession ) ;
705
703
706
- console . log ( 'before state pause' ) ;
704
+ console . log ( 'inside of State.ACCEPT, before state pause' ) ;
707
705
await this [ State . PAUSE ] ( ) ;
708
706
}
709
707
0 commit comments