The compiler's values of a compilation are written as .Value

The compiler keeps the state of a compilation in a context
(Compilation.fs, on its branch compilation-context), and a value that was a
module-level mutable is a Per. The server sets Diagnostics.verbose,
Paths.sourceOverrides, Paths.compilerAssembly and the five observers, each
now as x.Value <- ...

No change to what the server does: every check still runs in the one root
context.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Linus Björnstam 2026-11-25 08:39:42 +01:00
parent ce426b94df
commit c5acafd5dd
5 changed files with 14 additions and 14 deletions

View file

@ -194,7 +194,7 @@ let recording (path: string) (text: string) (check: unit -> 'a) : 'a =
let full = IO.Path.GetFullPath path
let mutable index = empty
Inference.observe <-
Inference.observe.Value <-
Some(fun env decls ->
// The first program with names in the file is the file's: one
// checked before it is a dependency's.
@ -204,7 +204,7 @@ let recording (path: string) (text: string) (check: unit -> 'a) : 'a =
try
check ()
finally
Inference.observe <- None
Inference.observe.Value <- None
byFile[full] <- index
checkedTexts[full] <- text