TextFileView โ€บ clear

TextFileView.clear() method

Clear the editor. This is usually called when weโ€™re about to open a completely different file, so itโ€™s best to clear any editor states like undo-redo history, and any caches/indexes associated with the previous file contents.

Signature:

abstract clear(): void;

Returns:

void