README + reduce required VS Code version for companion extension (#5719)

This commit is contained in:
Shreya Keshive
2025-08-07 17:25:06 -04:00
committed by GitHub
parent 4d4eacfc40
commit f1663d9615
5 changed files with 20 additions and 20 deletions

View File

@@ -56,7 +56,7 @@ export class DiffManager {
private diffDocuments = new Map<string, DiffInfo>();
constructor(
private readonly logger: vscode.OutputChannel,
private readonly log: (message: string) => void,
private readonly diffContentProvider: DiffContentProvider,
) {}
@@ -151,9 +151,7 @@ export class DiffManager {
async acceptDiff(rightDocUri: vscode.Uri) {
const diffInfo = this.diffDocuments.get(rightDocUri.toString());
if (!diffInfo) {
this.logger.appendLine(
`No diff info found for ${rightDocUri.toString()}`,
);
this.log(`No diff info found for ${rightDocUri.toString()}`);
return;
}
@@ -179,9 +177,7 @@ export class DiffManager {
async cancelDiff(rightDocUri: vscode.Uri) {
const diffInfo = this.diffDocuments.get(rightDocUri.toString());
if (!diffInfo) {
this.logger.appendLine(
`No diff info found for ${rightDocUri.toString()}`,
);
this.log(`No diff info found for ${rightDocUri.toString()}`);
// Even if we don't have diff info, we should still close the editor.
await this.closeDiffEditor(rightDocUri);
return;