mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ea-24917
This commit is contained in:
+2
-1
@@ -88,7 +88,8 @@ public abstract class TextEditorHighlightingPass implements HighlightingPass {
|
||||
public final void applyInformationToEditor() {
|
||||
if (!isValid()) return; // Document has changed.
|
||||
if (DumbService.getInstance(myProject).isDumb() && !(this instanceof DumbAware)) {
|
||||
PsiFile file = PsiDocumentManager.getInstance(myProject).getPsiFile(getDocument());
|
||||
Document document = getDocument();
|
||||
PsiFile file = document == null ? null : PsiDocumentManager.getInstance(myProject).getPsiFile(document);
|
||||
if (file != null) {
|
||||
((DaemonCodeAnalyzerImpl)DaemonCodeAnalyzer.getInstance(myProject)).getFileStatusMap().markFileUpToDate(getDocument(), file, getId());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user