Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 34aab1f

Browse files
committed
fix: stop plugin flickering
1 parent 08092a6 commit 34aab1f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/analyzer_plugin/analyzer_plugin.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ class AnalyzerPlugin extends ServerPlugin {
5656
required AnalysisContext analysisContext,
5757
required String path,
5858
}) async {
59+
final isAnalyzed = analysisContext.contextRoot.isAnalyzed(path);
60+
if (!isAnalyzed) {
61+
return;
62+
}
63+
5964
try {
6065
final resolvedUnit =
6166
await analysisContext.currentSession.getResolvedUnit(path);

0 commit comments

Comments
 (0)