From f695cbc4d8fe3aed734c9de6125af4a3bfb7dbff Mon Sep 17 00:00:00 2001 From: Jacob Kim Date: Wed, 9 Jul 2025 09:53:56 -0700 Subject: [PATCH] bug: fix next edit outcome not logging for jetbrains --- core/nextEdit/NextEditProvider.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/core/nextEdit/NextEditProvider.ts b/core/nextEdit/NextEditProvider.ts index 1a56817cb..0f0d6ff48 100644 --- a/core/nextEdit/NextEditProvider.ts +++ b/core/nextEdit/NextEditProvider.ts @@ -271,6 +271,14 @@ export class NextEditProvider { cursorPosition: helper.pos, ...helper.options, }; + + // When using the JetBrains extension, mark as displayed. + // This helps us not need to make additional network calls just to mark as displayed. + const ideType = (await this.ide.getIdeInfo()).ideType; + if (ideType === "jetbrains") { + this.markDisplayed(input.completionId, outcomeNext); + } + return outcomeNext; } else { return undefined; @@ -323,6 +331,14 @@ export class NextEditProvider { cursorPosition: helper.pos, ...helper.options, }; + + // When using the JetBrains extension, mark as displayed. + // This helps us not need to make additional network calls just to mark as displayed. + const ideType = (await this.ide.getIdeInfo()).ideType; + if (ideType === "jetbrains") { + this.markDisplayed(input.completionId, outcomeNext); + } + return outcomeNext; } else { return undefined;