Skip to content

Commit c8fbbfe

Browse files
committed
Format debug_extension
1 parent 640d14f commit c8fbbfe

13 files changed

+153
-125
lines changed

dwds/debug_extension/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: >-
55
A Chrome extension for Dart debugging.
66
77
environment:
8-
sdk: ^3.5.0
8+
sdk: ^3.8.0
99

1010
dependencies:
1111
built_value: ^8.9.0

dwds/debug_extension/tool/copy_builder.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ Builder copyBuilder(_) => _CopyBuilder();
1010
class _CopyBuilder extends Builder {
1111
@override
1212
Map<String, List<String>> get buildExtensions => {
13-
'web/{{}}.dart.js': ['compiled/{{}}.dart.js'],
14-
'web/static_assets/{{}}.png': ['compiled/static_assets/{{}}.png'],
15-
'web/static_assets/{{}}.html': ['compiled/static_assets/{{}}.html'],
16-
'web/static_assets/{{}}.css': ['compiled/static_assets/{{}}.css'],
17-
'web/manifest.json': ['compiled/manifest.json'],
18-
};
13+
'web/{{}}.dart.js': ['compiled/{{}}.dart.js'],
14+
'web/static_assets/{{}}.png': ['compiled/static_assets/{{}}.png'],
15+
'web/static_assets/{{}}.html': ['compiled/static_assets/{{}}.html'],
16+
'web/static_assets/{{}}.css': ['compiled/static_assets/{{}}.css'],
17+
'web/manifest.json': ['compiled/manifest.json'],
18+
};
1919

2020
@override
2121
Future<void> build(BuildStep buildStep) async {

dwds/debug_extension/web/background.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,9 @@ void _setWarningIcon(int tabId) {
279279
}
280280

281281
void _setDefaultIcon(int tabId) {
282-
final iconPath =
283-
isDevMode ? 'static_assets/dart_dev.png' : 'static_assets/dart_grey.png';
282+
final iconPath = isDevMode
283+
? 'static_assets/dart_dev.png'
284+
: 'static_assets/dart_grey.png';
284285
setExtensionIcon(IconInfo(path: iconPath));
285286
setExtensionPopup(PopupDetails(popup: '', tabId: tabId));
286287
}

dwds/debug_extension/web/cider_connection.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ Future<void> _sendInspectorUrl({String? appId}) async {
170170
if (!alreadyDebugging) {
171171
sendErrorMessageToCider(
172172
errorType: CiderErrorType.invalidRequest,
173-
errorDetails: 'Cannot send the inspector URL before '
173+
errorDetails:
174+
'Cannot send the inspector URL before '
174175
'the debugger has been attached.',
175176
);
176177
return;

dwds/debug_extension/web/copier.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ void _copyAppId(String appId) {
4949
}
5050

5151
Future<bool> _notifyCopiedSuccess(String appId) => sendRuntimeMessage(
52-
type: MessageType.appId,
53-
body: appId,
54-
sender: Script.copier,
55-
recipient: Script.background,
56-
);
52+
type: MessageType.appId,
53+
body: appId,
54+
sender: Script.copier,
55+
recipient: Script.background,
56+
);

dwds/debug_extension/web/cross_extension_communication.dart

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,17 @@ ExternalExtensionMessage _debugEventMessage({
126126
required String method,
127127
required dynamic params,
128128
required int tabId,
129-
}) =>
130-
ExternalExtensionMessage(
131-
name: 'chrome.debugger.event',
132-
tabId: tabId,
133-
options: DebugEvent(method: method, params: params),
134-
);
129+
}) => ExternalExtensionMessage(
130+
name: 'chrome.debugger.event',
131+
tabId: tabId,
132+
options: DebugEvent(method: method, params: params),
133+
);
135134

136135
ExternalExtensionMessage _dwdsEventMessage({
137136
required String method,
138137
required dynamic params,
139138
required int tabId,
140-
}) =>
141-
ExternalExtensionMessage(name: method, tabId: tabId, options: params);
139+
}) => ExternalExtensionMessage(name: method, tabId: tabId, options: params);
142140

143141
// This message is used for cross-extension communication between this extension
144142
// and the AngularDart DevTools extension.

dwds/debug_extension/web/data_serializers.g.dart

Lines changed: 17 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dwds/debug_extension/web/data_types.g.dart

Lines changed: 60 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)