Commit d9de6d3d authored by Daniel Espinosa Ortiz's avatar Daniel Espinosa Ortiz
Browse files

GVls: increasing completion priority

parent c84f54f4
......@@ -9,4 +9,4 @@ Loader=python3
Module=gvls_plugin
X-Builder-ABI=3.32
X-Completion-Provider-Languages=vala
X-Completion-Provider-Languages-Priority=0
......@@ -26,7 +26,6 @@ by bridging them to our supervised Vala Language Server.
import gi
import os
import gvls_server
from gi.repository import GLib
from gi.repository import Gio
......@@ -86,9 +85,12 @@ class GVlsService(Ide.Object):
def do_stop(self):
"""
Stops the Rust Language Server upon request to shutdown the
Stops the Vala Language Server upon request to shutdown the
GVlsService.
"""
if self._client is not None:
print ("Shutting down server")
_client.stop ()
if self._monitor is not None:
monitor, self._monitor = self._monitor, None
if monitor is not None:
......@@ -124,7 +126,7 @@ class GVlsService(Ide.Object):
launcher.set_cwd(workdir.get_path())
# If org.gnome.gvls.stdio.Server is installed by GVls
path_to_rls = gvls_server.gvls_stdio_server
path_to_rls = 'org.gnome.gvls.stdio.Server'
# Setup our Argv. We want to communicate over STDIN/STDOUT,
# so it does not require any command line options.
......@@ -185,9 +187,9 @@ class GVlsService(Ide.Object):
self._ensure_started()
self.bind_property('client', provider, 'client', GObject.BindingFlags.SYNC_CREATE)
class GVlsDiagnosticProvider(Ide.LspDiagnosticProvider):
def do_load(self):
GVlsService.bind_client(self)
#class GVlsDiagnosticProvider(Ide.LspDiagnosticProvider):
# def do_load(self):
# GVlsService.bind_client(self)
class GVlsCompletionProvider(Ide.LspCompletionProvider):
def do_load(self, context):
......
......@@ -9,6 +9,7 @@ X-Builder-ABI=@PACKAGE_ABI@
X-Code-Indexer-Languages-Priority=100
X-Code-Indexer-Languages=vala
X-Completion-Provider-Languages=vala
X-Completion-Provider-Languages-Priority=100
X-Diagnostic-Provider-Languages=vala
X-Indenter-Languages-Priority=0
X-Indenter-Languages=vala
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment