fix: only show pretty print actions when debugger is stopped (#1540)
Fixes #1539
This commit is contained in:
Родитель
df22101629
Коммит
d9b8ae334a
|
@ -1323,7 +1323,7 @@ const menus: Menus = {
|
|||
{
|
||||
command: Commands.PrettyPrint,
|
||||
title: refString('pretty.print.script'),
|
||||
when: forAnyDebugType('debugType', 'inDebugMode'),
|
||||
when: forAnyDebugType('debugType', 'debugState == stopped'),
|
||||
},
|
||||
{
|
||||
command: Commands.StartProfile,
|
||||
|
@ -1501,7 +1501,7 @@ const menus: Menus = {
|
|||
{
|
||||
command: Commands.PrettyPrint,
|
||||
group: 'navigation',
|
||||
when: `resource in ${ContextKey.CanPrettyPrint}`,
|
||||
when: `debugState == stopped && resource in ${ContextKey.CanPrettyPrint}`,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче