views.errors
The init file errors every window showing the workspace reports (PRT-116).
Params: WorkspaceRef
Section titled “Params: WorkspaceRef”/** Params naming one workspace. */export type WorkspaceRef = { workspaceId: string;};Result: ViewErrors
Section titled “Result: ViewErrors”/** * `views.errors` result (PRT-116): the latest init file errors of every window whose * report is about the workspace, by connection. */export type ViewErrors = { /** One entry per window showing the workspace, those without errors included. */ windows: WindowFileErrors[];};Types they use
Section titled “Types they use”/** The init file errors one window reports (PRT-116). */export type WindowFileErrors = { /** The `client` of the window's `system.hello`. */ client: string; errors: FileErrorReport[];};
/** One runtime error a window shows of an init file (UI-304). */export type FileErrorReport = { /** `user` for the user's init file, else `.omfp/init.ts`. */ file: string; /** The error as the window shows it: a compile error with `file:line:column`, a throw, a render or layout error. */ message: string;};