Skip to content

Commit 681585e

Browse files
committed
correct inline values does not show variables at current line
1 parent 78fc0ea commit 681585e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

robotcode/language_server/robotframework/parts/debugging_utils.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def run() -> Optional[EvaluatableExpression]:
103103
if namespace is None:
104104
return None
105105

106-
model = await self.parent.documents_cache.get_model(document)
106+
model = await self.parent.documents_cache.get_model(document, False)
107107
if model is None:
108108
return None
109109

@@ -175,13 +175,11 @@ async def run() -> List[InlineValue]:
175175
if namespace is None:
176176
return []
177177

178-
model = await self.parent.documents_cache.get_model(document)
178+
model = await self.parent.documents_cache.get_model(document, False)
179179

180180
real_range = Range(view_port.start, min(view_port.end, context.stopped_location.end))
181181

182-
nodes = await get_nodes_at_position(
183-
await self.parent.documents_cache.get_model(document), context.stopped_location.start
184-
)
182+
nodes = await get_nodes_at_position(model, context.stopped_location.start)
185183

186184
def get_tokens() -> Generator[Tuple[Token, ast.AST], None, None]:
187185
for n in iter_nodes(model):

0 commit comments

Comments
 (0)