Fuzzy search pattern doesn't match words if it's corresponding parts start not after a delimiter/from a capital letter
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 5c8dc63920e2b8da109959ab3de8470a570be228
- OS Version: Linux 7.1.2
Steps to Reproduce:
1. Open user settings (JSON)
2. In the root object type `fetch`
3. Observe autocomplete suggestions list including `git.fetchOnPull`, `git.pruneOnFetch`, some other entries with distributed symbols from the pattern
4. Observe `git.autofetch` is not present in the list but expected to be included
So, i tried to run this snippet, and the last assertion fails:
```ts
test('fuzzyScore, lower case tail', function () {
assertMatches('fetch', 'git.pruneOnFetch', 'git.pruneOn^F^e^t^c^h', fuzzyScore);
assertMatches('fetch', 'git.autoFetch', 'git.auto^F^e^t^c^h', fuzzyScore);
assertMatches('fetch', 'git.autofetch', 'git.auto^f^e^t^c^h', fuzzyScore);
});
```
There might be a lot more edge cases affected by this. I would consider this a bug.
Contributor guide
Assessment
This issue has not been assessed yet.