Skip to content

Commit 4faaaee

Browse files
committed
fix: update diagnostic slider description dynamically based on value
- Description now updates in real-time as slider value changes - Shows appropriate context level (minimal, moderate, comprehensive) based on threshold - Improves user understanding of diagnostic context settings
1 parent df69128 commit 4faaaee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

webview-ui/src/components/settings/ContextManagementSettings.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ export const ContextManagementSettings = ({
300300
</Button>
301301
</div>
302302
<div className="text-vscode-descriptionForeground text-sm mt-1">
303-
{(maxDiagnosticMessages !== undefined && maxDiagnosticMessages <= 0) ||
304-
maxDiagnosticMessages === 100
303+
{maxDiagnosticMessages !== undefined && maxDiagnosticMessages <= 0
305304
? t("settings:contextManagement.diagnostics.maxMessages.unlimitedDescription") ||
306305
"All diagnostic messages will be included. Use with caution as this may significantly increase token usage."
307306
: t("settings:contextManagement.diagnostics.maxMessages.description")}

0 commit comments

Comments
 (0)