[gnome-builder/1074-vala-language-server-add-support-using-gvls: 19/24] GVls: add debug messages when responding configuration



commit 81305964e5f4fd0514bc75bdcdcc92d7c5c6a9ae
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date:   Mon Dec 9 18:54:41 2019 -0600

    GVls: add debug messages when responding configuration

 src/plugins/gvls/gvls_plugin.py | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/plugins/gvls/gvls_plugin.py b/src/plugins/gvls/gvls_plugin.py
index e41f2ff49..a2fe6b001 100644
--- a/src/plugins/gvls/gvls_plugin.py
+++ b/src/plugins/gvls/gvls_plugin.py
@@ -118,6 +118,9 @@ class GVlsService(Ide.Object):
             self._supervisor.start()
 
     def _on_load_configuration(self):
+        if DEV_MODE
+            print ("Creating Vala Language Server Configuration response")
+
         conf = GLib.VariantBuilder (GLib.Variant ('a{sv}'))
         conf.add ('{sv}', 'initialized', GLib.Variant.boolean (True))
         conf.add ('{sv}', 'initialized', GLib.Variant.boolean (True))
@@ -143,6 +146,8 @@ class GVlsService(Ide.Object):
         conf.add ('{sv}', 'options', opts)
 
         conf.end ()
+        if DEV_MODE
+            print ("Configuration response: "+conf.print(True))
         return conf
 
     def _gvls_spawned(self, supervisor, subprocess):


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