File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/vs/workbench/contrib/chat/browser/actions Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ class AttachFileToChatAction extends AttachResourceAction {
114
114
id : AttachFileToChatAction . ID ,
115
115
title : localize2 ( 'workbench.action.chat.attachFile.label' , "Add File to Chat" ) ,
116
116
category : CHAT_CATEGORY ,
117
+ precondition : ChatContextKeys . enabled ,
117
118
f1 : true ,
118
119
menu : [ {
119
120
id : MenuId . SearchContext ,
@@ -224,6 +225,7 @@ class AttachSelectionToChatAction extends Action2 {
224
225
title : localize2 ( 'workbench.action.chat.attachSelection.label' , "Add Selection to Chat" ) ,
225
226
category : CHAT_CATEGORY ,
226
227
f1 : true ,
228
+ precondition : ChatContextKeys . enabled ,
227
229
menu : {
228
230
id : MenuId . ChatTextEditorMenu ,
229
231
group : 'zContext' ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import { IExtensionsWorkbenchService } from '../../../extensions/common/extensio
17
17
import { IProductService } from '../../../../../platform/product/common/productService.js' ;
18
18
import { Codicon } from '../../../../../base/common/codicons.js' ;
19
19
import { ThemeIcon } from '../../../../../base/common/themables.js' ;
20
+ import { ChatContextKeys } from '../../common/chatContextKeys.js' ;
20
21
21
22
class ManageLanguageModelAuthenticationAction extends Action2 {
22
23
static readonly ID = 'workbench.action.chat.manageLanguageModelAuthentication' ;
@@ -26,6 +27,7 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
26
27
id : ManageLanguageModelAuthenticationAction . ID ,
27
28
title : localize2 ( 'manageLanguageModelAuthentication' , 'Manage Language Model Access...' ) ,
28
29
category : CHAT_CATEGORY ,
30
+ precondition : ChatContextKeys . enabled ,
29
31
menu : [ {
30
32
id : MenuId . AccountsContext ,
31
33
order : 100 ,
You can’t perform that action at this time.
0 commit comments