forked from firka/flutter
Add level field to the "showMessage" daemon event. (#9889)
Spawned from a discussion in https://github.com/flutter/flutter-intellij/pull/1003
This commit is contained in:
@@ -543,9 +543,12 @@ class DeviceDomain extends Domain {
|
||||
return;
|
||||
|
||||
if (!discoverer.canListAnything) {
|
||||
// This event will affect the client UI. Coordinate changes here
|
||||
// with the Flutter IntelliJ team.
|
||||
sendEvent(
|
||||
'daemon.showMessage',
|
||||
<String, String>{
|
||||
'level': 'warning',
|
||||
'title': 'Unable to list devices',
|
||||
'message':
|
||||
'Unable to discover ${discoverer.name}. Please run '
|
||||
|
||||
Reference in New Issue
Block a user