How my plugin can get notified when user modifies current file in editor?

My plugin parses current editor file and provides result but obviously I'd like to render results again when user changes something in the file. How do I get notification? I failed to find this in documentation so far. 

Are there different levels of change - like changed one character, changed line, saved file?

4 comments
Comment actions Permalink

Please read the PSI Files section in our docs. 

0
Comment actions Permalink

Already did, this is why I am asking here for support. There is no answer to my question there. 

0
Comment actions Permalink

Andrei, you have mentioned that you didn't find information about being notified about files change - that's why I've linked you the exact page.

If you have any specific problem - please provide more details so we'll be on the same page.

0
Comment actions Permalink

I think I was quite specific. So you are saying that the single possible option is to use PSI structure listeners or whatever? 

So there is no way to track changes in Editor, independently on language structure?

0

Please sign in to leave a comment.