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

@ -143,7 +143,7 @@ let private renamed = Collections.Generic.Dictionary<string, string>()
let recording (path: string) (check: unit -> 'a) : 'a =
let seen = ResizeArray<Record>()
Macro.observe <-
Macro.observe.Value <-
Some(fun macro site input output names ->
for KeyValue(fresh, original) in names do
renamed[fresh] <- original
@ -157,7 +157,7 @@ let recording (path: string) (check: unit -> 'a) : 'a =
try
check ()
finally
Macro.observe <- None
Macro.observe.Value <- None
let full = IO.Path.GetFullPath path
// A form can be expanded more than once in one check, as a