mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
docs: Fix docs for accessibility properties
This commit is contained in:
parent
c4fc4f3de8
commit
9ff76b65cc
1 changed files with 4 additions and 1 deletions
|
@ -98,6 +98,7 @@ def get_types(gir):
|
||||||
|
|
||||||
|
|
||||||
def _get_docs(gir, name):
|
def _get_docs(gir, name):
|
||||||
|
name = name.replace("-", "_")
|
||||||
if gir_type := (
|
if gir_type := (
|
||||||
gir.get_type("AccessibleProperty", "Gtk").members.get(name)
|
gir.get_type("AccessibleProperty", "Gtk").members.get(name)
|
||||||
or gir.get_type("AccessibleRelation", "Gtk").members.get(name)
|
or gir.get_type("AccessibleRelation", "Gtk").members.get(name)
|
||||||
|
@ -197,7 +198,9 @@ def a11y_completer(ast_node, match_variables):
|
||||||
def a11y_name_completer(ast_node, match_variables):
|
def a11y_name_completer(ast_node, match_variables):
|
||||||
for name, type in get_types(ast_node.root.gir).items():
|
for name, type in get_types(ast_node.root.gir).items():
|
||||||
yield Completion(
|
yield Completion(
|
||||||
name, CompletionItemKind.Property, docs=_get_docs(ast_node.root.gir, type)
|
name,
|
||||||
|
CompletionItemKind.Property,
|
||||||
|
docs=_get_docs(ast_node.root.gir, type.name),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue