Skip to content

Commit 9adc6c8

Browse files
committed
fix(robotlangserver): Update libraries when editing not work
1 parent 975661c commit 9adc6c8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

robotcode/language_server/robotframework/diagnostics/imports_manager.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,13 +877,20 @@ async def get_libdoc_for_library_import(
877877
sentinel: Any = None,
878878
variables: Optional[Dict[str, Any]] = None,
879879
) -> LibraryDoc:
880-
meta, source = await self.get_library_meta(
880+
source = await self.find_library(
881881
name,
882882
base_dir,
883883
variables,
884884
)
885885

886886
async def _get_libdoc() -> LibraryDoc:
887+
888+
meta, source = await self.get_library_meta(
889+
name,
890+
base_dir,
891+
variables,
892+
)
893+
887894
self._logger.debug(lambda: f"Load Library {source}{repr(args)}")
888895
if meta is not None:
889896
meta_file = Path(self.lib_doc_cache_path, meta.filepath_base.with_suffix(".meta.json"))

0 commit comments

Comments
 (0)