mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-07 18:58:51 +00:00
e32462c6d5
`ProjectWorkspace::to_roots` now returns a new `ProjectRoot` which contains information regarding whether or not the given path is part of the current workspace or an external dependency. This information can then be used in `ra_batch` and `ra_lsp_server` to implement more advanced filtering. This allows us to filter some unnecessary folders from external dependencies such as tests, examples and benches.
13 lines
334 B
Rust
13 lines
334 B
Rust
mod caps;
|
|
mod cargo_target_spec;
|
|
mod conv;
|
|
mod main_loop;
|
|
mod markdown;
|
|
mod project_model;
|
|
mod vfs_filter;
|
|
pub mod req;
|
|
pub mod init;
|
|
mod server_world;
|
|
|
|
pub type Result<T> = ::std::result::Result<T, ::failure::Error>;
|
|
pub use crate::{caps::server_capabilities, main_loop::main_loop, main_loop::LspError, init::InitializationOptions};
|