feat(chatpanel): add default command menu icon

Add a default command menu icon for patterns other than 'code' and 'commit_message' in the ChatPanel component.
This commit is contained in:
Rankin Zheng 2023-05-19 08:15:24 +08:00
parent 64ba8612c6
commit a46b69a2ab

View File

@ -206,14 +206,6 @@ const chatPanel = () => {
}, [registed]);
const commandMenuIcon = (pattern: string) => {
if (pattern === 'code') {
return (<IconShellCommand size={16}
color='var(--vscode-menu-foreground)'
style={{
marginTop: 8,
marginLeft: 12,
}} />);
}
if (pattern === 'commit_message') {
return (<IconBook size={16}
color='var(--vscode-menu-foreground)'
@ -222,6 +214,12 @@ const chatPanel = () => {
marginLeft: 12,
}} />);
}
return (<IconShellCommand size={16}
color='var(--vscode-menu-foreground)'
style={{
marginTop: 8,
marginLeft: 12,
}} />);
};
useEffect(() => {
let filtered = commandMenus;