Commit 3ac3c618 authored by Daniel Espinosa Ortiz's avatar Daniel Espinosa Ortiz

sourceview-completion: insert parentesis on method selection

Fix issue #47
parent 20f3f796
Pipeline #43525 passed with stages
in 16 minutes and 41 seconds
......@@ -227,7 +227,22 @@ public class GVlsui.CompletionProvider : GLib.Object, Gtk.SourceCompletionProvid
return _symbol.name;
}
public string get_text () {
return _symbol.name;
string str = _symbol.name;
switch (_symbol.symbol_kind) {
case SymbolKind.CLASS:
case SymbolKind.INTERFACE:
case SymbolKind.NAMESPACE:
case SymbolKind.STRUCT:
case SymbolKind.ENUM:
case SymbolKind.ENUM_MEMBER:
case SymbolKind.VARIABLE:
case SymbolKind.PROPERTY:
break;
case SymbolKind.METHOD:
str += " ()";
break;
}
return str;
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment