Fix #8011 - add resources
[roobuilder] / src / Palete / LanguageClientVala.vala
index 4c78905..c61f24f 100644 (file)
@@ -35,7 +35,13 @@ namespace Palete {
                }
                void startServer()
                {
-                       this.initProcess("/usr/bin/vala-language-server");
+                       var exe = GLib.Environment.find_program_in_path( "vala-language-server");
+                       if (exe == null) {
+                               GLib.warning("could not find vala-language-server");
+                                
+                               return;
+                       }
+                       this.initProcess(exe);
                }
                
                
@@ -396,10 +402,15 @@ namespace Palete {
 
                public override async void document_change_force (JsRender.JsRender file, string contents)  
        {
+                       
+                       
                        if (!this.isReady()) {
                                return;
                        }
-                  if (!this.open_files.contains(file)) {
+                       this.countdown = 9; // not really relivant..
+                       this.change_queue_file = null; // this is more important..
+                       
+                   if (!this.open_files.contains(file)) {
                                 this.document_open(file);
                        }