Skip to content

Commit 112cc2c

Browse files
committed
correct namespace get_library_doc to only create RESOURCE doc
1 parent 7eff015 commit 112cc2c

File tree

1 file changed

+1
-13
lines changed
  • robotcode/language_server/robotframework/diagnostics

1 file changed

+1
-13
lines changed

robotcode/language_server/robotframework/diagnostics/namespace.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -974,20 +974,8 @@ async def get_library_doc(self) -> LibraryDoc:
974974
if self._library_doc is None:
975975
async with self._library_doc_lock:
976976
if self._library_doc is None:
977-
model_type = ""
978-
979-
if hasattr(self.model, "model_type"):
980-
t = getattr(self.model, "model_type")
981-
982-
if t == DocumentType.RESOURCE:
983-
model_type = "RESOURCE"
984-
elif t == DocumentType.GENERAL:
985-
model_type = "TESTCASE"
986-
elif t == DocumentType.INIT:
987-
model_type = "INIT"
988-
989977
self._library_doc = await self.imports_manager.get_libdoc_from_model(
990-
self.model, self.source, model_type=model_type
978+
self.model, self.source, model_type="RESOURCE"
991979
)
992980

993981
return self._library_doc

0 commit comments

Comments
 (0)