Merge pull request #1061 from RooVetGit/fix_copy_system_prompt

Copy the system prompt of the current mode
This commit is contained in:
Matt Rubens 2025-02-18 22:34:25 -05:00 • committed by GitHub
commit 0b89d87a12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -892,10 +892,13 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
appearance="icon"
title="Copy system prompt to clipboard"
onClick={() => {
vscode.postMessage({
type: "copySystemPrompt",
text: selectedPromptContent,
})
const currentMode = getCurrentMode()
if (currentMode) {
vscode.postMessage({
type: "copySystemPrompt",
mode: currentMode.slug,
})
}
}}
data-testid="copy-prompt-button">
<span className="codicon codicon-copy"></span>