Documentation

Lean.Data.Lsp.Internal

This file contains types for communication between the watchdog and the workers. These messages are not visible externally to users of the LSP server.

Most reference-related types have custom FromJson/ToJson implementations to reduce the size of the resulting JSON.

Identifier of a reference.

Instances For

    Converts the reference identifier to a string by prefixing it with a symbol.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Converts the string representation of a reference identifier back to a reference identifier. The string representation must have been created by RefIdent.toString.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        Equations
        • One or more equations did not get rendered due to their size.

        Information about the declaration surrounding a reference.

        • name : Lake.Name

          Name of the declaration surrounding a reference.

        • Range of the declaration surrounding a reference.

        • selectionRange : Lean.Lsp.Range

          Selection range of the declaration surrounding a reference.

        Instances For

          Denotes the range of a reference, as well as the parent declaration of the reference. If the reference is itself a declaration, then it contains no parent declaration.

          Instances For

            Definition site and usage sites of a reference. Obtained from Lean.Server.RefInfo.

            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Equations
              • One or more equations did not get rendered due to their size.

              References from a single module/file

              Equations
              Instances For
                Equations
                • One or more equations did not get rendered due to their size.
                Equations
                • One or more equations did not get rendered due to their size.

                $/lean/ileanInfoUpdate and $/lean/ileanInfoFinal watchdog<-worker notifications.

                Contains the file's definitions and references.

                • version : Nat

                  Version of the file these references are from.

                • references : Lean.Lsp.ModuleRefs

                  All references for the file.

                Instances For