This repository was archived by the owner on May 15, 2026. It is now read-only.
Commit 27c47c0
committed
feat: add user-configurable fuzzy match threshold setting
- Add fuzzyMatchThreshold to GlobalSettings schema (0-1 range, optional)
- Update Task class to accept and pass threshold to MultiSearchReplaceDiffStrategy
- Add UI slider control in ContextManagementSettings (80-100% range)
- Add English translations for the new setting
This allows users to adjust how strictly search content must match when
editing files, addressing issues where models like gemini-2-flash-preview
produce output with 89-96% similarity that fails with 100% exact match.
Fixes #110871 parent b020f6b commit 27c47c0
6 files changed
Lines changed: 65 additions & 4 deletions
File tree
- packages/types/src
- src/core
- task
- webview
- webview-ui/src
- components/settings
- i18n/locales/en
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
104 | 115 | | |
105 | 116 | | |
106 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
162 | 169 | | |
163 | 170 | | |
164 | 171 | | |
| |||
565 | 572 | | |
566 | 573 | | |
567 | 574 | | |
| 575 | + | |
568 | 576 | | |
569 | 577 | | |
570 | 578 | | |
| |||
683 | 691 | | |
684 | 692 | | |
685 | 693 | | |
686 | | - | |
687 | | - | |
| 694 | + | |
| 695 | + | |
688 | 696 | | |
689 | 697 | | |
690 | 698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
972 | | - | |
973 | | - | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
974 | 981 | | |
975 | 982 | | |
976 | 983 | | |
| |||
980 | 987 | | |
981 | 988 | | |
982 | 989 | | |
| 990 | + | |
983 | 991 | | |
984 | 992 | | |
985 | 993 | | |
| |||
2877 | 2885 | | |
2878 | 2886 | | |
2879 | 2887 | | |
| 2888 | + | |
2880 | 2889 | | |
2881 | 2890 | | |
2882 | 2891 | | |
| |||
2901 | 2910 | | |
2902 | 2911 | | |
2903 | 2912 | | |
| 2913 | + | |
2904 | 2914 | | |
2905 | 2915 | | |
2906 | 2916 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
406 | 409 | | |
407 | 410 | | |
408 | 411 | | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
409 | 435 | | |
410 | 436 | | |
411 | 437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
| |||
857 | 858 | | |
858 | 859 | | |
859 | 860 | | |
| 861 | + | |
860 | 862 | | |
861 | 863 | | |
862 | 864 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
738 | 738 | | |
739 | 739 | | |
740 | 740 | | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
741 | 745 | | |
742 | 746 | | |
743 | 747 | | |
| |||
0 commit comments