[gnome-builder/1074-vala-language-server-add-support-using-gvls: 15/17] GVls: load-configuration at client set



commit 048e6e0709c9114c04964a2ce0ec3d231a3d97ba
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date:   Fri Dec 6 09:01:44 2019 -0600

    GVls: load-configuration at client set

 src/plugins/gvls/gvls_plugin.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/gvls/gvls_plugin.py b/src/plugins/gvls/gvls_plugin.py
index 9c7901eab..e41f2ff49 100644
--- a/src/plugins/gvls/gvls_plugin.py
+++ b/src/plugins/gvls/gvls_plugin.py
@@ -51,6 +51,8 @@ class GVlsService(Ide.Object):
     @client.setter
     def client(self, value):
         self._client = value
+        ## Construct GVls Configuration response at `initialize`
+        self._client.connect('load-configuration', self._on_load_configuration)
         self.notify('client')
 
     def do_parent_set(self, parent):
@@ -93,11 +95,6 @@ class GVlsService(Ide.Object):
         # to its :client property.
         if not self._has_started:
             self._has_started = True
-            print ('Starting GVls server')
-
-
-            ## Construct GVls Configuration response at `initialize`
-            self._client.connect('load-configuration', self._on_load_configuration)
 
             # Setup a launcher to spawn the rust language server
             launcher = self._create_launcher()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]