aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-02 09:27:30 +0000
committerAleksey Kladov <[email protected]>2018-12-02 09:27:30 +0000
commitbcc2342be6e0206bfd945967e168c08b9d373525 (patch)
treeac87ff336f5d5b8e6b152483c94164271778e42d
parentedd3768a4411ab858332f36d634249534c65a0c5 (diff)
Put derive back
It is used in this file
-rw-r--r--crates/ra_lsp_server/src/main.rs25
1 files changed, 1 insertions, 24 deletions
diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs
index 173418520..8301a1044 100644
--- a/crates/ra_lsp_server/src/main.rs
+++ b/crates/ra_lsp_server/src/main.rs
@@ -2,6 +2,7 @@
2extern crate log; 2extern crate log;
3#[macro_use] 3#[macro_use]
4extern crate failure; 4extern crate failure;
5#[macro_use]
5extern crate serde_derive; 6extern crate serde_derive;
6extern crate serde; 7extern crate serde;
7extern crate flexi_logger; 8extern crate flexi_logger;
@@ -64,27 +65,3 @@ fn main_inner() -> Result<()> {
64 info!("... IO is down"); 65 info!("... IO is down");
65 Ok(()) 66 Ok(())
66} 67}
67
68/*
69 (let ((backend (eglot-xref-backend)))
70 (mapcar
71 (lambda (xref)
72 (let ((loc (xref-item-location xref)))
73 (propertize
74 (concat
75 (when (xref-file-location-p loc)
76 (with-slots (file line column) loc
77 (format "%s:%s:%s:"
78 (propertize (file-relative-name file)
79 'face 'compilation-info)
80 (propertize (format "%s" line)
81 'face 'compilation-line
82 )
83 column)))
84 (xref-item-summary xref))
85 'xref xref)))
86 (xref-backend-apropos backend "Analysis"))
87 )
88
89
90*/