@@ -301,19 +301,12 @@ impl GlobalState {
301
301
if let Some ( path) = vfs_path. as_path ( ) {
302
302
let path = path. to_path_buf ( ) ;
303
303
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 ) ) ;
309
305
}
310
306
if file. is_created_or_deleted ( ) {
311
307
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) ) ) ;
317
310
} else if path. extension ( ) == Some ( "rs" . as_ref ( ) ) {
318
311
modified_rust_files. push ( file. file_id ) ;
319
312
}
@@ -365,16 +358,11 @@ impl GlobalState {
365
358
// FIXME: ideally we should only trigger a workspace fetch for non-library changes
366
359
// but something's going wrong with the source root business when we add a new local
367
360
// 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 {
371
362
self . fetch_workspaces_queue . request_op (
372
363
format ! ( "workspace vfs file change: {path}" ) ,
373
364
force_crate_graph_reload,
374
365
) ;
375
- if build_scripts_touched {
376
- self . fetch_build_data_queue . request_op ( format ! ( "build.rs changed: {path}" ) , ( ) ) ;
377
- }
378
366
}
379
367
}
380
368
0 commit comments