| Index: pkg/analysis_server/lib/src/context_manager.dart
|
| diff --git a/pkg/analysis_server/lib/src/context_manager.dart b/pkg/analysis_server/lib/src/context_manager.dart
|
| index 41af5d9316c7eaa5667ced58e2c08671e22df760..4333b45473bfc3325df2c24b4aa627f86e2d756c 100644
|
| --- a/pkg/analysis_server/lib/src/context_manager.dart
|
| +++ b/pkg/analysis_server/lib/src/context_manager.dart
|
| @@ -346,6 +346,11 @@ abstract class ContextManagerCallbacks {
|
| AnalysisContext addContext(Folder folder, AnalysisOptions options);
|
|
|
| /**
|
| + * The given [file] was removed from the folder analyzed in the [driver].
|
| + */
|
| + void applyFileRemoved(AnalysisDriver driver, String file);
|
| +
|
| + /**
|
| * Called when the set of files associated with a context have changed (or
|
| * some of those files have been modified). [changeSet] is the set of
|
| * changes that need to be applied to the context.
|
| @@ -1479,7 +1484,7 @@ class ContextManagerImpl implements ContextManager {
|
| }
|
|
|
| if (enableNewAnalysisDriver) {
|
| - info.analysisDriver.removeFile(path);
|
| + callbacks.applyFileRemoved(info.analysisDriver, path);
|
| } else {
|
| List<Source> sources = info.context.getSourcesWithFullName(path);
|
| if (!sources.isEmpty) {
|
|
|