Variable ChatNodeToolbarActionContributionConst

ChatNodeToolbarActionContribution: typeof ChatNodeToolbarActionContribution = ...

Clients implement this interface if they want to contribute to the toolbar of chat nodes.

Example

bind(ChatNodeToolbarActionContribution).toDynamicValue(context => ({
getToolbarActions: (args: RequestNode | ResponseNode) => {
if (isResponseNode(args)) {
return [{
commandId: 'core.about',
icon: 'codicon codicon-feedback',
tooltip: 'Show about dialog on response nodes'
}];
} else {
return [];
}
}
}));