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
3636import { Registry } from '../../../../../platform/registry/common/platform.js' ;
3737import { ContextKeyExpr } from '../../../../../platform/contextkey/common/contextkey.js' ;
3838import { ChatViewId } from '../chat.js' ;
39+ import { ChatContextKeys } from '../../common/chatContextKeys.js' ;
3940
4041
4142const toolEnumValues : string [ ] = [ ] ;
@@ -322,6 +323,7 @@ export class ConfigureToolSets extends Action2 {
322323 title : localize2 ( 'chat.configureToolSets' , 'Configure Tool Sets' ) ,
323324 category : CHAT_CATEGORY ,
324325 f1 : true ,
326+ precondition : ContextKeyExpr . and ( ChatContextKeys . enabled , ChatContextKeys . Tools . toolsCount . greater ( 0 ) ) ,
325327 menu : {
326328 id : MenuId . ViewTitle ,
327329 when : ContextKeyExpr . equals ( 'view' , ChatViewId ) ,
You can’t perform that action at this time.
0 commit comments