File tree Expand file tree Collapse file tree 1 file changed +6
-20
lines changed Expand file tree Collapse file tree 1 file changed +6
-20
lines changed Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments