completions: property_completer improvements

This commit is contained in:
z00000000z 2023-08-23 16:21:37 +00:00 committed by James Westman
parent 582502c1b4
commit bcac788456
15 changed files with 76 additions and 33 deletions

View file

@ -129,14 +129,14 @@ class ExtScaleMarks(AstNode):
applies_in_subclass=("Gtk", "Scale"),
matches=new_statement_patterns,
)
def complete_marks(ast_node, match_variables):
def complete_marks(lsp, ast_node, match_variables):
yield Completion("marks", CompletionItemKind.Keyword, snippet="marks [\n\t$0\n]")
@completer(
applies_in=[ExtScaleMarks],
)
def complete_mark(ast_node, match_variables):
def complete_mark(lsp, ast_node, match_variables):
yield Completion("mark", CompletionItemKind.Keyword, snippet="mark ($0),")