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 11//! Applies changes to the IDE state transactionally.
22
3- use std:: { fmt , sync:: Arc } ;
3+ use std:: sync:: Arc ;
44
55use base_db:: {
66 salsa:: { Database , Durability , SweepStrategy } ,
7- Change , FileId , SourceRootId ,
7+ Change , SourceRootId ,
88} ;
99use profile:: { memory_usage, Bytes } ;
1010use rustc_hash:: FxHashSet ;
1111
1212use crate :: { symbol_index:: SymbolsDatabase , RootDatabase } ;
1313
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-
4214impl RootDatabase {
4315 pub fn request_cancellation ( & mut self ) {
4416 let _p = profile:: span ( "RootDatabase::request_cancellation" ) ;
You can’t perform that action at this time.
0 commit comments