Issues with modifying the editor document
When I do something like this in a a Writecommand action,
editor.getDocument().insertString(offset, "Sample text");
I guess it is stored in cache and is not updated immediately.
So what can be done to get the update in the very immediate line.
I tried refreshing the Virtualfile synchronisely and asynchronisely, but didnt help.
So what can be done?
Please sign in to leave a comment.
The virtualfile is updated. But when i access the psifile its not updated
Please refer to https://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+Architectural+Overview which contains an answer to your question.