mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
introduce DCA."restart" methods with "reason" parameter, port old "restart"s to the new ones, to fix IJPL-207110 make daemon restart explicit and visible in logs
GitOrigin-RevId: 23e8c9ea47b272be73814849fb0648caf1a317eb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3400fb3809
commit
e1d39a85f4
+1
-1
@@ -118,7 +118,7 @@ class CodeAnalysisCommand(text: String, line: Int) : AbstractCommand(text, line)
|
||||
DumbService.getInstance(project).smartInvokeLater {
|
||||
PsiManager.getInstance(project).dropPsiCaches()
|
||||
context.message("Code highlighting started", line)
|
||||
DaemonCodeAnalyzer.getInstance(project).restart()
|
||||
DaemonCodeAnalyzer.getInstance(project).restart(this)
|
||||
}
|
||||
return actionCallback.toPromise()
|
||||
}
|
||||
|
||||
+1
-1
@@ -115,7 +115,7 @@ class DoLocalInspection(text: String, line: Int) : PlaybackCommandCoroutineAdapt
|
||||
|
||||
val document = FileEditorManager.getInstance(project).selectedTextEditor!!.document
|
||||
val psiFile = PsiDocumentManager.getInstance(project).getPsiFile(document)!!
|
||||
DaemonCodeAnalyzer.getInstance(project).restart(psiFile)
|
||||
DaemonCodeAnalyzer.getInstance(project).restart(psiFile, this)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user