How to trigger the update notification for ExternalAnnotator ?

I'm now working with Lsp4Intellij and Clangd server, and found that, after reformatting action, the diagnostic annotation would show in wrong place.

The root cause is that "DaemonCodeAnalyzer.getInstance(project).restart(file);"  would not trigger the update notification for ExternalAnnotator.

I wonder to know how to trigger the updates for ExternalAnnotator.

1

请先登录再写评论。