File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/vs/workbench/contrib/chat/browser/tools Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import * as JSONContributionRegistry from '../../../../../platform/jsonschemas/c
36
36
import { Registry } from '../../../../../platform/registry/common/platform.js' ;
37
37
import { ContextKeyExpr } from '../../../../../platform/contextkey/common/contextkey.js' ;
38
38
import { ChatViewId } from '../chat.js' ;
39
+ import { ChatContextKeys } from '../../common/chatContextKeys.js' ;
39
40
40
41
41
42
const toolEnumValues : string [ ] = [ ] ;
@@ -322,6 +323,7 @@ export class ConfigureToolSets extends Action2 {
322
323
title : localize2 ( 'chat.configureToolSets' , 'Configure Tool Sets' ) ,
323
324
category : CHAT_CATEGORY ,
324
325
f1 : true ,
326
+ precondition : ContextKeyExpr . and ( ChatContextKeys . enabled , ChatContextKeys . Tools . toolsCount . greater ( 0 ) ) ,
325
327
menu : {
326
328
id : MenuId . ViewTitle ,
327
329
when : ContextKeyExpr . equals ( 'view' , ChatViewId ) ,
You can’t perform that action at this time.
0 commit comments