feat: add File.tryRead, File.tryWrite, File.tryDelete returning Result

Add safe variants of File operations that return Result<T, String> instead
of crashing with RuntimeError. This prevents server crashes when a file
is missing or unwritable.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-20 11:04:33 -05:00
parent 018a799c05
commit 26b94935e9
4 changed files with 211 additions and 1 deletions

2
Cargo.lock generated
View File

@@ -776,7 +776,7 @@ dependencies = [
[[package]]
name = "lux"
version = "0.1.6"
version = "0.1.7"
dependencies = [
"glob",
"lsp-server",