| Index: pkg/analysis_server/lib/src/services/correction/organize_directives.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/correction/organize_directives.dart b/pkg/analysis_server/lib/src/services/correction/organize_directives.dart
|
| index 0d355668c424ff8fef5bdb953be6f67776ebf2ad..56d4bb092665c3edfd5c84dd39d68d535d058e31 100644
|
| --- a/pkg/analysis_server/lib/src/services/correction/organize_directives.dart
|
| +++ b/pkg/analysis_server/lib/src/services/correction/organize_directives.dart
|
| @@ -47,7 +47,9 @@ class DirectiveOrganizer {
|
|
|
| bool _isUnresolvedUri(UriBasedDirective directive) {
|
| for (AnalysisError error in errors) {
|
| - if (error.errorCode == CompileTimeErrorCode.URI_DOES_NOT_EXIST &&
|
| + ErrorCode errorCode = error.errorCode;
|
| + if ((errorCode == CompileTimeErrorCode.URI_DOES_NOT_EXIST ||
|
| + errorCode == CompileTimeErrorCode.URI_HAS_NOT_BEEN_GENERATED) &&
|
| directive.uri.offset == error.offset) {
|
| return true;
|
| }
|
|
|