Skip to content

Commit a07bb86

Browse files
committed
adding all the comments
1 parent 369585d commit a07bb86

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/vs/workbench/contrib/inlineChat/browser/inlineChatController.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export class InlineChatController implements IEditorContribution {
482482

483483
let message = Message.NONE;
484484
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');
486486
this._log('state=_makeRequest) message received', m);
487487
message = m;
488488
requestCts.cancel();
@@ -537,14 +537,12 @@ export class InlineChatController implements IEditorContribution {
537537
this._activeSession.addExchange(new SessionExchange(this._activeSession.lastInput, response));
538538

539539
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');
542541
return State.CANCEL;
543542
} else if (message & Message.PAUSE_SESSION) {
544543
return State.PAUSE;
545544
} 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');
548546
return State.ACCEPT;
549547
} else {
550548
return State.APPLY_RESPONSE;
@@ -685,25 +683,25 @@ export class InlineChatController implements IEditorContribution {
685683
assertType(this._activeSession);
686684
assertType(this._strategy);
687685
this._sessionStore.clear();
688-
console.log('after assert type');
686+
console.log('inside of State.ACCEPT, after assert type');
689687

690688
try {
691-
console.log('before strategy apply');
689+
console.log('inside of State.ACCEPT, before strategy apply');
692690
await this._strategy.apply();
693-
console.log('after strategy apply');
691+
console.log('inside of State.ACCEPT, after strategy apply');
694692
// TODO: ASK WHY DESPITE AWAIT AFTER STRATEFY NOT PRINTED BEFORE CREATE SESSION
695693
} catch (err) {
696-
console.log('when error obtained');
694+
console.log('inside of State.ACCEPT, when error obtained');
697695
this._dialogService.error(localize('err.apply', "Failed to apply changes.", toErrorMessage(err)));
698696
this._log('FAILED to apply changes');
699697
this._log(err);
700698
}
701699

702-
console.log('before release session');
700+
console.log('inside of State.ACCEPT, before release session');
703701

704702
await this._inlineChatSessionService.releaseSession(this._activeSession);
705703

706-
console.log('before state pause');
704+
console.log('inside of State.ACCEPT, before state pause');
707705
await this[State.PAUSE]();
708706
}
709707

0 commit comments

Comments
 (0)