antfu / vscode-iconify

🙂 Iconify IntelliSense for VS Code
https://marketplace.visualstudio.com/items?itemName=antfu.iconify
MIT License
453 stars 33 forks source link

Autocomplete does not start from the start of the substring when deleting characters and typing again #81

Open henrikvilhelmberglund opened 2 months ago

henrikvilhelmberglund commented 2 months ago

Describe the bug

For example if I have i-logos-javascript and remove a few characters from the end and start typing from i-logos-javas I first get no autocomplete (need to type a character to start the autocomplete process), then typing r from i-logos-javasc I get r-lang and so on (matching r) instead of javascript.

I think the whole string should be matched until (not including) the previous - character to get better autocomplete results.

Reproduction

Above^

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
    Memory: 1.66 GB / 15.95 GB
  Binaries:
    Node: 18.16.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 9.5.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.6.3 - ~\AppData\Roaming\npm\pnpm.CMD
    bun: 1.1.12 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (125.0.2535.92)
    Internet Explorer: 11.0.19041.4355

Used Package Manager

npm

Validations

Contributions