File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ export async function invokeRecommendation(
54
54
vsCodeState . isIntelliSenseActive = false
55
55
RecommendationHandler . instance . isGenerateRecommendationInProgress = true
56
56
try {
57
+ RecommendationHandler . instance . reportUserDecisionOfCurrentRecommendation ( editor , - 1 )
57
58
RecommendationHandler . instance . clearRecommendations ( )
58
59
await RecommendationHandler . instance . getRecommendations (
59
60
client ,
Original file line number Diff line number Diff line change @@ -322,6 +322,7 @@ export class InlineCompletion {
322
322
config : ConfigurationEntry ,
323
323
autoTriggerType ?: telemetry . CodewhispererAutomatedTriggerType
324
324
) {
325
+ RecommendationHandler . instance . reportUserDecisionOfCurrentRecommendation ( editor , - 1 )
325
326
RecommendationHandler . instance . clearRecommendations ( )
326
327
this . setCodeWhispererStatusBarLoading ( )
327
328
const isManualTrigger = triggerType === 'OnDemand'
@@ -347,6 +348,7 @@ export class InlineCompletion {
347
348
)
348
349
this . setCompletionItems ( editor )
349
350
if ( RecommendationHandler . instance . checkAndResetCancellationTokens ( ) ) {
351
+ RecommendationHandler . instance . reportUserDecisionOfCurrentRecommendation ( editor , - 1 )
350
352
RecommendationHandler . instance . clearRecommendations ( )
351
353
break
352
354
}
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ export class KeyStrokeHandler {
178
178
vsCodeState . isIntelliSenseActive = false
179
179
RecommendationHandler . instance . isGenerateRecommendationInProgress = true
180
180
try {
181
+ RecommendationHandler . instance . reportUserDecisionOfCurrentRecommendation ( editor , - 1 )
181
182
RecommendationHandler . instance . clearRecommendations ( )
182
183
await RecommendationHandler . instance . getRecommendations (
183
184
client ,
You can’t perform that action at this time.
0 commit comments