@@ -1308,12 +1308,12 @@ async def complete_import() -> Optional[List[CompletionItem]]:
1308
1308
sep = text_before_position [last_separator_index ] if last_separator_index < len (text_before_position ) else ""
1309
1309
1310
1310
try :
1311
- list = await self .namespace .imports_manager .complete_library_import (
1311
+ complete_list = await self .namespace .imports_manager .complete_library_import (
1312
1312
first_part if first_part else None ,
1313
1313
str (self .document .uri .to_path ().parent ),
1314
1314
await self .namespace .get_resolvable_variables (nodes_at_position , position ),
1315
1315
)
1316
- if not list :
1316
+ if not complete_list :
1317
1317
return None
1318
1318
except (SystemExit , KeyboardInterrupt , asyncio .CancelledError ):
1319
1319
raise
@@ -1346,7 +1346,7 @@ async def complete_import() -> Optional[List[CompletionItem]]:
1346
1346
"name" : ((first_part + sep ) if first_part is not None else "" ) + e .label ,
1347
1347
},
1348
1348
)
1349
- for e in list
1349
+ for e in complete_list
1350
1350
]
1351
1351
1352
1352
async def complete_arguments () -> Optional [List [CompletionItem ]]:
@@ -1414,10 +1414,9 @@ async def complete_arguments() -> Optional[List[CompletionItem]]:
1414
1414
1415
1415
try :
1416
1416
libdoc = await self .namespace .get_imported_library_libdoc (
1417
- import_node .name , (), str ( self . document . uri . to_path (). parent )
1417
+ import_node .name , import_node . args , import_node . alias
1418
1418
)
1419
- if not list :
1420
- return None
1419
+
1421
1420
except (SystemExit , KeyboardInterrupt , asyncio .CancelledError ):
1422
1421
raise
1423
1422
except BaseException as e :
@@ -1542,12 +1541,12 @@ async def complete_ResourceImport( # noqa: N802
1542
1541
)
1543
1542
1544
1543
try :
1545
- list = await self .namespace .imports_manager .complete_resource_import (
1544
+ complete_list = await self .namespace .imports_manager .complete_resource_import (
1546
1545
first_part if first_part else None ,
1547
1546
str (self .document .uri .to_path ().parent ),
1548
1547
await self .namespace .get_resolvable_variables (nodes_at_position , position ),
1549
1548
)
1550
- if not list :
1549
+ if not complete_list :
1551
1550
return None
1552
1551
except (SystemExit , KeyboardInterrupt , asyncio .CancelledError ):
1553
1552
raise
@@ -1579,7 +1578,7 @@ async def complete_ResourceImport( # noqa: N802
1579
1578
"name" : ((first_part ) if first_part is not None else "" ) + e .label ,
1580
1579
},
1581
1580
)
1582
- for e in list
1581
+ for e in complete_list
1583
1582
]
1584
1583
1585
1584
async def complete_VariablesImport ( # noqa: N802
@@ -1643,12 +1642,12 @@ async def complete_VariablesImport( # noqa: N802
1643
1642
)
1644
1643
1645
1644
try :
1646
- list = await self .namespace .imports_manager .complete_variables_import (
1645
+ complete_list = await self .namespace .imports_manager .complete_variables_import (
1647
1646
first_part if first_part else None ,
1648
1647
str (self .document .uri .to_path ().parent ),
1649
1648
await self .namespace .get_resolvable_variables (nodes_at_position , position ),
1650
1649
)
1651
- if not list :
1650
+ if not complete_list :
1652
1651
return None
1653
1652
except (SystemExit , KeyboardInterrupt , asyncio .CancelledError ):
1654
1653
raise
@@ -1680,7 +1679,7 @@ async def complete_VariablesImport( # noqa: N802
1680
1679
"name" : ((first_part ) if first_part is not None else "" ) + e .label ,
1681
1680
},
1682
1681
)
1683
- for e in list
1682
+ for e in complete_list
1684
1683
]
1685
1684
1686
1685
async def _complete_KeywordCall_or_Fixture ( # noqa: N802
0 commit comments