File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,14 @@ export async function invokeRecommendation(
61
61
if ( RecommendationHandler . instance . isGenerateRecommendationInProgress ) {
62
62
return
63
63
}
64
+ RecommendationHandler . instance . checkAndResetCancellationTokens ( )
64
65
vsCodeState . isIntelliSenseActive = false
65
66
RecommendationHandler . instance . isGenerateRecommendationInProgress = true
66
67
try {
67
- let response : GetRecommendationsResponse
68
+ let response : GetRecommendationsResponse = {
69
+ result : 'Failed' ,
70
+ errorMessage : undefined ,
71
+ }
68
72
if ( isCloud9 ( 'classic' ) || isIamConnection ( AuthUtil . instance . conn ) ) {
69
73
response = await RecommendationHandler . instance . getRecommendations (
70
74
client ,
Original file line number Diff line number Diff line change @@ -157,10 +157,14 @@ export class KeyStrokeHandler {
157
157
if ( RecommendationHandler . instance . isGenerateRecommendationInProgress ) {
158
158
return
159
159
}
160
+ RecommendationHandler . instance . checkAndResetCancellationTokens ( )
160
161
vsCodeState . isIntelliSenseActive = false
161
162
RecommendationHandler . instance . isGenerateRecommendationInProgress = true
162
163
try {
163
- let response : GetRecommendationsResponse
164
+ let response : GetRecommendationsResponse = {
165
+ result : 'Failed' ,
166
+ errorMessage : undefined ,
167
+ }
164
168
if ( isCloud9 ( 'classic' ) || isIamConnection ( AuthUtil . instance . conn ) ) {
165
169
response = await RecommendationHandler . instance . getRecommendations (
166
170
client ,
You can’t perform that action at this time.
0 commit comments