We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f56978d commit 3dba25eCopy full SHA for 3dba25e
src/codewhisperer/service/recommendationHandler.ts
@@ -101,11 +101,7 @@ export class RecommendationHandler {
101
}
102
103
isValidResponse(): boolean {
104
- return (
105
- session.recommendations !== undefined &&
106
- session.recommendations.length > 0 &&
107
- session.recommendations.filter(option => option.content.length > 0).length > 0
108
- )
+ return session.recommendations.some(r => r.content.trim() !== '')
109
110
111
async getServerResponse(
0 commit comments