mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
completions: Sort completion items
This commit is contained in:
parent
860580e560
commit
d0394136cf
12 changed files with 135 additions and 22 deletions
|
@ -95,7 +95,12 @@ class ExtComboBoxItems(AstNode):
|
|||
matches=new_statement_patterns,
|
||||
)
|
||||
def items_completer(_ctx: CompletionContext):
|
||||
yield Completion("items", CompletionItemKind.Snippet, snippet="items [$0]")
|
||||
yield Completion(
|
||||
"items",
|
||||
CompletionItemKind.Snippet,
|
||||
snippet="items [$0]",
|
||||
sort_text=get_sort_key(CompletionPriority.OBJECT_MEMBER, "items"),
|
||||
)
|
||||
|
||||
|
||||
@decompiler("items", parent_type="Gtk.ComboBoxText")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue