Skip to content

Commit 70f44b4

Browse files
author
Calvinn Ng
committed
log completion outcome
1 parent 9264476 commit 70f44b4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

extensions/vscode/src/autocomplete/completionProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export class ContinueCompletionProvider
251251
completionRange,
252252
{
253253
title: "Log Autocomplete Outcome",
254-
command: "continue.logAutocompleteOutcome",
254+
command: "ahrefs-continue.logAutocompleteOutcome",
255255
arguments: [input.completionId, this.completionProvider],
256256
},
257257
);

extensions/vscode/src/commands.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,12 @@ const commandsMap: (
327327
sidebar.webviewProtocol?.request("focusContinueInput", undefined);
328328
await addHighlightedCodeToContext(false, sidebar.webviewProtocol);
329329
},
330+
"ahrefs-continue.logAutocompleteOutcome": (
331+
completionId: string,
332+
completionProvider: CompletionProvider,
333+
) => {
334+
completionProvider.accept(completionId);
335+
},
330336
"ahrefs-continue.focusContinueInputWithoutClear": async () => {
331337
if (!getFullScreenTab()) {
332338
vscode.commands.executeCommand("ahrefs-continue.ahrefs-continueGUIView.focus");

0 commit comments

Comments
 (0)