mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-05 08:10:14 +00:00
Greyscreen fix (#3474)
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
This commit is contained in:
parent
4c68b14c2f
commit
bd66b4cd77
2 changed files with 4 additions and 0 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue