Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Unified Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 1408163008: Fix for duplicate priority sources. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/analysis_server.dart
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart
index 9222f4e97656d34eca58ffefe4d17acf4bbdfb4e..cdf1561b0f9fbdf3f3b4da66e7fc87cbf53bef33 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -1085,7 +1085,8 @@ class AnalysisServer {
contextFound = true;
}
for (AnalysisContext context in folderMap.values) {
- if (context.getKindOf(source) != SourceKind.UNKNOWN) {
+ if (context != preferredContext &&
+ context.getKindOf(source) != SourceKind.UNKNOWN) {
sourceMap.putIfAbsent(context, () => <Source>[]).add(source);
contextFound = true;
}

Powered by Google App Engine
This is Rietveld 408576698