Skip to content

Commit 1780132

Browse files
committed
Fix debugging when multiple devices are available
1 parent f1b7366 commit 1780132

16 files changed

+19
-16
lines changed

lsp-dart-closing-labels.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; lsp-dart-closing-labels.el --- Closing labels support for LSP Dart -*- lexical-binding: t; -*-
22
;;
3-
;; Copyright (C) 2020 Eric Dallo
3+
;; Copyright (C) 2022 Eric Dallo
44
;;
55
;; This program is free software; you can redistribute it and/or modify
66
;; it under the terms of the GNU General Public License as published by

lsp-dart-code-lens.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; lsp-dart-code-lens.el --- Code lens support for LSP Dart -*- lexical-binding: t; -*-
22
;;
3-
;; Copyright (C) 2020 Eric Dallo
3+
;; Copyright (C) 2022 Eric Dallo
44
;;
55
;; This program is free software; you can redistribute it and/or modify
66
;; it under the terms of the GNU General Public License as published by

lsp-dart-commands.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; lsp-dart-commands.el --- LSP dart commands -*- lexical-binding: t; -*-
22
;;
3-
;; Copyright (C) 2020 Eric Dallo
3+
;; Copyright (C) 2022 Eric Dallo
44
;;
55
;; This program is free software; you can redistribute it and/or modify
66
;; it under the terms of the GNU General Public License as published by

lsp-dart-dap.el

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; lsp-dart-dap.el --- DAP support for lsp-dart -*- lexical-binding: t; -*-
22
;;
3-
;; Copyright (C) 2020 Eric Dallo
3+
;; Copyright (C) 2022 Eric Dallo
44
;;
55
;; This program is free software; you can redistribute it and/or modify
66
;; it under the terms of the GNU General Public License as published by
@@ -257,6 +257,7 @@ Call CALLBACK when the device is chosen and started successfully."
257257
`(,(lsp-dart-flutter-command) "debug_adapter" "-d" ,device-id)
258258
lsp-dart-dap-flutter-debugger-program))
259259
(dap--put-if-absent :flutterPlatform "default")
260+
(dap--put-if-absent :toolArgs `("-d" ,device-id))
260261
(dap--put-if-absent :name (concat "Flutter (" device-name ")")))))))))
261262

262263
(dap-register-debug-provider "flutter" 'lsp-dart-dap--populate-flutter-start-file-args)
@@ -356,6 +357,8 @@ Call CALLBACK when the device is chosen and started successfully."
356357
"Ignore this event.")
357358
(cl-defmethod dap-handle-event ((_event (eql dart.flutter.updateIsWidgetCreationTracked)) _session _params)
358359
"Ignore this event.")
360+
(cl-defmethod dap-handle-event ((_event (eql flutter.serviceExtensionStateChanged)) _session _params)
361+
"Ignore this event.")
359362

360363
(cl-defmethod dap-handle-event ((_event (eql dart.testRunNotification)) _session _params)
361364
"Ignore this event.")

lsp-dart-devtools.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; lsp-dart-devtools.el --- Support for Dart DevTools on debugger -*- lexical-binding: t; -*-
22
;;
3-
;; Copyright (C) 2020 Eric Dallo
3+
;; Copyright (C) 2022 Eric Dallo
44
;;
55
;; This program is free software; you can redistribute it and/or modify
66
;; it under the terms of the GNU General Public License as published by

lsp-dart-flutter-colors.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; lsp-dart-flutter-colors.el --- Flutter color names -*- lexical-binding: t; -*-
22
;;
3-
;; Copyright (C) 2020 Eric Dallo
3+
;; Copyright (C) 2022 Eric Dallo
44
;;
55
;; This program is free software; you can redistribute it and/or modify
66
;; it under the terms of the GNU General Public License as published by

lsp-dart-flutter-daemon.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; lsp-dart-flutter-daemon.el --- Helper for the Flutter daemon -*- lexical-binding: t; -*-
22
;;
3-
;; Copyright (C) 2020 Eric Dallo
3+
;; Copyright (C) 2022 Eric Dallo
44
;;
55
;; This program is free software; you can redistribute it and/or modify
66
;; it under the terms of the GNU General Public License as published by

lsp-dart-flutter-fringe-colors.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; lsp-dart-flutter-fringe-colors.el --- Flutter fringe colors -*- lexical-binding: t; -*-
22
;;
3-
;; Copyright (C) 2020 Eric Dallo
3+
;; Copyright (C) 2022 Eric Dallo
44
;;
55
;; This program is free software; you can redistribute it and/or modify
66
;; it under the terms of the GNU General Public License as published by

lsp-dart-flutter-widget-guide.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; lsp-dart-flutter-widget-guide.el --- UI guides -*- lexical-binding: t; -*-
22
;;
3-
;; Copyright (C) 2020 Eric Dallo
3+
;; Copyright (C) 2022 Eric Dallo
44
;;
55
;; This program is free software; you can redistribute it and/or modify
66
;; it under the terms of the GNU General Public License as published by

lsp-dart-outline.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; lsp-dart-outline.el --- Outline support for lsp-dart -*- lexical-binding: t; -*-
22
;;
3-
;; Copyright (C) 2020 Eric Dallo
3+
;; Copyright (C) 2022 Eric Dallo
44
;;
55
;; This program is free software; you can redistribute it and/or modify
66
;; it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)