cxx-frontend
    Preparing search index...

    Interface ServeOptions

    The options of LanguageServer.serve.

    interface ServeOptions {
        appdir?: string;
        defines?: string[];
        exists?: (path: string) => boolean;
        includePaths?: string[];
        onTrace?: (message: string, verbose?: string) => void;
        port: MessagePortLike;
        quoteIncludePaths?: string[];
        readFile?: (path: string) => Promise<string | undefined>;
        std?: "c++14" | "c++17" | "c++20" | "c++23" | "c++26";
        sysroot?: string;
        systemIncludePaths?: string[];
        undefines?: string[];
        onMessage?(message: JsonRpcMessage): void;
    }

    Hierarchy

    Index
    appdir?: string
    defines?: string[]
    exists?: (path: string) => boolean
    includePaths?: string[]
    onTrace?: (message: string, verbose?: string) => void

    Type Declaration

      • (message: string, verbose?: string): void
      • Receives parser queue, phase, cancellation and code generation timings.

        Parameters

        • message: string
        • Optionalverbose: string

        Returns void

    The endpoint the server reads the messages from and writes them to.

    quoteIncludePaths?: string[]
    readFile?: (path: string) => Promise<string | undefined>
    std?: "c++14" | "c++17" | "c++20" | "c++23" | "c++26"
    sysroot?: string
    systemIncludePaths?: string[]
    undefines?: string[]