[gnome-builder] rust-langserv: enable Language Server completion
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] rust-langserv: enable Language Server completion
- Date: Tue, 25 Oct 2016 22:42:57 +0000 (UTC)
commit 6415b29d5547665da6192c325bfc0d3935510436
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]