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?

2 comments
Comment actions Permalink

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

0

Please sign in to leave a comment.