Skip to content

[BUG] VSCODE - Refactoring does not update resource file references #597

@discoverkatalon

Description

@discoverkatalon

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:

  1. Create a Robot Framework project with multiple .robot files.
  2. Add a resource file, e.g.:
    Resource resources/common.resource
  3. Rename the file common.resource → shared.resource
    OR move it to another folder.
  4. Observe the import statements in other files.

Expected Behavior

  • All references to the resource file should be automatically updated when:
  • The file is renamed
  • The file is moved

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]

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