WorkspaceFileUpdate

data class WorkspaceFileUpdate(val file: WorkspaceFile, val prevDoc: Text, val changes: ChangeSet)

A pending update for a file, produced by Workspace.syncFiles.

Mirrors upstream @codemirror/lsp-client's WorkspaceFileUpdate. It carries the file along with the document as the server last saw it (prevDoc) and the accumulated changes to send. LSPClient.sync consumes these to emit textDocument/didChange notifications.

Parameters

file

The file being updated.

prevDoc

The document as last synchronized with the server.

changes

The changes to apply to prevDoc to reach WorkspaceFile.doc.

Constructors

Link copied to clipboard
constructor(file: WorkspaceFile, prevDoc: Text, changes: ChangeSet)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard