File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -170,14 +170,6 @@ impl GlobalState {
170170 }
171171 }
172172
173- pub ( crate ) fn maybe_collect_garbage ( & mut self ) {
174- self . analysis_host . maybe_collect_garbage ( )
175- }
176-
177- pub ( crate ) fn collect_garbage ( & mut self ) {
178- self . analysis_host . collect_garbage ( )
179- }
180-
181173 pub ( crate ) fn send ( & mut self , message : lsp_server:: Message ) {
182174 self . sender . send ( message) . unwrap ( )
183175 }
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ impl GlobalState {
158158 }
159159 Task :: Unit => ( ) ,
160160 }
161- self . maybe_collect_garbage ( ) ;
161+ self . analysis_host . maybe_collect_garbage ( ) ;
162162 }
163163 Event :: Vfs ( task) => match task {
164164 vfs:: loader:: Message :: Loaded { files } => {
@@ -274,7 +274,7 @@ impl GlobalState {
274274 self . req_queue . incoming . register ( req. id . clone ( ) , ( req. method . clone ( ) , request_received) ) ;
275275
276276 RequestDispatcher { req : Some ( req) , global_state : self }
277- . on_sync :: < lsp_ext:: CollectGarbage > ( |s, ( ) | Ok ( s. collect_garbage ( ) ) ) ?
277+ . on_sync :: < lsp_ext:: CollectGarbage > ( |s, ( ) | Ok ( s. analysis_host . collect_garbage ( ) ) ) ?
278278 . on_sync :: < lsp_ext:: JoinLines > ( |s, p| handlers:: handle_join_lines ( s. snapshot ( ) , p) ) ?
279279 . on_sync :: < lsp_ext:: OnEnter > ( |s, p| handlers:: handle_on_enter ( s. snapshot ( ) , p) ) ?
280280 . on_sync :: < lsp_types:: request:: Shutdown > ( |_, ( ) | Ok ( ( ) ) ) ?
You can’t perform that action at this time.
0 commit comments