mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Extend completion documentation
This commit is contained in:
parent
da5b9909fc
commit
a075b26769
3 changed files with 42 additions and 9 deletions
|
@ -336,6 +336,15 @@ class GirNode:
|
|||
def available_in(self) -> str:
|
||||
return self.xml.get("version")
|
||||
|
||||
@cached_property
|
||||
def detail(self) -> T.Optional[str]:
|
||||
try:
|
||||
el = self.xml.get_elements("doc")
|
||||
if len(el) == 1:
|
||||
return el[0].cdata.strip().partition("\n")[0]
|
||||
except:
|
||||
return None
|
||||
|
||||
@cached_property
|
||||
def doc(self) -> T.Optional[str]:
|
||||
sections = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue