feat: peek for better logs
This commit is contained in:
parent
d5860296fb
commit
e119ae1b6a
1 changed files with 5 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue