mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Copy the system prompt of the current mode
This commit is contained in:
parent
89388e210c
commit
3524378bf2
1 changed files with 7 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue