We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 89388e2 + 3524378 commit 0b89d87Copy full SHA for 0b89d87
webview-ui/src/components/prompts/PromptsView.tsx
@@ -892,10 +892,13 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
892
appearance="icon"
893
title="Copy system prompt to clipboard"
894
onClick={() => {
895
- vscode.postMessage({
896
- type: "copySystemPrompt",
897
- text: selectedPromptContent,
898
- })
+ const currentMode = getCurrentMode()
+ if (currentMode) {
+ vscode.postMessage({
+ type: "copySystemPrompt",
899
+ mode: currentMode.slug,
900
+ })
901
+ }
902
}}
903
data-testid="copy-prompt-button">
904
<span className="codicon codicon-copy"></span>
0 commit comments