Skip to content

Commit 99601f4

Browse files
committed
dev nep only vscode client
1 parent 2accbd5 commit 99601f4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/amazonq/src/app/inline/recommendationService.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ export class RecommendationService {
139139
* Edits leverage partialResultToken to achieve EditStreak such that clients can pull all continuous suggestions generated by the model within 1 EOS block.
140140
*/
141141
if (!isTriggerByDeletion && !request.partialResultToken && !EditSuggestionState.isEditSuggestionActive()) {
142-
const completionPromise: Promise<InlineCompletionListWithReferences> = languageClient.sendRequest(
143-
inlineCompletionWithReferencesRequestType.method,
144-
request,
145-
token
146-
)
147-
ps.push(completionPromise)
142+
// const completionPromise: Promise<InlineCompletionListWithReferences> = languageClient.sendRequest(
143+
// inlineCompletionWithReferencesRequestType.method,
144+
// request,
145+
// token
146+
// )
147+
// ps.push(completionPromise)
148148
}
149149

150150
/**
@@ -249,9 +249,9 @@ export class RecommendationService {
249249
getLogger().info(
250250
'Suggestion type is COMPLETIONS. Start fetching for more items if partialResultToken exists.'
251251
)
252-
this.processRemainingRequests(languageClient, request, result, token).catch((error) => {
253-
languageClient.warn(`Error when getting suggestions: ${error}`)
254-
})
252+
// this.processRemainingRequests(languageClient, request, result, token).catch((error) => {
253+
// languageClient.warn(`Error when getting suggestions: ${error}`)
254+
// })
255255
} else {
256256
// Skip fetching for more items if the suggesion is EDITS. If it is EDITS suggestion, only fetching for more
257257
// suggestions when the user start to accept a suggesion.
@@ -283,7 +283,7 @@ export class RecommendationService {
283283
}
284284
}
285285

286-
private async processRemainingRequests(
286+
async processRemainingRequests(
287287
languageClient: LanguageClient,
288288
initialRequest: InlineCompletionWithReferencesParams,
289289
firstResult: InlineCompletionListWithReferences,

0 commit comments

Comments
 (0)