Skip to content

Commit 5f0b06c

Browse files
hannesrudolphdaniel-lxs
authored andcommitted
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 85ef45d commit 5f0b06c

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
@@ -254,8 +254,7 @@ export const ContextManagementSettings = ({
254254
</Button>
255255
</div>
256256
<div className="text-vscode-descriptionForeground text-sm mt-1">
257-
{(maxDiagnosticMessages !== undefined && maxDiagnosticMessages <= 0) ||
258-
maxDiagnosticMessages === 100
257+
{maxDiagnosticMessages !== undefined && maxDiagnosticMessages <= 0
259258
? t("settings:contextManagement.diagnostics.maxMessages.unlimitedDescription") ||
260259
"All diagnostic messages will be included. Use with caution as this may significantly increase token usage."
261260
: t("settings:contextManagement.diagnostics.maxMessages.description")}

0 commit comments

Comments
 (0)