Skip to content

workspaces.reload_init

Evaluates the init files of the workspace (every workspace without workspaceId) again, and the user’s init file in the user host (dropping the runtime changes of settings.set), and answers what loaded and what failed (PRT-330, DMN-1206).

/** `workspaces.reload_init` params (PRT-330): one workspace, or every workspace without one. */
export type ReloadInitParams = {
workspaceId?: string | null;
};
/** `workspaces.reload_init` result (PRT-330). */
export type ReloadedInit = {
/** One entry per workspace whose init files were evaluated again. */
workspaces: ReloadedWorkspace[];
};
/** One workspace's init files evaluated again (PRT-330). */
export type ReloadedWorkspace = {
/** The init files that failed to load, with their error (`<file>:<line>:<column>: …` when it has a position). */
errors: { file: string; message: string }[];
/** The init files that loaded, in load order (absolute paths). */
loaded: string[];
workspaceId: string;
};