[I] CompileResult
Program and document context produced by a language-server compilation.
Properties
Section titled “Properties”| Property | Modifier | Type | Description |
|---|---|---|---|
document | readonly | TextDocument | undefined | Requested open document, if available; this is a host-owned document, not a cloned text snapshot. |
optionsFromConfig | readonly | CompilerOptions | Resolved project configuration before server defaults, client settings, and additional options are applied. |
program | readonly | Program | Compiled project, which may include more files than the requested document. |
script | readonly | TypeSpecScriptNode | undefined | AST for the requested path within the program; absent when that path is not a compiled TypeSpec file. |
tracker | readonly | CompileTracker | Compilation metadata, captured logs, and freshness checks against the server’s current change version. |