From a6c83a3cef9f3d77b898bcce46b458d3bc8fb042 Mon Sep 17 00:00:00 2001 From: Pedro Prieto Date: Sun, 1 Oct 2023 23:11:48 +0200 Subject: [PATCH] Find connected devices instead of emulators only --- lsp-dart-flutter-daemon.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp-dart-flutter-daemon.el b/lsp-dart-flutter-daemon.el index dd5e60d..ae242ec 100644 --- a/lsp-dart-flutter-daemon.el +++ b/lsp-dart-flutter-daemon.el @@ -208,7 +208,7 @@ of this command." (defun lsp-dart-flutter-daemon-get-devices (callback) "Call CALLBACK with the available emulators and devices from Flutter daemon." (lsp-dart-flutter-daemon--send - "emulator.getEmulators" + "device.getDevices" nil (-lambda (emulators) (let ((devices-excluding-emulators (-remove (-lambda ((&FlutterDaemonDevice :emulator-id?))