diff --git a/extensions/vscode/src/autocomplete/completionProvider.ts b/extensions/vscode/src/autocomplete/completionProvider.ts index b81111e81..db420924c 100644 --- a/extensions/vscode/src/autocomplete/completionProvider.ts +++ b/extensions/vscode/src/autocomplete/completionProvider.ts @@ -261,18 +261,15 @@ export class ContinueCompletionProvider let outcome: AutocompleteOutcome | NextEditOutcome | undefined; - // console.log( - // "chain exists?", - // this.nextEditProvider.chainExists(), - // ", length:", - // this.nextEditProvider.getChainLength(), - // ", next regions queue:", - // this.nextEditProvider.getNextEditableRegionsInTheCurrentChainLength(), - // ); + // TODO: We can probably decide here if we want to do the jumping logic. + // If we aren't going to jump anyways, then we should be not be using the prefetch queue or the jump manager. + // It would simplify the logic quite substantially. // Determine why this method was triggered. const isJumping = this.jumpManager.isJumpInProgress(); const chainExists = this.nextEditProvider.chainExists(); + console.log("isJumping:", isJumping, "/ chainExists:", chainExists); + this.prefetchQueue.peekThreeProcessed(); if (isJumping && chainExists) { // Case 2: Jumping (chain exists, jump was taken) @@ -340,7 +337,6 @@ export class ContinueCompletionProvider if (isJumpSuggested) { // Store completion to be rendered after a jump. - // TODO: setCompletionAfterJump must have a 1-1 correspondence to the jump location. this.jumpManager.setCompletionAfterJump({ completionId: completionId, outcome,