Skip to content

Find/Replace feature doesn't update open tabs #1259

@sparks0

Description

@sparks0

Summary
When using the Find & Replace feature to replace the contents of files, if a file is open in the editor, it will not update to represent the replaced contents. This is an issue because if you then continue to edit the open tab and save your changes, the replaced value is overwritten by the cached copy you continued to edit.

To Reproduce
Steps to reproduce the behavior:

  1. Open a project and open a file such as a block json file and save it or choose Keep in Tab System
  2. Copy part of the file, such as the block namespace e.g. "identifier": "my_project:my_block",
  3. Open the Find & Replace menu. Find the copied string and replace it with something else like "my_project:my_replaced_name" using the Replace All button.
  4. Go back to your open file in the tab system.
  5. Observe that the text has not changed. Save the file and re-open it to see that the replacement has been overwritten.

Observed behavior
Open tabs are not updated when the file they are editing is changed by the Find & Replace Feature
Expected behavior
Open tabs are reloaded by the find/replace feature. If there are unsaved changes in the file, it should ask you if you want to overwrite unsaved changes in that file.

Platform (please complete the following information):

  • OS: Windows 10
  • App Version: 2.7.43

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions