@@ -11,7 +11,6 @@ use async_lsp::{
1111use common:: InputDb ;
1212use driver:: init_ingot;
1313use rustc_hash:: FxHashSet ;
14- use salsa:: Setter ;
1514use url:: Url ;
1615
1716use super :: { capabilities:: server_capabilities, hover:: hover_helper} ;
@@ -255,7 +254,7 @@ pub async fn handle_file_change(
255254 backend
256255 . db
257256 . workspace ( )
258- . touch ( & mut backend. db , url. clone ( ) , Some ( contents) ) ;
257+ . update ( & mut backend. db , url. clone ( ) , contents) ;
259258 }
260259 }
261260 ChangeKind :: Create => {
@@ -271,7 +270,7 @@ pub async fn handle_file_change(
271270 backend
272271 . db
273272 . workspace ( )
274- . touch ( & mut backend. db , url. clone ( ) , Some ( contents) ) ;
273+ . update ( & mut backend. db , url. clone ( ) , contents) ;
275274
276275 // If a fe.toml was created, discover and load all files in the new ingot
277276 if is_fe_toml {
@@ -295,11 +294,10 @@ pub async fn handle_file_change(
295294 }
296295 } ;
297296 if let Ok ( url) = url:: Url :: from_file_path ( & path) {
298- let file = backend
297+ backend
299298 . db
300299 . 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) ;
303301
304302 // If fe.toml was modified, re-scan the ingot for any new files
305303 if is_fe_toml {
0 commit comments