File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 99import com .intellij .openapi .fileEditor .FileEditorManagerEvent ;
1010import com .intellij .openapi .fileEditor .FileEditorManagerListener ;
1111import com .intellij .openapi .project .Project ;
12+ import com .intellij .openapi .util .Computable ;
1213import com .intellij .openapi .vfs .VirtualFile ;
1314import com .intellij .psi .PsiDocumentManager ;
1415import com .intellij .psi .PsiElement ;
@@ -250,7 +251,9 @@ public void processRawData(String message) {
250251 location .setAttribute ("column" , String .valueOf (logicalPosition .column ));
251252 location .setAttribute ("path" , RelativePathGetter .getRelativePath (filePath , projectPath ));
252253 gaze .appendChild (location );
253- Element aSTStructure = getASTStructureElement (psiElement );
254+ Element aSTStructure = ApplicationManager .getApplication ().runReadAction (
255+ (Computable <Element >) () -> getASTStructureElement (psiElement )
256+ );
254257 gaze .appendChild (aSTStructure );
255258 lastElement = psiElement ;
256259// System.out.println(gaze.getAttribute("timestamp") + " " + System.currentTimeMillis());
You can’t perform that action at this time.
0 commit comments