Merge pull request #95 from covespace/improve-display

feat(chatpanel): add default command menu icon
This commit is contained in:
Rankin Zheng 2023-05-19 08:15:55 +08:00 committed by GitHub
commit abdd885fd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;