mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
eglot worksapce symbol
This commit is contained in:
parent
0952b928ad
commit
c69ff08dc9
2 changed files with 60 additions and 1 deletions
|
@ -29,7 +29,6 @@ fn main() -> Result<()> {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn main_inner() -> Result<()> {
|
||||
let (receiver, sender, threads) = stdio_transport();
|
||||
let cwd = ::std::env::current_dir()?;
|
||||
|
@ -50,3 +49,27 @@ fn main_inner() -> Result<()> {
|
|||
info!("... IO is down");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/*
|
||||
(let ((backend (eglot-xref-backend)))
|
||||
(mapcar
|
||||
(lambda (xref)
|
||||
(let ((loc (xref-item-location xref)))
|
||||
(propertize
|
||||
(concat
|
||||
(when (xref-file-location-p loc)
|
||||
(with-slots (file line column) loc
|
||||
(format "%s:%s:%s:"
|
||||
(propertize (file-relative-name file)
|
||||
'face 'compilation-info)
|
||||
(propertize (format "%s" line)
|
||||
'face 'compilation-line
|
||||
)
|
||||
column)))
|
||||
(xref-item-summary xref))
|
||||
'xref xref)))
|
||||
(xref-backend-apropos backend "Analysis"))
|
||||
)
|
||||
|
||||
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue