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

Unified Diff: pkg/analysis_server/lib/src/status/diagnostics.dart

Issue 2988343002: Initial support for an explicit plugin list (Closed)
Patch Set: Created 3 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/status/diagnostics.dart
diff --git a/pkg/analysis_server/lib/src/status/diagnostics.dart b/pkg/analysis_server/lib/src/status/diagnostics.dart
index d91be55322fadf951afe58357373beee81d915b0..2aa4d3cbcb673cbe9ed0302355273ab535d03de9 100644
--- a/pkg/analysis_server/lib/src/status/diagnostics.dart
+++ b/pkg/analysis_server/lib/src/status/diagnostics.dart
@@ -143,6 +143,8 @@ td.pre {
}
''';
+final bool _showLints = false;
+
String get _sdkVersion {
String version = Platform.version;
if (version.contains(' ')) {
@@ -466,6 +468,9 @@ class ContextsPage extends DiagnosticPageWithNav {
.map((e) => e.description)
.join(', '));
+ h3('Plugins');
+ p(driver.analysisOptions.enabledPluginNames.join(', '));
+
List<String> priorityFiles = driver.priorityFiles;
List<String> addedFiles = driver.addedFiles.toList();
List<String> implicitFiles =
@@ -781,17 +786,6 @@ class ElementModelPage extends DiagnosticPageWithNav {
}
}
-class ExceptionPage extends DiagnosticPage {
- final StackTrace trace;
-
- ExceptionPage(Site site, String message, this.trace)
- : super(site, '', '500 Oops', description: message);
-
- void generateContent(Map<String, String> params) {
- p(trace.toString(), style: 'white-space: pre');
- }
-}
-
class EnvironmentVariablesPage extends DiagnosticPageWithNav {
EnvironmentVariablesPage(DiagnosticsSite site)
: super(site, 'environment', 'Environment Variables',
@@ -810,6 +804,17 @@ class EnvironmentVariablesPage extends DiagnosticPageWithNav {
}
}
+class ExceptionPage extends DiagnosticPage {
+ final StackTrace trace;
+
+ ExceptionPage(Site site, String message, this.trace)
+ : super(site, '', '500 Oops', description: message);
+
+ void generateContent(Map<String, String> params) {
+ p(trace.toString(), style: 'white-space: pre');
+ }
+}
+
class ExceptionsPage extends DiagnosticPageWithNav {
ExceptionsPage(DiagnosticsSite site)
: super(site, 'exceptions', 'Exceptions',
@@ -991,6 +996,8 @@ class OverlaysPage extends DiagnosticPageWithNav {
}
}
+// TODO(devoncarew): We're not currently tracking the time spent in specific
+// lints by default (analysisOptions / driverOptions enableTiming)
class PluginsPage extends DiagnosticPageWithNav {
PluginsPage(DiagnosticsSite site)
: super(site, 'plugins', 'Plugins', description: 'Plugins in use.');
@@ -1025,10 +1032,6 @@ class PluginsPage extends DiagnosticPageWithNav {
}
}
-// TODO(devoncarew): We're not currently tracking the time spent in specific
-// lints by default (analysisOptions / driverOptions enableTiming)
-final bool _showLints = false;
-
class ProfilePage extends DiagnosticPageWithNav {
ProfilePage(DiagnosticsSite site)
: super(site, 'profile', 'Profiling Info',
« no previous file with comments | « pkg/analysis_server/lib/src/plugin/plugin_watcher.dart ('k') | pkg/analysis_server/test/src/plugin/plugin_watcher_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698