How do I manipulate Document from FileEditor? I implemented my FileEditor, which changes Document for a selected virtual file. When doing things like Document.replaceString, I have to call it from EditorWriteAction, correct?
To call it, I need to pass an "Editor" implementation. However, I don't have an associated "Editor" implementation for the virtual file because I am using my own "FileEditor".
Do I have to open an TextEditor for that purpose? Or are there any other ways to do it?
Thanks in advance.