| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'dart:io' show Platform; | 7 import 'dart:io' show Platform; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/plugin/notification_manager.dart'; | 9 import 'package:analysis_server/src/plugin/notification_manager.dart'; |
| 10 import 'package:analyzer/context/context_root.dart' as analyzer; | 10 import 'package:analyzer/context/context_root.dart' as analyzer; |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 301 |
| 302 /** | 302 /** |
| 303 * Initialize a newly created plugin manager. The notifications from the | 303 * Initialize a newly created plugin manager. The notifications from the |
| 304 * running plugins will be handled by the given [notificationManager]. | 304 * running plugins will be handled by the given [notificationManager]. |
| 305 */ | 305 */ |
| 306 PluginManager(this.resourceProvider, this.byteStorePath, this.sdkPath, | 306 PluginManager(this.resourceProvider, this.byteStorePath, this.sdkPath, |
| 307 this.notificationManager, this.instrumentationService) { | 307 this.notificationManager, this.instrumentationService) { |
| 308 // TODO(brianwilkerson) Figure out the right list of plugin paths. | 308 // TODO(brianwilkerson) Figure out the right list of plugin paths. |
| 309 _whitelistGlobs = <Glob>[ | 309 _whitelistGlobs = <Glob>[ |
| 310 new Glob(resourceProvider.pathContext.separator, | 310 new Glob(resourceProvider.pathContext.separator, |
| 311 '**/analyze_angular/tools/analysis_plugin') | 311 '**/angular_analyzer_plugin/tools/analyzer_plugin') |
| 312 ]; | 312 ]; |
| 313 } | 313 } |
| 314 | 314 |
| 315 /** | 315 /** |
| 316 * Return a list of all of the plugins that are currently known. | 316 * Return a list of all of the plugins that are currently known. |
| 317 */ | 317 */ |
| 318 @visibleForTesting | 318 @visibleForTesting |
| 319 List<PluginInfo> get plugins => _pluginMap.values.toList(); | 319 List<PluginInfo> get plugins => _pluginMap.values.toList(); |
| 320 | 320 |
| 321 /** | 321 /** |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 879 * The completer that will be used to complete the future when the response is | 879 * The completer that will be used to complete the future when the response is |
| 880 * received from the plugin. | 880 * received from the plugin. |
| 881 */ | 881 */ |
| 882 final Completer<Response> completer; | 882 final Completer<Response> completer; |
| 883 | 883 |
| 884 /** | 884 /** |
| 885 * Initialize a pending request. | 885 * Initialize a pending request. |
| 886 */ | 886 */ |
| 887 _PendingRequest(this.method, this.requestTime, this.completer); | 887 _PendingRequest(this.method, this.requestTime, this.completer); |
| 888 } | 888 } |
| OLD | NEW |