mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 11:09:54 +00:00
Don't display debug icon after the debug session is terminated.
This commit is contained in:
parent
fed2b288dd
commit
015b692d2b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue