File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff 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 ( ) ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments