def set
import bolt@1.27.0.0/src/lsp/docs.bend as Docsimport Base
39# a document's text set (opened, or changed); its errors and marks stay
40def set(+docs: List<&2, Doc>, +uri: String, text: String) -> List<&2, Doc>:
41 Doc{uri, text, errors(docs, uri), marks(docs, uri)} <> del(docs, uri)