[gnome-builder/1074-vala-language-server-add-support-using-gvls: 13/24] GVls: added Highlighter language server connection



commit b13bc6432daf1e9225856225098690a78efe577e
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date:   Sun Dec 1 15:16:57 2019 -0600

    GVls: added Highlighter language server connection

 src/plugins/gvls/gvls.plugin    | 3 ++-
 src/plugins/gvls/gvls_plugin.py | 3 +++
 2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/gvls/gvls.plugin b/src/plugins/gvls/gvls.plugin
index eb9aec1a1..aa366f108 100644
--- a/src/plugins/gvls/gvls.plugin
+++ b/src/plugins/gvls/gvls.plugin
@@ -1,7 +1,7 @@
 # gvls.plugin
 [Plugin]
 Author=Daniel Espinosa
-Name=GNOME Vala Language Server for GNOME Builder plugin
+Name=GNOME Vala Language Server
 Description=GNOME Builder plugin for GVLS using LSP
 Copyright=Copyright © 2019 Daniel Espinosa
 Builtin=true
@@ -10,3 +10,4 @@ Module=gvls_plugin
 X-Builder-ABI=@PACKAGE_ABI@
 X-Completion-Provider-Languages=vala
 X-Completion-Provider-Languages-Priority=0
+X-Highlighter-Languages=vala
diff --git a/src/plugins/gvls/gvls_plugin.py b/src/plugins/gvls/gvls_plugin.py
index 7fb879262..b2acb6e8e 100644
--- a/src/plugins/gvls/gvls_plugin.py
+++ b/src/plugins/gvls/gvls_plugin.py
@@ -177,4 +177,7 @@ class GVlsCompletionProvider(Ide.LspCompletionProvider):
         # want the results. So use high priority (negative is better).
         return -1000
 
+class GVlsHighlighter(Ide.LspHighlighter):
+    def do_load(self):
+        GVlsService.bind_client(self)
 


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