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

Commit

Permalink
fix: stop plugin flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
incendial committed Oct 13, 2022
1 parent 08092a6 commit 34aab1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/analyzer_plugin/analyzer_plugin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ class AnalyzerPlugin extends ServerPlugin {
required AnalysisContext analysisContext,
required String path,
}) async {
final isAnalyzed = analysisContext.contextRoot.isAnalyzed(path);
if (!isAnalyzed) {
return;
}

try {
final resolvedUnit =
await analysisContext.currentSession.getResolvedUnit(path);
Expand Down

0 comments on commit 34aab1f

Please sign in to comment.