setText

open suspend override fun setText(document: Path, text: String, range: DocumentProvider.DocumentRange?)(source)

Sets the text content of the specified document, optionally within the provided range.

Parameters

document

The document where the text will be set.

text

The new text to replace within the document.

range

An optional range specifying the portion of the document to be replaced. If null, the entire document will be replaced.