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

Side by Side Diff: pkg/analysis_server/lib/src/server/driver.dart

Issue 2569603002: Remove the options plugin (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library driver; 5 library driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:math'; 9 import 'dart:math';
10 10
11 import 'package:analysis_server/src/analysis_server.dart'; 11 import 'package:analysis_server/src/analysis_server.dart';
12 import 'package:analysis_server/src/plugin/linter_plugin.dart';
13 import 'package:analysis_server/src/plugin/server_plugin.dart'; 12 import 'package:analysis_server/src/plugin/server_plugin.dart';
14 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart'; 13 import 'package:analysis_server/src/provisional/completion/dart/completion_plugi n.dart';
15 import 'package:analysis_server/src/server/http_server.dart'; 14 import 'package:analysis_server/src/server/http_server.dart';
16 import 'package:analysis_server/src/server/stdio_server.dart'; 15 import 'package:analysis_server/src/server/stdio_server.dart';
17 import 'package:analysis_server/src/socket_server.dart'; 16 import 'package:analysis_server/src/socket_server.dart';
18 import 'package:analysis_server/starter.dart'; 17 import 'package:analysis_server/starter.dart';
19 import 'package:analyzer/file_system/physical_file_system.dart'; 18 import 'package:analyzer/file_system/physical_file_system.dart';
20 import 'package:analyzer/instrumentation/file_instrumentation.dart'; 19 import 'package:analyzer/instrumentation/file_instrumentation.dart';
21 import 'package:analyzer/instrumentation/instrumentation.dart'; 20 import 'package:analyzer/instrumentation/instrumentation.dart';
22 import 'package:analyzer/plugin/resolver_provider.dart'; 21 import 'package:analyzer/plugin/resolver_provider.dart';
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 408
410 _initIncrementalLogger(results[INCREMENTAL_RESOLUTION_LOG]); 409 _initIncrementalLogger(results[INCREMENTAL_RESOLUTION_LOG]);
411 410
412 // 411 //
413 // Process all of the plugins so that extensions are registered. 412 // Process all of the plugins so that extensions are registered.
414 // 413 //
415 ServerPlugin serverPlugin = new ServerPlugin(); 414 ServerPlugin serverPlugin = new ServerPlugin();
416 List<Plugin> plugins = <Plugin>[]; 415 List<Plugin> plugins = <Plugin>[];
417 plugins.addAll(AnalysisEngine.instance.requiredPlugins); 416 plugins.addAll(AnalysisEngine.instance.requiredPlugins);
418 plugins.add(AnalysisEngine.instance.commandLinePlugin); 417 plugins.add(AnalysisEngine.instance.commandLinePlugin);
419 plugins.add(AnalysisEngine.instance.optionsPlugin);
420 plugins.add(serverPlugin); 418 plugins.add(serverPlugin);
421 plugins.add(linterServerPlugin);
422 plugins.add(dartCompletionPlugin); 419 plugins.add(dartCompletionPlugin);
423 plugins.addAll(_userDefinedPlugins); 420 plugins.addAll(_userDefinedPlugins);
424 ExtensionManager manager = new ExtensionManager(); 421 ExtensionManager manager = new ExtensionManager();
425 manager.processPlugins(plugins); 422 manager.processPlugins(plugins);
426 linter.registerLintRules(); 423 linter.registerLintRules();
427 424
428 String defaultSdkPath; 425 String defaultSdkPath;
429 if (results[SDK_OPTION] != null) { 426 if (results[SDK_OPTION] != null) {
430 defaultSdkPath = results[SDK_OPTION]; 427 defaultSdkPath = results[SDK_OPTION];
431 } else { 428 } else {
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 */ 655 */
659 static void _rollLogFiles(String path, int numOld) { 656 static void _rollLogFiles(String path, int numOld) {
660 for (int i = numOld - 1; i >= 0; i--) { 657 for (int i = numOld - 1; i >= 0; i--) {
661 try { 658 try {
662 String oldPath = i == 0 ? path : '$path.$i'; 659 String oldPath = i == 0 ? path : '$path.$i';
663 new File(oldPath).renameSync('$path.${i+1}'); 660 new File(oldPath).renameSync('$path.${i+1}');
664 } catch (e) {} 661 } catch (e) {}
665 } 662 }
666 } 663 }
667 } 664 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/plugin/linter_plugin.dart ('k') | pkg/analysis_server/lib/src/services/linter/linter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698