how to get fileBaseIndex ready
已回答
I create a toolwindow when project opened , and throw a indexNotReady Exception, I want to make the index ready, so I try to call
FileEditorManager#openFile
to load fileIndex , then I call method
runWhenLoaded
to do some work ,but I got
com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: EventQueue.isDispatchThread()=false,
How to fix it ?
请先登录再写评论。
Make your ToolWindowFactory implement also DumbAware interface.
any other method I can make the file index ready? by open/close files, it takes long time !