[gnome-builder/1074-vala-language-server-add-support-using-gvls-2: 16/18] rls: specify interface for do_load() to connect to vfunc



commit 513b3bcae0d09326be5765ca308554bb4aaba58a
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jan 3 15:42:16 2020 -0800

    rls: specify interface for do_load() to connect to vfunc
    
    This seems to be requiring the interface specification so that the
    PyGObject bindings can wire up the vfunc for the interface.

 src/plugins/rls/rls_plugin.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/plugins/rls/rls_plugin.py b/src/plugins/rls/rls_plugin.py
index 94d445483..11f670129 100644
--- a/src/plugins/rls/rls_plugin.py
+++ b/src/plugins/rls/rls_plugin.py
@@ -218,11 +218,11 @@ class RlsService(Ide.Object):
         self._ensure_started()
         self.bind_property('client', provider, 'client', GObject.BindingFlags.SYNC_CREATE)
 
-class RlsDiagnosticProvider(Ide.LspDiagnosticProvider):
+class RlsDiagnosticProvider(Ide.LspDiagnosticProvider, Ide.DiagnosticProvider):
     def do_load(self):
         RlsService.bind_client(self)
 
-class RlsCompletionProvider(Ide.LspCompletionProvider):
+class RlsCompletionProvider(Ide.LspCompletionProvider, Ide.CompletionProvider):
     def do_load(self, context):
         RlsService.bind_client(self)
 
@@ -231,23 +231,23 @@ class RlsCompletionProvider(Ide.LspCompletionProvider):
         # want the results. So use high priority (negative is better).
         return -1000
 
-class RlsRenameProvider(Ide.LspRenameProvider):
+class RlsRenameProvider(Ide.LspRenameProvider, Ide.RenameProvider):
     def do_load(self):
         RlsService.bind_client(self)
 
-class RlsSymbolResolver(Ide.LspSymbolResolver):
+class RlsSymbolResolver(Ide.LspSymbolResolver, Ide.SymbolResolver):
     def do_load(self):
         RlsService.bind_client(self)
 
-class RlsHighlighter(Ide.LspHighlighter):
+class RlsHighlighter(Ide.LspHighlighter, Ide.Highlighter):
     def do_load(self):
         RlsService.bind_client(self)
 
-class RlsFormatter(Ide.LspFormatter):
+class RlsFormatter(Ide.LspFormatter, Ide.Formatter):
     def do_load(self):
         RlsService.bind_client(self)
 
-class RlsHoverProvider(Ide.LspHoverProvider):
+class RlsHoverProvider(Ide.LspHoverProvider, Ide.HoverProvider):
     def do_prepare(self):
         self.props.category = 'Rust'
         self.props.priority = 200


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