Janne252 / vscode-fontawesome-auto-complete

Auto-complete & preview Font Awesome icons in any language.
https://marketplace.visualstudio.com/items?itemName=Janne252.fontawesome-autocomplete
GNU General Public License v3.0
15 stars 2 forks source link

Trigger character "-" based on trigger word prevents using "-" to filter completion items #6

Closed Janne252 closed 5 years ago

Janne252 commented 5 years ago

Trigger character "-" based on trigger word prevents using "-" to filter completion items, .e.g. if you type

fa-file-alt

The second - causes a new completion instance.

Janne252 commented 5 years ago

This can be partially fixed by extending the word-searching pattern from fa- to fa-[a-zA-Z0-9-]*. However this resets the completion list. VS Code uses word separators (a list of characters) or a word pattern (regex for specific langauges) to do word related stuff, which likely also filters the completion list. This issue cannot be fully fixed right now.

At least the completion list doesn't completly disappear when typing additional dashes.