chore: Update Lean to v4.20.1 #209

Merged
aniva merged 6 commits from chore/toolchain into dev 2025-06-18 16:39:19 -07:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit a8b7f69632 - Show all commits

View File

@ -131,9 +131,8 @@ def inspect (args: Protocol.EnvInspect) (options: @&Protocol.Options): Protocol.
} }
| _ => pure core
let result ← if args.source?.getD false then
let srcSearchPath ← getSrcSearchPath
try
let sourceUri? ← module?.mapM (findLean srcSearchPath ·)
let sourceUri? ← module?.bindM (Server.documentUriFromModule? ·)
let declRange? ← findDeclarationRanges? name
let sourceStart? := declRange?.map (·.range.pos)
let sourceEnd? := declRange?.map (·.range.endPos)
@ -143,7 +142,7 @@ def inspect (args: Protocol.EnvInspect) (options: @&Protocol.Options): Protocol.
sourceStart?,
sourceEnd?,
}
catch _ =>
catch _e =>
.pure result
else
.pure result