You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Remove the unsaved file from the project as well
53
-
// TODO: ideally the baml project just has a view of unsaved files directly from the Session itself, and not maintain its own state / copy of the unsaved files
let document_key = DocumentKey::from_url(&PathBuf::from(project.lock().root_path()),&url)
45
+
.internal_error()?;
46
+
session
47
+
.close_document(&document_key)
48
+
.with_failure_code(ErrorCode::InternalError)?;
49
+
// Remove the unsaved file from the project as well
50
+
// TODO: ideally the baml project just has a view of unsaved files directly from the Session itself, and not maintain its own state / copy of the unsaved files
0 commit comments