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