Copy the system prompt of the current mode

This commit is contained in:
Matt Rubens 2025-02-18 22:21:01 -05:00
parent 89388e210c
commit 3524378bf2

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>