fix line numbering issues with vala generator - hopefully fixes completion in node...
[roobuilder] / src / Palete / LanguageClientVala.vala
1
2 namespace Palete {
3         public class LanguageClientVala : LanguageClient {
4         
5         
6                 public LanguageClientVala(Project.Project project)
7                 {
8                         // extend versions will proably call initialize to start and connect to server.
9                         base(project);
10                         
11                         this.initProcess("/usr/bin/vala-language-server");
12                         
13                 
14                 }
15                  public override   void  initialize_server()   {
16                         try {
17                                 Variant? return_value;
18                                     this.jsonrpc_client.call (
19                                     "initialize",
20                                     this.buildDict (
21                                         processId: new Variant.int32 ((int32) Posix.getpid ()),
22                                         rootPath: new Variant.string (this.project.path),
23                                         rootUri: new Variant.string (File.new_for_path (this.project.path).get_uri ())
24                                     ),
25                                     null,
26                                     out return_value
27                                 );
28                                 GLib.debug ("LS replied with %s", Json.to_string (Json.gvariant_serialize (return_value), true));
29                                 this.initialized = true;
30                         } catch (GLib.Error e) {
31                                 GLib.debug ("LS replied with error %s", e.message);
32                         }
33                         
34                 }
35         
36         }
37         
38 }