mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
fix: Some file watching related vfs fixes
This commit is contained in:
parent
cd8eb0fe6d
commit
23613a9de7
4 changed files with 46 additions and 12 deletions
|
@ -241,7 +241,7 @@ pub(crate) fn handle_did_change_watched_files(
|
|||
state: &mut GlobalState,
|
||||
params: DidChangeWatchedFilesParams,
|
||||
) -> anyhow::Result<()> {
|
||||
for change in params.changes {
|
||||
for change in params.changes.iter().unique_by(|&it| &it.uri) {
|
||||
if let Ok(path) = from_proto::abs_path(&change.uri) {
|
||||
state.loader.handle.invalidate(path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue