Skip to content

Commit 301033f

Browse files
authored
Update the enum constants for the analysis server (#14)
1 parent c7518f7 commit 301033f

File tree

1 file changed

+33
-8
lines changed

1 file changed

+33
-8
lines changed

pkgs/dash_analytics/lib/src/enums.dart

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,41 @@
77
/// The [label] for each enum value is what will be logged, the [description]
88
/// is here for documentation purposes
99
enum DashEvent {
10-
analyzerServerStarted(
11-
label: 'analyzer_server_started',
12-
description: 'Dart Analyzer Server Started',
13-
toolOwner: DashTool.dartAnalyzer,
14-
),
1510
hotReloadTime(
1611
label: 'hot_reload_time',
1712
description: 'Hot reload duration',
1813
toolOwner: DashTool.flutterTools,
1914
),
15+
lintUsageCounts(
16+
label: 'lint_usage_counts',
17+
description: 'Number of times each lint is enabled',
18+
toolOwner: DashTool.languageServer,
19+
),
20+
notification(
21+
label: 'notification',
22+
description: 'Notifications sent from the client',
23+
toolOwner: DashTool.languageServer,
24+
),
25+
pluginRequest(
26+
label: 'plugin_request',
27+
description: 'Request responses from plugins',
28+
toolOwner: DashTool.languageServer,
29+
),
30+
request(
31+
label: 'request',
32+
description: 'Requests sent from the client',
33+
toolOwner: DashTool.languageServer,
34+
),
35+
session(
36+
label: 'session',
37+
description: 'Dart Analyzer Server session data',
38+
toolOwner: DashTool.languageServer,
39+
),
40+
severityAdjustments(
41+
label: 'severity_adjustments',
42+
description: 'Number of times diagnostic severity is changed',
43+
toolOwner: DashTool.languageServer,
44+
),
2045
;
2146

2247
final String label;
@@ -37,9 +62,9 @@ enum DashTool {
3762
label: 'flutter_tools',
3863
description: 'Runs flutter applications from CLI',
3964
),
40-
dartAnalyzer(
41-
label: 'dart_analyzer',
42-
description: 'Analyzes dart code in workspace',
65+
languageServer(
66+
label: 'language_server',
67+
description: 'The Dart language server for IDE and CLI support.',
4368
);
4469

4570
final String label;

0 commit comments

Comments
 (0)