Describe the bug
When a common resource file is imported multiple times using relative paths (e.g. ../../../resources/my.resource) but the file locations are different, any robot file that includes those resource files will see the resource file repeated in the auto-complete list, and the keywords are incorrectly shown as multiply declared
To Reproduce
Steps to reproduce the behavior:
Make a resource and folder called in /resource/MyResource.resource and declare a keyword ( 'My Keyword') in it
Create a new folder/resource file called /resource/folder1/Second.resource and include the original as '../MyResource.resource'
Create a test file called /tests/mytest.robot and include the original file as '../resource/MyResource.resource'
Use the My Keyword as 'MyResource.My Keyword'
Note that the auto-complete shows 'MyResource' as showing up twice with different paths:
-----root/resource/folder1/../MyResource.resource
-----root/tests/../resource/MyResourse.resource
They are both the same file - but not being recognised as such.
Expected behavior
The single file should only be recognised as a single entity.
Screenshots/ Videos
In the image above the file is in /resource/common/Globals.resource -- but the paths are being seen as different so the resource is duplicated.
Logs
Copy the messages from VSCode "Output" view for RobotCode and RobotCode Language Server for the specific folder/workspace.
Desktop (please complete the following information):
VS Code Version 1.83.1
RobotCode Version 0.62.0
OS: Windows 11 Pro
Python Version 3.11.4
RobotFramework Version 6.11
Additional context
Works fine in 0.61.7 -- only appeared in 0.62.0
Describe the bug When a common resource file is imported multiple times using relative paths (e.g. ../../../resources/my.resource) but the file locations are different, any robot file that includes those resource files will see the resource file repeated in the auto-complete list, and the keywords are incorrectly shown as multiply declared
To Reproduce Steps to reproduce the behavior:
Expected behavior The single file should only be recognised as a single entity.
Screenshots/ Videos
In the image above the file is in /resource/common/Globals.resource -- but the paths are being seen as different so the resource is duplicated.
Logs Copy the messages from VSCode "Output" view for RobotCode and RobotCode Language Server for the specific folder/workspace.
Desktop (please complete the following information):
Additional context Works fine in 0.61.7 -- only appeared in 0.62.0