Update editor, themes, menus, backgrounds, and release tooling
This commit is contained in:
@@ -613,7 +613,7 @@ pub fn workspace_write(
|
||||
write_text(&path, &contents, expected.as_deref())
|
||||
}
|
||||
|
||||
fn write_text(path: &Path, contents: &str, expected: Option<&str>) -> WsResult<()> {
|
||||
pub(crate) fn write_text(path: &Path, contents: &str, expected: Option<&str>) -> WsResult<()> {
|
||||
if let Some(expected) = expected {
|
||||
let current = fs::read_to_string(path).map_err(|_| {
|
||||
err("Save blocked: file was removed or cannot be read. Your edits are still open.")
|
||||
|
||||
Reference in New Issue
Block a user