mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Show better info on IdentLiteral hover
Instead of showing the documentation for the expected type, show the signature of the referenced object.
This commit is contained in:
parent
9ff76b65cc
commit
cb1eb9ba44
5 changed files with 41 additions and 6 deletions
|
@ -44,6 +44,13 @@ class Template(Object):
|
|||
def id(self) -> str:
|
||||
return "template"
|
||||
|
||||
@property
|
||||
def signature(self) -> str:
|
||||
if self.parent_type:
|
||||
return f"template {self.gir_class.full_name} : {self.parent_type.gir_type.full_name}"
|
||||
else:
|
||||
return f"template {self.gir_class.full_name}"
|
||||
|
||||
@property
|
||||
def gir_class(self) -> GirType:
|
||||
if isinstance(self.class_name.gir_type, ExternType):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue