robotcode
robotcode copied to clipboard
[Enhancement] Keyword suggestion (with implicit resource file import) is not working
Short: RobotCode doesn't suggest custom keywords of resource files, which are not yet imported by a Resource file within the *** Settings *** section & I'm not sure why.
My project structure is like this: /keywords/api/authentication.resource /tests/test1.robot
The authentication.resource file contains multiple keywords, which can be used within a test1.robot file by manually adding the Resource to the *** settings *** section. Without the Resource import of this specific resource file in the settings section, the Code Suggestion (pressing CTRL + SPACE at the end of the keyword string) doesn't return any suggestions:
(the quick fix only suggests to create the keyword within the same .robot file)
From the RF Language Server I'm used to resolve keywords (which are not imported yet) and add its path to the Resource Imports by Code Suggestion:
My question: Is this feature implemented in RobotCode already and if yes: what could cause the issue that the keyword seems to be unknown to the extension - even after Clear Cache and Restart of RobotCode?
Desktop (please complete the following information):
- VS Code Version 1.95.3
- RobotCode Version 0.99.0
- OS: Windows 11, using a WSL2 (Ubuntu) with docker and a devcontainer inside
- Python Version 3.11.10
- RobotFramework Version 7.1.1
- rf-robocop, rf-tidy, rf-browser, rf-requests, rf-jsonlibrary