diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-21 10:56:05 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-21 10:56:05 +0000 |
commit | b03883279528986bd829e14f967db4b4c980049d (patch) | |
tree | b891f591e240e84d14dc8060e3706ee025cc0906 /crates/ra_lsp_server/src/lib.rs | |
parent | 1eb3bf41d75a8c744a0ecb586d4a2e92a1175c08 (diff) | |
parent | c6d6e6c6259709ec30eadb79a1908dca707a6499 (diff) |
Merge #997
997: Improve filtering of file roots r=matklad a=vipentti
`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.
Relates to discussion in #869
Co-authored-by: Ville Penttinen <[email protected]>
Diffstat (limited to 'crates/ra_lsp_server/src/lib.rs')
-rw-r--r-- | crates/ra_lsp_server/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/lib.rs b/crates/ra_lsp_server/src/lib.rs index 59e16a47c..113883bdd 100644 --- a/crates/ra_lsp_server/src/lib.rs +++ b/crates/ra_lsp_server/src/lib.rs | |||
@@ -4,6 +4,7 @@ mod conv; | |||
4 | mod main_loop; | 4 | mod main_loop; |
5 | mod markdown; | 5 | mod markdown; |
6 | mod project_model; | 6 | mod project_model; |
7 | mod vfs_filter; | ||
7 | pub mod req; | 8 | pub mod req; |
8 | pub mod init; | 9 | pub mod init; |
9 | mod server_world; | 10 | mod server_world; |