@@ -301,19 +301,12 @@ impl GlobalState {
301301 if let Some ( path) = vfs_path. as_path ( ) {
302302 let path = path. to_path_buf ( ) ;
303303 if reload:: should_refresh_for_change ( & path, file. kind ( ) ) {
304- workspace_structure_change = Some ( (
305- path. clone ( ) ,
306- false ,
307- AsRef :: < std:: path:: Path > :: as_ref ( & path) . ends_with ( "build.rs" ) ,
308- ) ) ;
304+ workspace_structure_change = Some ( ( path. clone ( ) , false ) ) ;
309305 }
310306 if file. is_created_or_deleted ( ) {
311307 has_structure_changes = true ;
312- workspace_structure_change = Some ( (
313- path,
314- self . crate_graph_file_dependencies . contains ( vfs_path) ,
315- false ,
316- ) ) ;
308+ workspace_structure_change =
309+ Some ( ( path, self . crate_graph_file_dependencies . contains ( vfs_path) ) ) ;
317310 } else if path. extension ( ) == Some ( "rs" . as_ref ( ) ) {
318311 modified_rust_files. push ( file. file_id ) ;
319312 }
@@ -365,16 +358,11 @@ impl GlobalState {
365358 // FIXME: ideally we should only trigger a workspace fetch for non-library changes
366359 // but something's going wrong with the source root business when we add a new local
367360 // crate see https://github.com/rust-lang/rust-analyzer/issues/13029
368- if let Some ( ( path, force_crate_graph_reload, build_scripts_touched) ) =
369- workspace_structure_change
370- {
361+ if let Some ( ( path, force_crate_graph_reload) ) = workspace_structure_change {
371362 self . fetch_workspaces_queue . request_op (
372363 format ! ( "workspace vfs file change: {path}" ) ,
373364 force_crate_graph_reload,
374365 ) ;
375- if build_scripts_touched {
376- self . fetch_build_data_queue . request_op ( format ! ( "build.rs changed: {path}" ) , ( ) ) ;
377- }
378366 }
379367 }
380368
0 commit comments