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?

0
2 comments
Avatar
Permanently deleted user

The virtualfile is updated. But when i access the psifile its not updated

0

Please refer to https://confluence.jetbrains.com/display/IDEADEV/IntelliJ+IDEA+Architectural+Overview which contains an answer to your question.


0

Please sign in to leave a comment.