File tree 3 files changed +12
-3
lines changed 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.11.1
2
+ - Call ` analyzeFiles ` from ` handleAffectedFiles ` only for files that are
3
+ analyzed in this analysis context.
4
+
1
5
## 0.11.0
2
6
- Using ` AnalysisContextCollection ` and ` AnalysisContext ` for analysis.
3
7
Original file line number Diff line number Diff line change @@ -198,14 +198,19 @@ abstract class ServerPlugin {
198
198
/// one or more files. The implementation may check if these files should
199
199
/// be analyzed, do such analysis, and send diagnostics.
200
200
///
201
- /// By default invokes [analyzeFiles] .
201
+ /// By default invokes [analyzeFiles] only for files that are analyzed in
202
+ /// this [analysisContext] .
202
203
Future <void > handleAffectedFiles ({
203
204
required AnalysisContext analysisContext,
204
205
required List <String > paths,
205
206
}) async {
207
+ final analyzedPaths = paths
208
+ .where (analysisContext.contextRoot.isAnalyzed)
209
+ .toList (growable: false );
210
+
206
211
await analyzeFiles (
207
212
analysisContext: analysisContext,
208
- paths: paths ,
213
+ paths: analyzedPaths ,
209
214
);
210
215
}
211
216
Original file line number Diff line number Diff line change 1
1
name : analyzer_plugin
2
2
description : A framework and support code for building plugins for the analysis server.
3
- version : 0.11.0
3
+ version : 0.11.1
4
4
repository : https://github.com/dart-lang/sdk/tree/main/pkg/analyzer_plugin
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments