Skip to content

[ENHANCEMENT] Add Explicit Library Prefixing for Keywords in RobotCode #413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TeleBack3C opened this issue Mar 17, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@TeleBack3C
Copy link

Description:
In Robot Framework Language Server (VS Code extension), when a keyword comes from a specific library/resource files, it is prefixed with the library name (e.g., Browser.Get Text). This makes it clearer which library a keyword belongs to, especially when multiple libraries provide similarly named keywords.

However, RobotCode does not currently provide this functionality. Instead, it always displays the keyword name without an explicit library prefix. This can make it harder to distinguish between keywords from different libraries/resource files, particularly when working with large test suites that import multiple libraries/resource files.

Proposed Enhancement:

  • Modify RobotCode’s language server to prefix keywords with their respective library/resource file names when suggesting or displaying them.
  • Ensure that this behavior aligns with Robot Framework’s default naming conventions and avoids unnecessary prefixing when a keyword is unambiguous.
  • Provide a setting to enable or disable this feature based on user preference.

Benefits:

  • Improves clarity when working with multiple libraries/resource files.
  • Reduces confusion when keywords have identical names in different libraries.

Additional Context:
This feature would be particularly useful for users migrating from other language servers or those working with complex Robot Framework projects.

Thank you for considering this feature request!

@TeleBack3C TeleBack3C added the enhancement New feature or request label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant