mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Watch for Cargo.toml and .lock changes
This commit is contained in:
parent
13cbe64a59
commit
f1f3d5cb84
1 changed files with 7 additions and 1 deletions
|
@ -273,7 +273,13 @@ impl GlobalState {
|
||||||
.flat_map(|it| it.to_roots(workspace_build_data.as_ref()))
|
.flat_map(|it| it.to_roots(workspace_build_data.as_ref()))
|
||||||
.filter(|it| it.is_member)
|
.filter(|it| it.is_member)
|
||||||
.flat_map(|root| {
|
.flat_map(|root| {
|
||||||
root.include.into_iter().map(|it| format!("{}/**/*.rs", it.display()))
|
root.include.into_iter().flat_map(|it| {
|
||||||
|
[
|
||||||
|
format!("{}/**/*.rs", it.display()),
|
||||||
|
format!("{}/**/Cargo.toml", it.display()),
|
||||||
|
format!("{}/**/Cargo.lock", it.display()),
|
||||||
|
]
|
||||||
|
})
|
||||||
})
|
})
|
||||||
.map(|glob_pattern| lsp_types::FileSystemWatcher {
|
.map(|glob_pattern| lsp_types::FileSystemWatcher {
|
||||||
glob_pattern,
|
glob_pattern,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue