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
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}