Skip to content

Commit fe38e18

Browse files
committed
correct handling arguments from resource keywords
1 parent 0df2df8 commit fe38e18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

robotcode/language_server/robotframework/diagnostics/imports_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
from ..utils.process_pool import get_process_pool
4040
from .library_doc import (
41+
ArgumentSpec,
4142
CompleteResult,
4243
Error,
4344
KeywordArgumentDoc,
@@ -789,6 +790,7 @@ def _create_handler(self, kw: Any) -> Any:
789790
error_handler_message=str(cast(UserErrorHandler, kw[1]).error)
790791
if isinstance(kw[1], UserErrorHandler)
791792
else None,
793+
arguments=ArgumentSpec.from_robot_argument_spec(kw[1].arguments),
792794
)
793795
for kw in [(KeywordDocBuilder(resource=True).build_keyword(lw), lw) for lw in lib.handlers]
794796
},

0 commit comments

Comments
 (0)