Greyscreen fix (#3474)

Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
This commit is contained in:
xyOz 2025-05-13 03:39:07 +01:00 committed by hannesrudolph
parent 4c68b14c2f
commit bd66b4cd77
2 changed files with 4 additions and 0 deletions

View file

@ -61,6 +61,7 @@ jest.mock("vscode", () => {
const mockTabGroup = { tabs: [mockTab] }
return {
TabInputTextDiff: jest.fn(),
CodeActionKind: {
QuickFix: { value: "quickfix" },
RefactorRewrite: { value: "refactor.rewrite" },
@ -72,6 +73,7 @@ jest.mock("vscode", () => {
visibleTextEditors: [mockTextEditor],
tabGroups: {
all: [mockTabGroup],
close: jest.fn(),
onDidChangeTabs: jest.fn(() => ({ dispose: jest.fn() })),
},
showErrorMessage: jest.fn(),

View file

@ -353,6 +353,8 @@ export class DiffViewProvider {
// close editor if open?
async reset() {
// Ensure any diff views opened by this provider are closed to release memory
await this.closeAllDiffViews();
this.editType = undefined
this.isEditing = false
this.originalContent = undefined