Skip to content

Commit e119ae1

Browse files
committed
feat: peek for better logs
1 parent d586029 commit e119ae1

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

extensions/vscode/src/autocomplete/completionProvider.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -261,18 +261,15 @@ export class ContinueCompletionProvider
261261

262262
let outcome: AutocompleteOutcome | NextEditOutcome | undefined;
263263

264-
// console.log(
265-
// "chain exists?",
266-
// this.nextEditProvider.chainExists(),
267-
// ", length:",
268-
// this.nextEditProvider.getChainLength(),
269-
// ", next regions queue:",
270-
// this.nextEditProvider.getNextEditableRegionsInTheCurrentChainLength(),
271-
// );
264+
// TODO: We can probably decide here if we want to do the jumping logic.
265+
// If we aren't going to jump anyways, then we should be not be using the prefetch queue or the jump manager.
266+
// It would simplify the logic quite substantially.
272267

273268
// Determine why this method was triggered.
274269
const isJumping = this.jumpManager.isJumpInProgress();
275270
const chainExists = this.nextEditProvider.chainExists();
271+
console.log("isJumping:", isJumping, "/ chainExists:", chainExists);
272+
this.prefetchQueue.peekThreeProcessed();
276273

277274
if (isJumping && chainExists) {
278275
// Case 2: Jumping (chain exists, jump was taken)
@@ -340,7 +337,6 @@ export class ContinueCompletionProvider
340337

341338
if (isJumpSuggested) {
342339
// Store completion to be rendered after a jump.
343-
// TODO: setCompletionAfterJump must have a 1-1 correspondence to the jump location.
344340
this.jumpManager.setCompletionAfterJump({
345341
completionId: completionId,
346342
outcome,

0 commit comments

Comments
 (0)