This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree 3 files changed +14
-2
lines changed 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 465
465
"default" : true ,
466
466
"type" : " boolean"
467
467
},
468
+ "rust-analyzer.showDependenciesExplorer" : {
469
+ "markdownDescription" : " Whether to show the dependencies view." ,
470
+ "default" : true ,
471
+ "type" : " boolean"
472
+ },
468
473
"$generated-start" : {},
469
474
"rust-analyzer.assist.emitMustUse" : {
470
475
"markdownDescription" : " Whether to insert #[must_use] when generating `as_` methods\n for enum variants." ,
2013
2018
{
2014
2019
"id" : " rustDependencies" ,
2015
2020
"name" : " Rust Dependencies" ,
2016
- "when" : " inRustProject"
2021
+ "when" : " inRustProject && config.rust-analyzer.showDependenciesExplorer "
2017
2022
}
2018
2023
]
2019
2024
},
Original file line number Diff line number Diff line change @@ -284,6 +284,10 @@ export class Config {
284
284
get useRustcErrorCode ( ) {
285
285
return this . get < boolean > ( "diagnostics.useRustcErrorCode" ) ;
286
286
}
287
+
288
+ get showDependenciesExplorer ( ) {
289
+ return this . get < boolean > ( "showDependenciesExplorer" ) ;
290
+ }
287
291
}
288
292
289
293
// the optional `cb?` parameter is meant to be used to add additional
Original file line number Diff line number Diff line change @@ -263,7 +263,10 @@ export class Ctx {
263
263
}
264
264
await client . start ( ) ;
265
265
this . updateCommands ( ) ;
266
- this . prepareTreeDependenciesView ( client ) ;
266
+
267
+ if ( this . config . showDependenciesExplorer ) {
268
+ this . prepareTreeDependenciesView ( client ) ;
269
+ }
267
270
}
268
271
269
272
private prepareTreeDependenciesView ( client : lc . LanguageClient ) {
You can’t perform that action at this time.
0 commit comments