Update DevChat error message and button labels

This commit is contained in:
Rankin Zheng 2024-02-02 20:05:24 +08:00
parent 67fe833c53
commit 07ba0adafe
2 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ const MessageMarkdown = observer((props: MessageMarkdownProps) => {
}
if (
children.includes(
"Devchat key is missing from your environment or settings"
"Your DevChat Access Key is not detected in the current settings."
)
) {
if (process.env.platform === "vscode") {

View File

@ -153,9 +153,9 @@ To get started, here are some of the things that I can do for you:
${helpWorkflowCommands()}`;
const setKeyMessage = `
Devchat key is missing from your environment or settings. Kindly input your DevChat key, and I'll ensure DevChat is all set for you.
Your DevChat Access Key is not detected in the current settings. Please set your Access Key below, and we'll have everything set up for you in no time.
<button value="get_devchat_key" ${process.env.platform === "vscode" ?'href="https://web.devchat.ai" component="a"':''}>Register DevChat key</button>
<button value="get_devchat_key" ${process.env.platform === "vscode" ?'href="https://web.devchat.ai" component="a"':''}>Get DevChat key</button>
<button value="setting_devchat_key">Set DevChat key</button>
`;