Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 4 additions & 11 deletions core/nextEdit/NextEditLoggingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ export class NextEditLoggingService {
outcome.accepted = true;
outcome.aborted = false;
this.logNextEditOutcome(outcome);
if (outcome.requestId) {
void this.logAcceptReject(outcome.requestId, true);
}
this._outcomes.delete(completionId);
return outcome;
}
Expand All @@ -116,9 +113,6 @@ export class NextEditLoggingService {
outcome.accepted = false;
outcome.aborted = false;
this.logNextEditOutcome(outcome);
if (outcome.requestId) {
void this.logAcceptReject(outcome.requestId, false);
}
this._outcomes.delete(completionId);
return outcome;
}
Expand Down Expand Up @@ -151,9 +145,6 @@ export class NextEditLoggingService {
outcome.accepted = false;
outcome.aborted = false;
this.logNextEditOutcome(outcome);
if (outcome.requestId) {
void this.logAcceptReject(outcome.requestId, false);
}
this._logRejectionTimeouts.delete(completionId);
this._outcomes.delete(completionId);
}, COUNT_COMPLETION_REJECTED_AFTER);
Expand Down Expand Up @@ -200,7 +191,6 @@ export class NextEditLoggingService {
// If we have the full outcome, log it as aborted.
if (this._outcomes.has(completionId)) {
const outcome = this._outcomes.get(completionId)!;
outcome.accepted = false;
outcome.aborted = true;
this.logNextEditOutcome(outcome);
this._outcomes.delete(completionId);
Expand Down Expand Up @@ -255,6 +245,9 @@ export class NextEditLoggingService {
});

// const { prompt, completion, prefix, suffix, ...restOfOutcome } = outcome;
if (outcome.requestId && outcome.accepted !== undefined) {
void this.logAcceptReject(outcome.requestId, outcome.accepted);
}
void Telemetry.capture("nextEditOutcome", outcome, true);
}

Expand All @@ -268,7 +261,7 @@ export class NextEditLoggingService {
}

const controlPlaneEnv = getControlPlaneEnvSync("production");
await fetchwithRequestOptions(
const resp = await fetchwithRequestOptions(
new URL("model-proxy/v1/feedback", controlPlaneEnv.CONTROL_PLANE_URL),
{
method: "POST",
Expand Down
2 changes: 1 addition & 1 deletion core/nextEdit/NextEditPrefetchQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class PrefetchQueue {
const count = Math.min(3, this.processedQueue.length);
const firstThree = this.processedQueue.slice(0, count);
firstThree.forEach((item, index) => {
console.log(
console.debug(
`Item ${index + 1}: ${item.location.range.start.line} to ${item.location.range.end.line}`,
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class GhostTextAcceptanceTracker {
);

if (wasGhostTextAccepted) {
console.log(
console.debug(
"GhostTextAcceptanceTracker: ghost text was accepted, preserving chain",
);
return true;
Expand Down
Loading