aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_lsp_server/src/main.rs')
-rw-r--r--crates/ra_lsp_server/src/main.rs25
1 files changed, 24 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main.rs b/crates/ra_lsp_server/src/main.rs
index c07eb0140..4d555d488 100644
--- a/crates/ra_lsp_server/src/main.rs
+++ b/crates/ra_lsp_server/src/main.rs
@@ -29,7 +29,6 @@ fn main() -> Result<()> {
29 } 29 }
30 } 30 }
31} 31}
32
33fn main_inner() -> Result<()> { 32fn main_inner() -> Result<()> {
34 let (receiver, sender, threads) = stdio_transport(); 33 let (receiver, sender, threads) = stdio_transport();
35 let cwd = ::std::env::current_dir()?; 34 let cwd = ::std::env::current_dir()?;
@@ -50,3 +49,27 @@ fn main_inner() -> Result<()> {
50 info!("... IO is down"); 49 info!("... IO is down");
51 Ok(()) 50 Ok(())
52} 51}
52
53/*
54 (let ((backend (eglot-xref-backend)))
55 (mapcar
56 (lambda (xref)
57 (let ((loc (xref-item-location xref)))
58 (propertize
59 (concat
60 (when (xref-file-location-p loc)
61 (with-slots (file line column) loc
62 (format "%s:%s:%s:"
63 (propertize (file-relative-name file)
64 'face 'compilation-info)
65 (propertize (format "%s" line)
66 'face 'compilation-line
67 )
68 column)))
69 (xref-item-summary xref))
70 'xref xref)))
71 (xref-backend-apropos backend "Analysis"))
72 )
73
74
75*/