Skip to content

Commit 2655cad

Browse files
committed
fix ensure namespace is initialized for yielding vars
1 parent 337da68 commit 2655cad

File tree

1 file changed

+2
-0
lines changed
  • robotcode/language_server/robotframework/diagnostics

1 file changed

+2
-0
lines changed

robotcode/language_server/robotframework/diagnostics/namespace.py

+2
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ async def yield_variables(
594594
) -> AsyncGenerator[Tuple[VariableMatcher, VariableDefinition], None]:
595595
from robot.parsing.model.blocks import Keyword, TestCase
596596

597+
await self.ensure_initialized()
598+
597599
yielded: Dict[VariableMatcher, VariableDefinition] = {}
598600

599601
async for var in async_chain(

0 commit comments

Comments
 (0)