diff options
| author | Daniel Pettersson <daniel@dpettersson.net> | 2026-04-26 00:40:49 +0200 |
|---|---|---|
| committer | Daniel Pettersson <daniel@dpettersson.net> | 2026-04-26 00:40:49 +0200 |
| commit | 02920dbbc9abef4e7a36bf1384eaac9518f96726 (patch) | |
| tree | 9b83b1e0df9efa0cdd587fbbe71b352c925a2c78 | |
| parent | e14d8966a3626bc0076d15d361d4c15112db7297 (diff) | |
Ensure that previous adapter is killed on restart
| -rw-r--r-- | dape.el | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2626,7 +2626,11 @@ SKIP-COMPILE is used internally for recursive calls." (dape-active-mode +1)) (setf (dape--restart-in-progress-p conn) nil)))) (;; Use previous connections configuration - dape--connections (dape (dape--config (car dape--connections)))) + dape--connections + (let ((conn (or (and conn (dape--root-of conn)) + (car dape--connections)))) + (dape--with-request (dape-kill conn) + (dape (dape--config conn))))) (;; Use history dape-history (dape (apply #'dape--config-eval (dape--config-from-string (car dape-history))))) |
