|  | 
|  | 1 | +// issue: vala-language-server#57 | 
|  | 2 | +server_path = option('server-path'); | 
|  | 3 | + | 
|  | 4 | +let f = file(` | 
|  | 5 | +interface Iface { | 
|  | 6 | +    public abstract void must_override1(); | 
|  | 7 | +    public abstract void must_override2(int arg1); | 
|  | 8 | +    public abstract void must_override3(int arg1, bool arg2); | 
|  | 9 | +} | 
|  | 10 | +class Sas : Iface, Object { | 
|  | 11 | +     | 
|  | 12 | +} | 
|  | 13 | +`); | 
|  | 14 | + | 
|  | 15 | +project_files = [ f ]; | 
|  | 16 | + | 
|  | 17 | + | 
|  | 18 | + | 
|  | 19 | +await change(f, { | 
|  | 20 | +    range: { | 
|  | 21 | +        start: { line: 7, character: 5 }, | 
|  | 22 | +        end: { line: 7, character: 5 } | 
|  | 23 | +    }, | 
|  | 24 | +    text: 'p' | 
|  | 25 | +}); | 
|  | 26 | + | 
|  | 27 | +assert { | 
|  | 28 | +    isIncomplete: false, | 
|  | 29 | +    completions: [ | 
|  | 30 | +        { | 
|  | 31 | +            label: 'public void must_override1()', | 
|  | 32 | +            kind: CompletionItemKind.Method, | 
|  | 33 | +            insertText: 'public void must_override1()$0', | 
|  | 34 | +            insertTextFormat: InsertTextFormat.Snippet, | 
|  | 35 | +        }, | 
|  | 36 | +        { | 
|  | 37 | +            label: 'public void must_override2(int arg1)', | 
|  | 38 | +            kind: CompletionItemKind.Method, | 
|  | 39 | +            insertText: 'public void must_override2(int ${1:arg1})$0', | 
|  | 40 | +            insertTextFormat: InsertTextFormat.Snippet, | 
|  | 41 | +        }, | 
|  | 42 | +        { | 
|  | 43 | +            label: 'public void must_override3(int arg1, bool arg2)', | 
|  | 44 | +            kind: CompletionItemKind.Method, | 
|  | 45 | +            insertText: 'public void must_override3(int ${1:arg1}, bool ${2:arg2})$0', | 
|  | 46 | +            insertTextFormat: InsertTextFormat.Snippet | 
|  | 47 | +        } | 
|  | 48 | +    ] | 
|  | 49 | +} <=> await completion(f, 7, 5); | 
0 commit comments