[gnome-builder/wip/chergert/langserv] rust-langserv: enable Language Server completion



commit 2efc8e0e0c34af0229ccad6c103d8c4007031ccd
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 24 04:09:01 2016 -0700

    rust-langserv: enable Language Server completion

 plugins/rust-langserv/rust_langserv_plugin.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plugins/rust-langserv/rust_langserv_plugin.py b/plugins/rust-langserv/rust_langserv_plugin.py
index 0872e51..674b3e8 100644
--- a/plugins/rust-langserv/rust_langserv_plugin.py
+++ b/plugins/rust-langserv/rust_langserv_plugin.py
@@ -143,11 +143,12 @@ class RustDiagnosticProvider(Ide.LangservDiagnosticProvider):
         super().__init__(*args, **kwargs)
         self.connect('notify::context', lambda *_: RustService.bind_client(self))
 
-"""
 class RustCompletionProvider(Ide.LangservCompletionProvider):
-    def do_set_context(self, context):
-        RustService.bind_client(self);
+    def __init__(self, *args, **kwargs):
+        super().__init__(*args, **kwargs)
+        self.connect('notify::context', lambda *_: RustService.bind_client(self))
 
+"""
 class RustSymbolResolver(Ide.LangservSymbolResolver):
     def do_set_context(self, context):
         RustService.bind_client(self);


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