mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-07 02:58:15 +00:00
Merge pull request #1061 from RooVetGit/fix_copy_system_prompt
Copy the system prompt of the current mode
This commit is contained in:
commit
0b89d87a12
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