Skip to content

Commit 3bb4a6a

Browse files
authored
Remove old code from before the new Dart Debug Extension (#2290)
1 parent 6961b20 commit 3bb4a6a

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

dwds/lib/src/handlers/dev_handler.dart

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -625,27 +625,13 @@ class DevHandler {
625625
devToolsStart: DateTime.now(),
626626
);
627627

628-
// TODO(elliette): Remove handling requests from the MV2 extension after
629-
// MV3 release.
630-
// If we only want the URI, this means the Dart Debug Extension should
631-
// handle how to open it. Therefore return early before opening a new
632-
// tab or window:
633-
if (devToolsRequest.uriOnly ?? false) {
634-
final devToolsUri = _constructDevToolsUri(
635-
encodedUri,
636-
ideQueryParam: 'ChromeDevTools',
637-
);
638-
return extensionDebugger.sendEvent('dwds.devtoolsUri', devToolsUri);
639-
}
640-
641-
// Otherwise, launch DevTools in a new tab / window:
642-
await _launchDevTools(
643-
extensionDebugger,
644-
_constructDevToolsUri(
645-
encodedUri,
646-
ideQueryParam: 'DebugExtension',
647-
),
628+
emitEvent(DwdsEvent.devtoolsLaunch());
629+
// Send the DevTools URI to the Dart Debug Extension so that it can open it:
630+
final devToolsUri = _constructDevToolsUri(
631+
encodedUri,
632+
ideQueryParam: 'ChromeDevTools',
648633
);
634+
return extensionDebugger.sendEvent('dwds.devtoolsUri', devToolsUri);
649635
}
650636

651637
DevTools _ensureDevTools() {

0 commit comments

Comments
 (0)