[gnome-builder/wip/chergert/langserv] rust-langserv: implement symbol resolving for Rust
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/langserv] rust-langserv: implement symbol resolving for Rust
- Date: Mon, 24 Oct 2016 23:42:11 +0000 (UTC)
commit 3dc23e48a44bb3b858e8d358835dd636c343fe0e
Author: Christian Hergert <chergert redhat com>
Date: Mon Oct 24 16:41:39 2016 -0700
rust-langserv: implement symbol resolving for Rust
This makes <alt>period (emacs, default) and :gd (vim), or
<control>+mouse-click to jump to a symbol definition.
plugins/rust-langserv/rust-langserv.plugin | 2 +-
plugins/rust-langserv/rust_langserv_plugin.py | 7 ++++---
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/plugins/rust-langserv/rust-langserv.plugin b/plugins/rust-langserv/rust-langserv.plugin
index 87f0264..f339cdd 100644
--- a/plugins/rust-langserv/rust-langserv.plugin
+++ b/plugins/rust-langserv/rust-langserv.plugin
@@ -9,5 +9,5 @@ Builtin=true
X-Completion-Provider-Languages=rust
X-Diagnostic-Provider-Languages=rust
X-Highlighter-Languages=rust
-X-Symbol-Resolver-Provider-Languages=rust
+X-Symbol-Resolver-Languages=rust
diff --git a/plugins/rust-langserv/rust_langserv_plugin.py b/plugins/rust-langserv/rust_langserv_plugin.py
index 674b3e8..5e06ac1 100644
--- a/plugins/rust-langserv/rust_langserv_plugin.py
+++ b/plugins/rust-langserv/rust_langserv_plugin.py
@@ -148,11 +148,12 @@ class RustCompletionProvider(Ide.LangservCompletionProvider):
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);
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ self.connect('notify::context', lambda *_: RustService.bind_client(self))
+"""
class RustHighlighter(Ide.LangservHighlighter):
def do_set_context(self, context):
RustService.bind_client(self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]