Interface EditorSessionError

An error from a session intent (setActiveFile / closeFile), carrying a machine-readable .code.

interface EditorSessionError {
    code:
        | "invalid-params"
        | "forbidden"
        | "unknown"
        | "not-found"
        | "no-target";
    message: string;
    name: string;
    stack?: string;
}

Hierarchy

  • Error
    • EditorSessionError

Properties

Properties

code: "invalid-params" | "forbidden" | "unknown" | "not-found" | "no-target"
message: string
name: string
stack?: string