| Index: pkg/analysis_server/lib/src/services/index/index_contributor.dart
|
| diff --git a/pkg/analysis_server/lib/src/services/index/index_contributor.dart b/pkg/analysis_server/lib/src/services/index/index_contributor.dart
|
| index 01433754b56a61f67d9a0f11e9755e983d454ac0..53ef4643de0866f62992588f869869d37d7558bf 100644
|
| --- a/pkg/analysis_server/lib/src/services/index/index_contributor.dart
|
| +++ b/pkg/analysis_server/lib/src/services/index/index_contributor.dart
|
| @@ -40,8 +40,13 @@ void indexDartUnit(
|
| return;
|
| }
|
| // do index
|
| - unit.accept(new _IndexContributor(store));
|
| - store.doneIndex();
|
| + try {
|
| + unit.accept(new _IndexContributor(store));
|
| + store.doneIndex();
|
| + } catch (e) {
|
| + store.cancelIndexDart();
|
| + rethrow;
|
| + }
|
| }
|
|
|
| /**
|
|
|