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
3cdc3a159c
commit
bcb8e4ea14
12 changed files with 135 additions and 22 deletions
|
@ -138,7 +138,12 @@ class ExtScaleMarks(AstNode):
|
|||
matches=new_statement_patterns,
|
||||
)
|
||||
def complete_marks(_ctx: CompletionContext):
|
||||
yield Completion("marks", CompletionItemKind.Keyword, snippet="marks [\n\t$0\n]")
|
||||
yield Completion(
|
||||
"marks",
|
||||
CompletionItemKind.Keyword,
|
||||
snippet="marks [\n\t$0\n]",
|
||||
sort_text=get_sort_key(CompletionPriority.OBJECT_MEMBER, "marks"),
|
||||
)
|
||||
|
||||
|
||||
@completer(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue