TextFileView.setViewData() method
Set the data to the editor. This is used to load the file contents.
If clear is set, then it means weโre opening a completely different file. In that case, you should call clear(), or implement a slightly more efficient clearing mechanism given the new data to be set.
Signature:
abstract setViewData(data: string, clear: boolean): void;
Parameters
Parameter | Type | Description |
---|---|---|
data | string | |
clear | boolean |
Returns:
void