Merge pull request #272 from devchat-ai/101-settings-is-too-showy

Add settings link to DevChat
This commit is contained in:
Rankin Zheng 2023-08-28 02:30:28 -05:00 committed by GitHub
commit c6e001c6f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -117,6 +117,9 @@ Generate a professionally written and formatted release note in markdown with th
}),
]);
break;
case "#settings":
messageUtil.sendMessage({ command: 'doCommand', content: ['workbench.action.openSettings', 'DevChat'] });
break;
}
chat.goScrollBottom();
};
@ -189,7 +192,8 @@ Generate a professionally written and formatted release note in markdown with th
"#commit_message",
"#release_note",
"#ask_code",
"#extension"].filter((item) => item === href);
"#extension",
"#settings"].filter((item) => item === href);
return customAnchors.length > 0
? <Anchor href={href} onClick={() => {
handleExplain(href);

View File

@ -98,7 +98,7 @@ To get started, here are some of the things that I can do for you:
${self.features['ask-code'] ? '[/ask-code: ask me questions about your codebase](#ask_code)' : ''}
<button value="settings">Settings</button>`;
You can configure DevChat from [Settings](#settings).`;
self.messages.push(
Message.create({