feat: peek for better logs

This commit is contained in:
Jacob Kim 2025-08-12 13:43:01 -07:00
parent d5860296fb
commit e119ae1b6a

View file

@ -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,