robotframework-lsp icon indicating copy to clipboard operation
robotframework-lsp copied to clipboard

Limitation on suggesting a list of keywords by the tag

Open Pawci3oo opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. Currently, If I import a resource file, then all nested resource files are imported, and all keywords from these resource files. Sometimes it's hard to find an appropriate keyword in the suggested list. I would like to limit the list of suggested keywords in the Test Suite where tests are written.

Describe the solution you'd like Keywords can be tagged, so this could be useful for limiting keyword list. I propose to add a setting where I can provide tags to limit suggestions of keywords during test writing. For files where there are keyword implementations should stay as it is, depending on imported Resources. If the file contains keywords and tests then should stay as it is. It would improve code completion and searching for appropriate keywords.

Example:

Settings: Suggest keywords with these tags in test suites: Main Keywords

File with keywords implementation:

Keyword Main
    Do something
    Keyword Helper
[Tags]    Main Keywords

Keyword Helper
   Do something different
[Tags]    Helper Keywords

Test suite:

Test1
   Keywo <--- (only Keyword Main is suggested)

Describe alternatives you've considered I didn't find any solution/workaround for this.

Pawci3oo avatar Dec 07 '23 14:12 Pawci3oo