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_project_model/Cargo.toml | |
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_project_model/Cargo.toml')
-rw-r--r-- | crates/ra_project_model/Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ra_project_model/Cargo.toml b/crates/ra_project_model/Cargo.toml index 34d33531e..cf4adf35c 100644 --- a/crates/ra_project_model/Cargo.toml +++ b/crates/ra_project_model/Cargo.toml | |||
@@ -7,6 +7,7 @@ authors = ["rust-analyzer developers"] | |||
7 | [dependencies] | 7 | [dependencies] |
8 | log = "0.4.5" | 8 | log = "0.4.5" |
9 | rustc-hash = "1.0" | 9 | rustc-hash = "1.0" |
10 | relative-path = "0.4.0" | ||
10 | 11 | ||
11 | failure = "0.1.4" | 12 | failure = "0.1.4" |
12 | 13 | ||