Don't display debug icon after the debug session is terminated.

This commit is contained in:
Vincent Zhang 2019-07-13 01:52:22 +08:00
parent fed2b288dd
commit 015b692d2b

View file

@ -92,6 +92,7 @@
(declare-function aw-window-list 'ace-window) (declare-function aw-window-list 'ace-window)
(declare-function battery-format 'battery) (declare-function battery-format 'battery)
(declare-function dap--cur-session 'dap-mode) (declare-function dap--cur-session 'dap-mode)
(declare-function dap--session-running 'dap-mode)
(declare-function dap-debug-recent 'dap-mode) (declare-function dap-debug-recent 'dap-mode)
(declare-function dap-disconnect 'dap-mode) (declare-function dap-disconnect 'dap-mode)
(declare-function dap-hydra 'dap-hydra) (declare-function dap-hydra 'dap-hydra)
@ -1859,7 +1860,7 @@ mouse-3: Fetch notifications"
"The current `dap-mode' state." "The current `dap-mode' state."
(when (and (bound-and-true-p dap-mode) (when (and (bound-and-true-p dap-mode)
(bound-and-true-p lsp-mode) (bound-and-true-p lsp-mode)
(dap--cur-session)) (dap--session-running (dap--cur-session)))
(propertize (doom-modeline-debug-icon 'doom-modeline-warning) (propertize (doom-modeline-debug-icon 'doom-modeline-warning)
'help-echo (format "DAP (%s) 'help-echo (format "DAP (%s)
mouse-1: Display debug hydra mouse-1: Display debug hydra