Skip to content

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

@TeleBack3C

Description

@TeleBack3C

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions