[gnome-builder/1074-vala-language-server-add-support-using-gvls: 23/23] GVls: fix load-configuration callback



commit 73ef381140474d8ebdae693fb53860e2f166eced
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date:   Fri Dec 6 08:03:39 2019 -0600

    GVls: fix load-configuration callback

 src/plugins/gvls/gvls_plugin.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gvls/gvls_plugin.py b/src/plugins/gvls/gvls_plugin.py
index c7f5afd7b..9c7901eab 100644
--- a/src/plugins/gvls/gvls_plugin.py
+++ b/src/plugins/gvls/gvls_plugin.py
@@ -95,6 +95,10 @@ class GVlsService(Ide.Object):
             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()
             launcher.set_clear_env(False)
@@ -116,9 +120,6 @@ class GVlsService(Ide.Object):
             self._supervisor.set_launcher(launcher)
             self._supervisor.start()
 
-            ## Construct GVls Configuration response at `initialize`
-            self._client.connect('load-configuration', _on_load_configuration)
-
     def _on_load_configuration(self):
         conf = GLib.VariantBuilder (GLib.Variant ('a{sv}'))
         conf.add ('{sv}', 'initialized', GLib.Variant.boolean (True))


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