Skip to content

Commit 86a0379

Browse files
xyOz-devmrubens
andauthored
Greyscreen fix (#3474)
Co-authored-by: Matt Rubens <[email protected]>
1 parent 9ffdc78 commit 86a0379

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/core/task/__tests__/Task.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jest.mock("vscode", () => {
6161
const mockTabGroup = { tabs: [mockTab] }
6262

6363
return {
64+
TabInputTextDiff: jest.fn(),
6465
CodeActionKind: {
6566
QuickFix: { value: "quickfix" },
6667
RefactorRewrite: { value: "refactor.rewrite" },
@@ -72,6 +73,7 @@ jest.mock("vscode", () => {
7273
visibleTextEditors: [mockTextEditor],
7374
tabGroups: {
7475
all: [mockTabGroup],
76+
close: jest.fn(),
7577
onDidChangeTabs: jest.fn(() => ({ dispose: jest.fn() })),
7678
},
7779
showErrorMessage: jest.fn(),

src/integrations/editor/DiffViewProvider.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ export class DiffViewProvider {
353353

354354
// close editor if open?
355355
async reset() {
356+
// Ensure any diff views opened by this provider are closed to release memory
357+
await this.closeAllDiffViews();
356358
this.editType = undefined
357359
this.isEditing = false
358360
this.originalContent = undefined

0 commit comments

Comments
 (0)