@@ -11,7 +11,6 @@ use async_lsp::{
11
11
use common:: InputDb ;
12
12
use driver:: init_ingot;
13
13
use rustc_hash:: FxHashSet ;
14
- use salsa:: Setter ;
15
14
use url:: Url ;
16
15
17
16
use super :: { capabilities:: server_capabilities, hover:: hover_helper} ;
@@ -255,7 +254,7 @@ pub async fn handle_file_change(
255
254
backend
256
255
. db
257
256
. workspace ( )
258
- . touch ( & mut backend. db , url. clone ( ) , Some ( contents) ) ;
257
+ . update ( & mut backend. db , url. clone ( ) , contents) ;
259
258
}
260
259
}
261
260
ChangeKind :: Create => {
@@ -271,7 +270,7 @@ pub async fn handle_file_change(
271
270
backend
272
271
. db
273
272
. workspace ( )
274
- . touch ( & mut backend. db , url. clone ( ) , Some ( contents) ) ;
273
+ . update ( & mut backend. db , url. clone ( ) , contents) ;
275
274
276
275
// If a fe.toml was created, discover and load all files in the new ingot
277
276
if is_fe_toml {
@@ -295,11 +294,10 @@ pub async fn handle_file_change(
295
294
}
296
295
} ;
297
296
if let Ok ( url) = url:: Url :: from_file_path ( & path) {
298
- let file = backend
297
+ backend
299
298
. db
300
299
. workspace ( )
301
- . touch ( & mut backend. db , url. clone ( ) , None ) ;
302
- file. set_text ( & mut backend. db ) . to ( contents) ;
300
+ . update ( & mut backend. db , url. clone ( ) , contents) ;
303
301
304
302
// If fe.toml was modified, re-scan the ingot for any new files
305
303
if is_fe_toml {
0 commit comments