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

Unified Diff: pkg/analysis_server/lib/src/services/completion/import_uri_contributor.dart

Issue 1128833003: check for package lib exist before making package suggestions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 5 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
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/completion/import_uri_contributor_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/completion/import_uri_contributor.dart
diff --git a/pkg/analysis_server/lib/src/services/completion/import_uri_contributor.dart b/pkg/analysis_server/lib/src/services/completion/import_uri_contributor.dart
index 855185287347f864ff9db1d4ad0e777d2a0d1826..0d56e9810702d08e77c45a5a6ac861373a4579ca 100644
--- a/pkg/analysis_server/lib/src/services/completion/import_uri_contributor.dart
+++ b/pkg/analysis_server/lib/src/services/completion/import_uri_contributor.dart
@@ -137,7 +137,9 @@ class _ImportUriSuggestionBuilder extends SimpleAstVisitor {
String prefix = 'package:$pkgName/';
_addSuggestion(prefix);
for (Folder folder in folders) {
- _addPackageFolderSuggestions(partial, prefix, folder);
+ if (folder.exists) {
+ _addPackageFolderSuggestions(partial, prefix, folder);
+ }
}
});
}
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/completion/import_uri_contributor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698