e.stopPropagation()} className="flex justify-between items-center mb-3">
{t("prompts:modes.title")}
-
-
+
-
{
@@ -422,7 +424,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
setTimeout(() => setShowConfigMenu(false), 200)
}}>
-
+
{showConfigMenu && (
e.stopPropagation()}
@@ -512,8 +514,9 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
}}
className="w-full"
/>
- {
vscode.postMessage({
@@ -522,7 +525,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
})
}}>
-
+
@@ -531,8 +534,9 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
{t("prompts:roleDefinition.title")}
{!findModeBySlug(mode, customModes) && (
-
{
const currentMode = getCurrentMode()
if (currentMode?.slug) {
@@ -542,7 +546,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
title={t("prompts:roleDefinition.resetToDefault")}
data-testid="role-definition-reset">
-
+
)}
@@ -613,17 +617,18 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
{t("prompts:tools.title")}
{findModeBySlug(mode, customModes) && (
-
setIsToolsEditMode(!isToolsEditMode)}
- title={
+
+
)}
{!findModeBySlug(mode, customModes) && (
@@ -705,8 +710,9 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
}}>
{t("prompts:customInstructions.title")}
{!findModeBySlug(mode, customModes) && (
-
{
const currentMode = getCurrentMode()
if (currentMode?.slug) {
@@ -716,7 +722,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
title={t("prompts:customInstructions.resetToDefault")}
data-testid="custom-instructions-reset">
-
+
)}
{
borderBottom: "1px solid var(--vscode-input-border)",
}}>
- {
const currentMode = getCurrentMode()
if (currentMode) {
@@ -827,9 +833,10 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
}}
data-testid="preview-prompt-button">
{t("prompts:systemPrompt.preview")}
-
-
+
+
{/* Custom System Prompt Disclosure */}
@@ -1004,12 +1011,13 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
marginBottom: "4px",
}}>
{t("prompts:supportPrompts.prompt")}
-
handleSupportReset(activeSupportTab)}
title={t("prompts:supportPrompts.resetPrompt", { promptType: activeSupportTab })}>
-
+
{
alignItems: "center",
gap: 8,
}}>
-
+ disabled={isEnhancing}>
{t("prompts:supportPrompts.enhance.previewButton")}
-
+
>
@@ -1132,8 +1140,9 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
overflowY: "auto",
minHeight: 0,
}}>
-
@@ -1328,12 +1337,12 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
borderTop: "1px solid var(--vscode-editor-lineHighlightBorder)",
backgroundColor: "var(--vscode-editor-background)",
}}>
- setIsCreateModeDialogOpen(false)}>
+
-
+
+
+
@@ -1366,8 +1375,9 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
overflowY: "auto",
minHeight: 0,
}}>
-