Documentation

Lapis.VFS.Document

Snapshot Types #

Reason for creating a snapshot

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

      Unique identifier for a snapshot

      Instances For
        Equations
        Instances For
          Equations
          Instances For

            A snapshot of document state at a point in time

            Instances For
              Equations
              Instances For

                Create a new snapshot from current document state

                Equations
                Instances For

                  Increment reference count

                  Equations
                  Instances For

                    Decrement reference count

                    Equations
                    Instances For

                      Check if snapshot can be pruned

                      Equations
                      Instances For

                        Document State #

                        Complete state of a single document

                        Instances For
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            def Lapis.VFS.Document.Document.create (uri languageId : String) (version : Int) (content : String) :

                            Create a new document from initial content

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

                              Get total byte length of document

                              Equations
                              Instances For

                                Get total line count

                                Equations
                                Instances For

                                  Get full document content as string

                                  Equations
                                  Instances For

                                    Create a conversion context for position operations

                                    Equations
                                    Instances For

                                      Text Operations #

                                      Get text in a byte range

                                      Equations
                                      Instances For

                                        Get text for a specific line

                                        Equations
                                        Instances For

                                          Get text in an LSP range

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

                                            Edit Operations #

                                            def Lapis.VFS.Document.Document.applyByteEdit (doc : Document) (startByte endByte : Nat) (newText : String) (newVersion : Int) :

                                            Apply a single edit at a byte range

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              def Lapis.VFS.Document.Document.applyEdit (doc : Document) (range : Position.LspRange) (newText : String) (newVersion : Int) :

                                              Apply an edit using LSP positions

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

                                                Apply multiple edits (must be in reverse document order)

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

                                                  Insert text at a position

                                                  Equations
                                                  Instances For

                                                    Delete text in a range

                                                    Equations
                                                    Instances For

                                                      Position Conversion #

                                                      Convert byte offset to LSP position

                                                      Equations
                                                      Instances For

                                                        Snapshot Operations #

                                                        Create a new snapshot of current state

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

                                                          Find a snapshot by ID

                                                          Equations
                                                          Instances For

                                                            Acquire a snapshot (increment ref count)

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

                                                              Release a snapshot (decrement ref count)

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

                                                                Prune snapshots that are no longer needed

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

                                                                  Get the piece table from a snapshot

                                                                  Equations
                                                                  Instances For

                                                                    Get the line index from a snapshot

                                                                    Equations
                                                                    Instances For

                                                                      Line Index Management #

                                                                      Force a full rebuild of the line index

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

                                                                        Compact the piece table (merge adjacent pieces)

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