Skip to content

Commit 799d083

Browse files
authored
fix: disable more actions without chat provider (microsoft#196631)
1 parent 9978889 commit 799d083

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vs/workbench/contrib/chat/browser/actions/chatClearActions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export function registerClearActions() {
3434
},
3535
icon: Codicon.clearAll,
3636
f1: false,
37+
precondition: CONTEXT_PROVIDER_EXISTS,
3738
menu: [{
3839
id: MenuId.EditorTitle,
3940
group: 'navigation',
@@ -99,6 +100,7 @@ const getClearChatActionDescriptorForViewTitle = (viewId: string, providerId: st
99100
group: 'navigation',
100101
order: 0
101102
},
103+
precondition: CONTEXT_PROVIDER_EXISTS,
102104
category: CHAT_CATEGORY,
103105
icon: Codicon.clearAll,
104106
f1: false

0 commit comments

Comments
 (0)