Describe the bug
Refactoring does not update resource file references
Description
Refactoring operations in Robot Framework projects are not updating resource file references automatically.
Specifically:
When a resource file is renamed, existing imports in other .robot files are not updated.
When a resource file is moved to a different folder, references are not updated automatically.
This leads to broken imports and requires manual updates across the project.
Steps To Reproduce
Steps to reproduce the behavior:
- Create a Robot Framework project with multiple .robot files.
- Add a resource file, e.g.:
Resource resources/common.resource
- Rename the file common.resource → shared.resource
OR move it to another folder.
- Observe the import statements in other files.
Expected Behavior
Actual Behavior
- References remain unchanged.
- Import paths become invalid, causing errors during execution.
Desktop
- VS Code Version [1.115.0]
- RobotCode Version [2.5.1]
- OS: [Windows 11]
- Python Version [3.14.2]
- RobotFramework Version [7.4.2]
- robocop Version [8.2.5]
Describe the bug
Refactoring does not update resource file references
Description
Refactoring operations in Robot Framework projects are not updating resource file references automatically.
Specifically:
When a resource file is renamed, existing imports in other .robot files are not updated.
When a resource file is moved to a different folder, references are not updated automatically.
This leads to broken imports and requires manual updates across the project.
Steps To Reproduce
Steps to reproduce the behavior:
Resource resources/common.resource
OR move it to another folder.
Expected Behavior
Actual Behavior
Desktop