[gnome-builder] prioritize VLS over GVLS



commit ceee164f6730c1b1f5a0d12f2e32566df3eeffe3
Author: Princeton Ferro <princetonferro gmail com>
Date:   Wed Jul 7 16:52:35 2021 -0400

    prioritize VLS over GVLS

 src/plugins/gvls/gvls.plugin         | 4 ++++
 src/plugins/gvls/gvls_plugin.py      | 2 +-
 src/plugins/vls/vala_langserv.plugin | 4 ++++
 src/plugins/vls/vala_langserv.py     | 2 +-
 4 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gvls/gvls.plugin b/src/plugins/gvls/gvls.plugin
index 28732c2db..c581456f0 100644
--- a/src/plugins/gvls/gvls.plugin
+++ b/src/plugins/gvls/gvls.plugin
@@ -9,8 +9,12 @@ Loader=python3
 Module=gvls_plugin
 X-Builder-ABI=@PACKAGE_ABI@
 X-Completion-Provider-Languages=vala
+X-Diagnostic-Provider-Priority=200
 X-Diagnostic-Provider-Languages=vala
+X-Formatter-Priority=200
 X-Formatter-Languages=vala
+X-Highlighter-Priority=200
 X-Highlighter-Languages=vala
 X-Hover-Provider-Languages=vala
+X-Symbol-Resolver-Priority=200
 X-Symbol-Resolver-Languages=vala
diff --git a/src/plugins/gvls/gvls_plugin.py b/src/plugins/gvls/gvls_plugin.py
index 09857097e..2551b30cc 100644
--- a/src/plugins/gvls/gvls_plugin.py
+++ b/src/plugins/gvls/gvls_plugin.py
@@ -578,7 +578,7 @@ class GVlsCompletionProvider(Ide.LspCompletionProvider, Ide.CompletionProvider):
     def do_get_priority(self, context):
         # This provider only activates when it is very likely that we
         # want the results. So use high priority (negative is better).
-        return -1000
+        return -900
 
 class GVlsHighlighter(Ide.LspHighlighter, Ide.Highlighter):
     def do_load(self):
diff --git a/src/plugins/vls/vala_langserv.plugin b/src/plugins/vls/vala_langserv.plugin
index 7ab68b409..7c712b307 100644
--- a/src/plugins/vls/vala_langserv.plugin
+++ b/src/plugins/vls/vala_langserv.plugin
@@ -7,10 +7,14 @@ Copyright=Copyright © 2020
 Loader=python3
 Module=vala_langserv
 X-Completion-Provider-Languages=vala
+X-Diagnostic-Provider-Priority=100
 X-Diagnostic-Provider-Languages=vala
+X-Formatter-Priority=100
 X-Formatter-Languages=vala
+X-Highlighter-Priority=100
 X-Highlighter-Languages=vala
 X-Hover-Provider-Languages=vala
 X-Rename-Provider-Languages=vala
+X-Symbol-Resolver-Priority=100
 X-Symbol-Resolver-Languages=vala
 X-Builder-ABI=@PACKAGE_ABI@
diff --git a/src/plugins/vls/vala_langserv.py b/src/plugins/vls/vala_langserv.py
index 72a55e35f..262fae6d5 100644
--- a/src/plugins/vls/vala_langserv.py
+++ b/src/plugins/vls/vala_langserv.py
@@ -186,6 +186,6 @@ class VlsFormatter(Ide.LspFormatter):
 class VlsHoverProvider(Ide.LspHoverProvider):
     def do_prepare(self):
         self.props.category = 'Vala'
-        self.props.priority = 200
+        self.props.priority = 100
         VlsService.bind_client(self)
 


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