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

Side by Side Diff: pkg/analysis_server/lib/src/plugin/plugin_manager.dart

Issue 2904983003: Update status pages to show package map and plugins (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/status/get_handler2.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 '**/analyze_angular/tools/analysis_plugin')
312 ]; 312 ];
313 } 313 }
314 314
315 /** 315 /**
316 * Return a list of all of the plugins that are currently known.
317 */
318 @visibleForTesting
319 List<PluginInfo> get plugins => _pluginMap.values.toList();
320
321 /**
316 * Add the plugin with the given [path] to the list of plugins that should be 322 * Add the plugin with the given [path] to the list of plugins that should be
317 * used when analyzing code for the given [contextRoot]. If the plugin had not 323 * used when analyzing code for the given [contextRoot]. If the plugin had not
318 * yet been started, then it will be started by this method. 324 * yet been started, then it will be started by this method.
319 */ 325 */
320 Future<Null> addPluginToContextRoot( 326 Future<Null> addPluginToContextRoot(
321 analyzer.ContextRoot contextRoot, String path) async { 327 analyzer.ContextRoot contextRoot, String path) async {
322 if (!_isWhitelisted(path)) { 328 if (!_isWhitelisted(path)) {
323 return; 329 return;
324 } 330 }
325 PluginInfo plugin = _pluginMap[path]; 331 PluginInfo plugin = _pluginMap[path];
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 * The completer that will be used to complete the future when the response is 884 * The completer that will be used to complete the future when the response is
879 * received from the plugin. 885 * received from the plugin.
880 */ 886 */
881 final Completer<Response> completer; 887 final Completer<Response> completer;
882 888
883 /** 889 /**
884 * Initialize a pending request. 890 * Initialize a pending request.
885 */ 891 */
886 _PendingRequest(this.method, this.requestTime, this.completer); 892 _PendingRequest(this.method, this.requestTime, this.completer);
887 } 893 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/status/get_handler2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698