mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Add property docs on notify signal hover
This commit is contained in:
parent
e5fba8f3c7
commit
b107a85947
1 changed files with 10 additions and 0 deletions
|
@ -174,6 +174,16 @@ class Signal(AstNode):
|
||||||
if self.gir_signal is not None:
|
if self.gir_signal is not None:
|
||||||
return self.gir_signal.doc
|
return self.gir_signal.doc
|
||||||
|
|
||||||
|
@docs("detail_name")
|
||||||
|
def detail_docs(self):
|
||||||
|
if self.name == "notify":
|
||||||
|
if self.gir_class is not None and not isinstance(
|
||||||
|
self.gir_class, ExternType
|
||||||
|
):
|
||||||
|
prop = self.gir_class.properties.get(self.tokens["detail_name"])
|
||||||
|
if prop is not None:
|
||||||
|
return prop.doc
|
||||||
|
|
||||||
|
|
||||||
@decompiler("signal")
|
@decompiler("signal")
|
||||||
def decompile_signal(
|
def decompile_signal(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue