[gnome-builder/wip/chergert/langserv] rust-langserv: cleanup stubs to match implementation requirements



commit 47b822ae43257327d4879a090628b6bfc88cdce0
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 24 16:41:55 2016 -0700

    rust-langserv: cleanup stubs to match implementation requirements

 plugins/rust-langserv/rust_langserv_plugin.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/rust-langserv/rust_langserv_plugin.py b/plugins/rust-langserv/rust_langserv_plugin.py
index 5e06ac1..5b65b7a 100644
--- a/plugins/rust-langserv/rust_langserv_plugin.py
+++ b/plugins/rust-langserv/rust_langserv_plugin.py
@@ -155,6 +155,7 @@ class RustSymbolResolver(Ide.LangservSymbolResolver):
 
 """
 class RustHighlighter(Ide.LangservHighlighter):
-    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))
 """


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