mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 14:21:44 +00:00
Cancel requests during shutdown
This commit is contained in:
parent
8a4c248c48
commit
b90ea640e6
3 changed files with 10 additions and 5 deletions
|
@ -202,6 +202,9 @@ impl AnalysisHost {
|
|||
pub fn per_query_memory_usage(&mut self) -> Vec<(String, ra_prof::Bytes)> {
|
||||
self.db.per_query_memory_usage()
|
||||
}
|
||||
pub fn request_cancellation(&mut self) {
|
||||
self.db.request_cancellation();
|
||||
}
|
||||
pub fn raw_database(
|
||||
&self,
|
||||
) -> &(impl hir::db::HirDatabase + salsa::Database + ra_db::SourceDatabaseExt) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue