Editor opened using FileEditorProvider is getting blank after switching between other editors.


I am working on a plugin compatible with Intellij 2021.X, it has to show a web page in result, to achieve this I am using FileEditorProvider having a JCEF browser component attached to it. I also implemented the marker interface DumbAware on my FileEditorProvider.

Everything works fine for me initially, FileEditorProvider is opening a virtual file in a new editor tab and showing a web page using JCEF, but when I switch to other files and come back to my custom editor, sometimes it is just showing me a black screen instead of the web page which was opened earlier and to get the web page again editor has to be reopened in workspace.

It happens randomly while switching between custom editor and other editors, sometimes it gets blank after I switch 2-3 switches some time in just 1 switch.
I would appreciate any help to fix this issue. Thank you!!!!

Comment actions Permalink

There's some problems with JCEF, see https://youtrack.jetbrains.com/issue/IDEA-260045 and related issues

Comment actions Permalink

Thank you for the information.

Comment actions Permalink

Thanks a ton for sharing your knowledge!




Please sign in to leave a comment.