Merge pull request #259 from RooVetGit/fix_fuzzy_match_slider

Fix fuzzy match slider
This commit is contained in:
Matt Rubens 2024-12-31 10:12:59 -08:00 committed by GitHub
commit 07563eb4bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -1052,6 +1052,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
preferredLanguage,
writeDelayMs,
terminalOutputLineLimit,
fuzzyMatchThreshold,
} = await this.getState()
const allowedCommands = vscode.workspace
@ -1082,6 +1083,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
preferredLanguage: preferredLanguage ?? 'English',
writeDelayMs: writeDelayMs ?? 1000,
terminalOutputLineLimit: terminalOutputLineLimit ?? 500,
fuzzyMatchThreshold: fuzzyMatchThreshold ?? 1.0,
}
}

View file

@ -257,7 +257,7 @@ const SettingsView = ({ onDone }: SettingsViewProps) => {
<span style={{ fontWeight: "500", minWidth: '100px' }}>Match precision</span>
<input
type="range"
min="0.9"
min="0.8"
max="1"
step="0.005"
value={fuzzyMatchThreshold ?? 1.0}