@@ -639,10 +639,22 @@ export class RecommendationHandler {
639639 console . log ( 'showing recommendation' )
640640 const session = CodeWhispererSessionState . instance . getSession ( )
641641
642+ // eslint-disable-next-line aws-toolkits/no-console-log
643+ console . log (
644+ 'index shift: %O\nrecommendations: %O\nlength: %O' ,
645+ indexShift ,
646+ session . recommendations ,
647+ session . recommendations . length
648+ )
642649 if ( ! indexShift && session . recommendations . length ) {
643650 await this . fetchNextRecommendations ( )
644651 }
645652 await lock . acquire ( updateInlineLockKey , async ( ) => {
653+ // eslint-disable-next-line aws-toolkits/no-console-log
654+ console . log ( 'aquired the lock' )
655+
656+ // eslint-disable-next-line aws-toolkits/no-console-log
657+ console . log ( 'is window focused: %O' , vscode . window . state . focused )
646658 if ( ! vscode . window . state . focused ) {
647659 this . reportDiscardedUserDecisions ( )
648660 return
@@ -747,7 +759,7 @@ export class RecommendationHandler {
747759 const session = CodeWhispererSessionState . instance . getSession ( )
748760 const editor = vscode . window . activeTextEditor
749761 // eslint-disable-next-line aws-toolkits/no-console-log
750- console . log ( 'editor is: %O' , editor )
762+ console . log ( 'editor is: %O' , editor === undefined )
751763 if ( editor === undefined ) {
752764 return
753765 }
@@ -759,11 +771,9 @@ export class RecommendationHandler {
759771 }
760772
761773 // eslint-disable-next-line aws-toolkits/no-console-log
762- console . log ( 'editor is: %O' , editor )
763- // eslint-disable-next-line aws-toolkits/no-console-log
764- console . log ( editor . selection . active . isBefore ( session . startPos ) )
774+ console . log ( 'selection is before: %O' , editor . selection . active . isBefore ( session . startPos ) )
765775 // eslint-disable-next-line aws-toolkits/no-console-log
766- console . log ( editor . document . uri . fsPath !== this . documentUri ?. fsPath )
776+ console . log ( '' , editor . document . uri . fsPath !== this . documentUri ?. fsPath )
767777 if (
768778 editor . selection . active . isBefore ( session . startPos ) ||
769779 editor . document . uri . fsPath !== this . documentUri ?. fsPath
0 commit comments