@@ -233,7 +233,7 @@ void _startDebugging(DebuggerTrigger debuggerTrigger) {
233233 }));
234234}
235235
236- void _attachDebuggerToTab (Tab currentTab) async {
236+ Future < void > _attachDebuggerToTab (Tab currentTab) async {
237237 if (! _debuggableTabs.contains (currentTab.id)) return ;
238238
239239 if (_tabIdToWarning.containsKey (currentTab.id)) {
@@ -287,7 +287,7 @@ void _handleMessageFromPanelScript(Request request, MessageSender sender) {
287287 }
288288}
289289
290- void _maybeMarkTabAsDebuggable (
290+ Future < void > _maybeMarkTabAsDebuggable (
291291 Request request, MessageSender sender, Function sendResponse) async {
292292 // Register any warnings for the tab:
293293 if (request.warning != '' ) {
@@ -300,7 +300,7 @@ void _maybeMarkTabAsDebuggable(
300300 sendResponse (true );
301301}
302302
303- void _maybeAttachDebugSession (
303+ Future < void > _maybeAttachDebugSession (
304304 Debuggee source,
305305 String method,
306306 Object ? params,
@@ -361,15 +361,15 @@ int _removeDebugSessionForTab(int tabId) {
361361 }
362362}
363363
364- void _maybeSaveDevToolsTabId (Tab tab) async {
364+ Future < void > _maybeSaveDevToolsTabId (Tab tab) async {
365365 // Remembers the ID of the DevTools tab.
366366 //
367367 // This assumes that the next launched tab after a session is created is the
368368 // DevTools tab.
369369 if (_debugSessions.isNotEmpty) _debugSessions.last.devtoolsTabId ?? = tab.id;
370370}
371371
372- void _handleMessageFromExternalExtensions (
372+ Future < void > _handleMessageFromExternalExtensions (
373373 dynamic jsRequest, MessageSender sender, Function sendResponse) async {
374374 if (jsRequest == null ) return ;
375375 final request = jsRequest as Request ;
@@ -408,7 +408,7 @@ void _handleMessageFromExternalExtensions(
408408 }
409409}
410410
411- void _forwardMessageToExternalExtensions (
411+ Future < void > _forwardMessageToExternalExtensions (
412412 Debuggee source, String method, Object ? params) async {
413413 if (_allowedEvents.contains (method)) {
414414 sendMessageToExtensions (ExternalExtensionRequest (
0 commit comments