log quickEdit
This commit is contained in:
parent
95a42720c0
commit
7204ea2bd0
4 changed files with 12 additions and 4 deletions
1
extensions/vscode/package-lock.json
generated
1
extensions/vscode/package-lock.json
generated
|
|
@ -116,6 +116,7 @@
|
|||
"dotenv": "^16.4.5",
|
||||
"fastest-levenshtein": "^1.0.16",
|
||||
"follow-redirects": "^1.15.5",
|
||||
"google-auth-library": "^9.14.2",
|
||||
"handlebars": "^4.7.8",
|
||||
"http-proxy-agent": "^7.0.1",
|
||||
"https-proxy-agent": "^7.0.3",
|
||||
|
|
|
|||
|
|
@ -344,6 +344,7 @@ export class VerticalDiffHandler implements vscode.Disposable {
|
|||
}
|
||||
|
||||
async run(diffLineGenerator: AsyncGenerator<DiffLine>) {
|
||||
let diffLines = []
|
||||
try {
|
||||
// As an indicator of loading
|
||||
this.updateIndexLineDecorations();
|
||||
|
|
@ -352,6 +353,7 @@ export class VerticalDiffHandler implements vscode.Disposable {
|
|||
if (this.isCancelled) {
|
||||
return;
|
||||
}
|
||||
diffLines.push(diffLine)
|
||||
await this.queueDiffLine(diffLine);
|
||||
}
|
||||
|
||||
|
|
@ -374,6 +376,7 @@ export class VerticalDiffHandler implements vscode.Disposable {
|
|||
this.clearForFilepath(this.filepath, false);
|
||||
throw e;
|
||||
}
|
||||
return diffLines
|
||||
}
|
||||
|
||||
async acceptRejectBlock(
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ export class VerticalDiffManager {
|
|||
|
||||
private userChangeListener: vscode.Disposable | undefined;
|
||||
|
||||
logDiffs: DiffLine[] | undefined;
|
||||
|
||||
constructor(
|
||||
private readonly configHandler: ConfigHandler,
|
||||
private readonly webviewProtocol: VsCodeWebviewProtocol,
|
||||
|
|
@ -237,8 +239,8 @@ export class VerticalDiffManager {
|
|||
);
|
||||
|
||||
try {
|
||||
await diffHandler.run(diffStream);
|
||||
|
||||
this.logDiffs = await diffHandler.run(diffStream);
|
||||
|
||||
// enable a listener for user edits to file while diff is open
|
||||
this.enableDocumentChangeListener();
|
||||
} catch (e) {
|
||||
|
|
@ -410,7 +412,7 @@ export class VerticalDiffManager {
|
|||
);
|
||||
|
||||
try {
|
||||
await diffHandler.run(
|
||||
this.logDiffs = await diffHandler.run(
|
||||
streamDiffLines(
|
||||
prefix,
|
||||
rangeContent,
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import { ConfigHandler } from "core/config/ConfigHandler";
|
|||
import { getModelByRole } from "core/config/util";
|
||||
// @ts-ignore
|
||||
import MiniSearch from "minisearch";
|
||||
import { logDevData } from "core/util/devdata";
|
||||
|
||||
/**
|
||||
* Used to track what action to take after a user interacts
|
||||
|
|
@ -236,7 +237,8 @@ export class QuickEdit {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
let model = await this.getCurModelTitle();
|
||||
logDevData('quickEdit', {prompt, path, label, diffs: this.verticalDiffManager.logDiffs, model});
|
||||
quickPick.dispose();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue