monaco-definition-provider - v2.0.0
    Preparing search index...

    Type Alias LoadFileHook

    LoadFileHook: (
        uri: string,
        importPath: string,
        fromUri: string,
    ) => Promise<{ content: string; languageId?: string; uri: string } | null>

    Host hook: the library believes a file exists at uri but has no model for it. The host fetches it (server, virtual FS, …) and returns its content; the library creates a Monaco model from it so subsequent navigation into that file works natively.

    Type Declaration

      • (
            uri: string,
            importPath: string,
            fromUri: string,
        ): Promise<{ content: string; languageId?: string; uri: string } | null>
      • Parameters

        • uri: string

          Candidate URI computed from the import specifier.

        • importPath: string

          The original import specifier as written in source.

        • fromUri: string

          URI of the document containing the import.

        Returns Promise<{ content: string; languageId?: string; uri: string } | null>