ghost: log tree: do not double log proposed completion (#2603)

* ghost: log tree: do not double log proposed completion

* Update src/extension/completions-core/vscode-node/extension/src/ghostText/ghostText.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/lib/node/chatLibMain.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ulugbek Abdullaev
2025-12-16 15:30:09 +01:00
committed by GitHub
parent 27b7e6fc83
commit 985add451e
3 changed files with 2 additions and 4 deletions
@@ -31,7 +31,7 @@ const postInsertCmdName = '_github.copilot.ghostTextPostInsert2';
export class GhostTextProvider implements InlineCompletionItemProvider {
private ghostText: GhostText;
private readonly ghostText: GhostText;
constructor(
@IInstantiationService private readonly instantiationService: IInstantiationService,
@@ -206,8 +206,6 @@ export class CopilotInlineCompletionItemProvider extends Disposable implements I
const patch = lineEdit.humanReadablePatch(text.getLines());
logContext.addLog(`Provided inline completion item:`);
logContext.addCodeblockToLog(patch);
logContext.setResult(patch);
}
}
@@ -636,7 +636,7 @@ export function createInlineCompletionsProvider(options: IInlineCompletionsProvi
class InlineCompletionsProvider extends Disposable implements IInlineCompletionsProvider {
private ghostText: GhostText;
private readonly ghostText: GhostText;
constructor(
@IInstantiationService private _insta: IInstantiationService,