Skip to content

[I] CompileResult

Program and document context produced by a language-server compilation.

PropertyModifierTypeDescription
documentreadonlyTextDocument | undefinedRequested open document, if available; this is a host-owned document, not a cloned text snapshot.
optionsFromConfigreadonlyCompilerOptionsResolved project configuration before server defaults, client settings, and additional options are applied.
programreadonlyProgramCompiled project, which may include more files than the requested document.
scriptreadonlyTypeSpecScriptNode | undefinedAST for the requested path within the program; absent when that path is not a compiled TypeSpec file.
trackerreadonlyCompileTrackerCompilation metadata, captured logs, and freshness checks against the server’s current change version.