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?