mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-21 07:39:51 +01:00
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:
committed by
GitHub
parent
27b7e6fc83
commit
985add451e
+1
-1
@@ -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,
|
||||
|
||||
-2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user