3 public class LanguageClientVala : LanguageClient {
6 public LanguageClientVala(Project.Project project)
8 // extend versions will proably call initialize to start and connect to server.
15 public override void startServer()
17 this.initProcess("/usr/bin/vala-language-server");
21 public override void initialize_server() {
23 Variant? return_value;
24 this.jsonrpc_client.call (
27 processId: new Variant.int32 ((int32) Posix.getpid ()),
28 rootPath: new Variant.string (this.project.path),
29 rootUri: new Variant.string (File.new_for_path (this.project.path).get_uri ())
34 GLib.debug ("LS replied with %s", Json.to_string (Json.gvariant_serialize (return_value), true));
35 this.initialized = true;
37 } catch (GLib.Error e) {
38 GLib.debug ("LS replied with error %s", e.message);