File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
crates/language-server/src/functionality Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ use async_lsp::{
11
11
use common:: InputDb ;
12
12
use driver:: init_ingot;
13
13
use rustc_hash:: FxHashSet ;
14
+ use salsa:: Setter ;
14
15
use url:: Url ;
15
16
16
17
use super :: { capabilities:: server_capabilities, hover:: hover_helper} ;
@@ -294,10 +295,11 @@ pub async fn handle_file_change(
294
295
}
295
296
} ;
296
297
if let Ok ( url) = url:: Url :: from_file_path ( & path) {
297
- backend
298
+ let file = backend
298
299
. db
299
300
. workspace ( )
300
- . touch ( & mut backend. db , url. clone ( ) , Some ( contents) ) ;
301
+ . touch ( & mut backend. db , url. clone ( ) , None ) ;
302
+ file. set_text ( & mut backend. db ) . to ( contents) ;
301
303
302
304
// If fe.toml was modified, re-scan the ingot for any new files
303
305
if is_fe_toml {
You can’t perform that action at this time.
0 commit comments