@@ -635,6 +635,8 @@ export class RecommendationHandler {
635635 }
636636
637637 async showRecommendation ( indexShift : number , noSuggestionVisible : boolean = false ) {
638+ // eslint-disable-next-line aws-toolkits/no-console-log
639+ console . log ( 'showing recommendation' )
638640 const session = CodeWhispererSessionState . instance . getSession ( )
639641
640642 if ( ! indexShift && session . recommendations . length ) {
@@ -740,15 +742,28 @@ export class RecommendationHandler {
740742 }
741743
742744 async tryShowRecommendation ( ) {
745+ // eslint-disable-next-line aws-toolkits/no-console-log
746+ console . log ( 'trying to show recommendation' )
743747 const session = CodeWhispererSessionState . instance . getSession ( )
744748 const editor = vscode . window . activeTextEditor
749+ // eslint-disable-next-line aws-toolkits/no-console-log
750+ console . log ( 'editor is: %O' , editor )
745751 if ( editor === undefined ) {
746752 return
747753 }
754+ // eslint-disable-next-line aws-toolkits/no-console-log
755+ console . log ( 'isSuggestionVisible: %O' , this . isSuggestionVisible ( ) )
748756 if ( this . isSuggestionVisible ( ) ) {
749757 // do not force refresh the tooltip to avoid suggestion "flashing"
750758 return
751759 }
760+
761+ // 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 ) )
765+ // eslint-disable-next-line aws-toolkits/no-console-log
766+ console . log ( editor . document . uri . fsPath !== this . documentUri ?. fsPath )
752767 if (
753768 editor . selection . active . isBefore ( session . startPos ) ||
754769 editor . document . uri . fsPath !== this . documentUri ?. fsPath
0 commit comments