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

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

Issue 308713002: Handle file additions/removals in ContextDirectoryManager. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address Konstantin's comments Created 6 years, 7 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 3554ec898f71601bece7c6a76efacfd994a75073..d4bcb3d16ca11ebb9b34de3de3b058fd92b7b9f1 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -343,7 +343,7 @@ class AnalysisServer {
*/
AnalysisContext _getAnalysisContext(String path) {
for (Folder folder in folderMap.keys) {
- if (path.startsWith(folder.fullName)) {
+ if (path.startsWith(folder.path)) {
return folderMap[folder].context;
}
}

Powered by Google App Engine
This is Rietveld 408576698