mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Show docs on hover
Also: - Install the script to <prefix>/bin - Fix a bug in XmlReader that would cause "uninteresting" tags to not be fully ignored - Other minor improvements
This commit is contained in:
parent
8fc0efb642
commit
55a117a5b7
7 changed files with 85 additions and 31 deletions
|
@ -72,10 +72,10 @@ class GirNode:
|
|||
|
||||
@lazy_prop
|
||||
def doc(self) -> str:
|
||||
el = self.xml.find("doc")
|
||||
if el is None:
|
||||
el = self.xml.get_elements("doc")
|
||||
if len(el) != 1:
|
||||
return None
|
||||
return el.cdata
|
||||
return el[0].cdata.strip()
|
||||
|
||||
|
||||
class Property(GirNode):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue