bug: fix next edit outcome not logging for jetbrains

This commit is contained in:
Jacob Kim 2025-07-09 09:53:56 -07:00
parent daf69ae504
commit f695cbc4d8

View file

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