You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Weinzierleiner
changed the title
[QUESTION] Keyword suggestion with implicit resource file import is not working
[QUESTION] Keyword suggestion (with implicit resource file import) is not working
Dec 4, 2024
Sorry this feature is not implemented at the moment. I am not really sure if code completion is the right way to show things that are not imported, because I have seen projects with more then 10000 keywords in deep structured resources files. There is no real good way or convention in RF where and how resources should be structured and what is a public/private/protected resource.
Maybe we could do this with quickfixes or so...
I will leave this open but change it to an enhancement.
d-biehl
changed the title
[QUESTION] Keyword suggestion (with implicit resource file import) is not working
[Enhancement] Keyword suggestion (with implicit resource file import) is not working
Dec 8, 2024
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):
The text was updated successfully, but these errors were encountered: