mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: remove strict editor validation in update method to fix integration tests
The integration tests were failing because the update method was too strict in validating the editor. In test environments, the editor might not be in visibleTextEditors list. Keeping the validation only for scrolling operations where it makes sense.
This commit is contained in:
parent
5afee2a6eb
commit
ef85e6ee25
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ export class DiffViewProvider {
|
|||
const diffEditor = this.activeDiffEditor
|
||||
const document = diffEditor?.document
|
||||
|
||||
if (!diffEditor || !document || !this.isEditorValid(diffEditor)) {
|
||||
if (!diffEditor || !document) {
|
||||
throw new Error("User closed text editor, unable to edit file...")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue