File tree Expand file tree Collapse file tree 1 file changed +2
-30
lines changed Expand file tree Collapse file tree 1 file changed +2
-30
lines changed Original file line number Diff line number Diff line change 1
1
//! Applies changes to the IDE state transactionally.
2
2
3
- use std:: { fmt , sync:: Arc } ;
3
+ use std:: sync:: Arc ;
4
4
5
5
use base_db:: {
6
6
salsa:: { Database , Durability , SweepStrategy } ,
7
- Change , FileId , SourceRootId ,
7
+ Change , SourceRootId ,
8
8
} ;
9
9
use profile:: { memory_usage, Bytes } ;
10
10
use rustc_hash:: FxHashSet ;
11
11
12
12
use crate :: { symbol_index:: SymbolsDatabase , RootDatabase } ;
13
13
14
- #[ derive( Debug ) ]
15
- struct AddFile {
16
- file_id : FileId ,
17
- path : String ,
18
- text : Arc < String > ,
19
- }
20
-
21
- #[ derive( Debug ) ]
22
- struct RemoveFile {
23
- file_id : FileId ,
24
- path : String ,
25
- }
26
-
27
- #[ derive( Default ) ]
28
- struct RootChange {
29
- added : Vec < AddFile > ,
30
- removed : Vec < RemoveFile > ,
31
- }
32
-
33
- impl fmt:: Debug for RootChange {
34
- fn fmt ( & self , fmt : & mut fmt:: Formatter ) -> fmt:: Result {
35
- fmt. debug_struct ( "RootChange" )
36
- . field ( "added" , & self . added . len ( ) )
37
- . field ( "removed" , & self . removed . len ( ) )
38
- . finish ( )
39
- }
40
- }
41
-
42
14
impl RootDatabase {
43
15
pub fn request_cancellation ( & mut self ) {
44
16
let _p = profile:: span ( "RootDatabase::request_cancellation" ) ;
You can’t perform that action at this time.
0 commit comments