From cec623ada42f98bc7c22b65904048f81eac00ed2 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Tue, 31 Dec 2024 10:04:43 -0800 Subject: [PATCH] Fix fuzzy match slider --- src/core/webview/ClineProvider.ts | 2 ++ webview-ui/src/components/settings/SettingsView.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 6289a3b..a28fb90 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -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, } } diff --git a/webview-ui/src/components/settings/SettingsView.tsx b/webview-ui/src/components/settings/SettingsView.tsx index 5442bd0..7ac1563 100644 --- a/webview-ui/src/components/settings/SettingsView.tsx +++ b/webview-ui/src/components/settings/SettingsView.tsx @@ -257,7 +257,7 @@ const SettingsView = ({ onDone }: SettingsViewProps) => { Match precision