description:localize('vscode.extension.contributes.commandType.category','(Optional) Category string by the command is grouped in the UI'),
type:'string'
type:'string'
}
}
};
constcontextType:IJSONSchema={
type:'object',
properties:{
where:{
description:localize('vscode.extension.contributes.commandType.context.where',"Menus and tool bars to which commands can be added, e.g. `editor title actions` or `explorer context menu`"),
enum:[
'editor/primary',
'editor/secondary'
]
},
when:{
description:localize('vscode.extension.contributes.commandType.context.when',"Condition that must be met in order to show the command. Can be a language identifier, a glob-pattern, an uri scheme, or a combination of them."),
anyOf:[
'string',
filterType,
{type:'array',items:'string'},
{type:'array',items:filterType},
]
},
},
icon:{
icon:{
description:localize('vscode.extension.contributes.commandType.icon','(Optional) Icon which is used to represent the command in the UI. Either a file path or a themable configuration'),
description:localize('vscode.extension.contributes.commandType.icon','(Optional) Icon which is used to represent the command in the UI. Either a file path or a themable configuration'),
...
@@ -172,30 +156,16 @@ namespace schema {
...
@@ -172,30 +156,16 @@ namespace schema {
}
}
}
}
]
]
}
}
};
constcommandType:IJSONSchema={
type:'object',
properties:{
command:{
description:localize('vscode.extension.contributes.commandType.command','Identifier of the command to execute'),
type:'string'
},
title:{
description:localize('vscode.extension.contributes.commandType.title','Title by which the command is represented in the UI'),
type:'string'
},
},
category:{
when:{
description:localize('vscode.extension.contributes.commandType.category','(Optional) Category string by the command is grouped in the UI'),
description:localize('vscode.extension.contributes.commandType.context.when',"Condition that must be met in order to show the command."),
type:'string'
type:'string'
},
},
context:{
where:{
description:localize('vscode.extension.contributes.commandType.context','(Optional) Define places where the command should show in addition to the Command palette'),
description:localize('vscode.extension.contributes.commandType.context.where',"Menus and tool bars to which commands can be added, e.g. `editor title actions` or `explorer context menu`"),