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:
parent
64ba8612c6
commit
a46b69a2ab
@ -206,14 +206,6 @@ const chatPanel = () => {
|
|||||||
}, [registed]);
|
}, [registed]);
|
||||||
|
|
||||||
const commandMenuIcon = (pattern: string) => {
|
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') {
|
if (pattern === 'commit_message') {
|
||||||
return (<IconBook size={16}
|
return (<IconBook size={16}
|
||||||
color='var(--vscode-menu-foreground)'
|
color='var(--vscode-menu-foreground)'
|
||||||
@ -222,6 +214,12 @@ const chatPanel = () => {
|
|||||||
marginLeft: 12,
|
marginLeft: 12,
|
||||||
}} />);
|
}} />);
|
||||||
}
|
}
|
||||||
|
return (<IconShellCommand size={16}
|
||||||
|
color='var(--vscode-menu-foreground)'
|
||||||
|
style={{
|
||||||
|
marginTop: 8,
|
||||||
|
marginLeft: 12,
|
||||||
|
}} />);
|
||||||
};
|
};
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let filtered = commandMenus;
|
let filtered = commandMenus;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user