Skip to content

Commit 584b398

Browse files
authored
Merge pull request #235 from OrbitalHustler/master
Fix device selection ignored when multiple devices connected
2 parents a61301b + 029b4d5 commit 584b398

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-dart-dap.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Call CALLBACK when the device is chosen and started successfully."
273273
(append (lsp-dart-flutter-command) (list "debug_adapter" "-d" device-id))
274274
lsp-dart-dap-flutter-debugger-program))
275275
(dap--put-if-absent :flutterPlatform "default")
276-
(dap--put-if-absent :toolArgs `("-d" ,device-id))
276+
(plist-put :toolArgs (append (append lsp-dart-dap-tool-args nil) `("-d" ,device-id)))
277277
(dap--put-if-absent :name (concat "Flutter (" device-name ")"))))
278278
))))))
279279

0 commit comments

Comments
 (0)