You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think you need to keep the value returned by the registration function, it is a disposable, you can call to remove the old provider and recreate the new one as above. (So instead to just push it to the subscriptions array keep a reference to that returned value and then also add it to the subscriptions)
Thanks @LucaGabi for the contribution ! It didn't come to my mind to go with that solution, great tip ! I added some tweaks in order to trigger the suggestions in all file types :
because there is no explicit trigger character, VSCode uses default behavior which doesn't show up Snippet completion items for other file types (e.g js or json). VSCode suggestions ranking seems showing more language related candidates (see this for more details)
Thus, I'm setting the character > as main trigger (ctrl+space is always available but ranking may play with the results).
Provide snippets as completionItems (to be shown next to the built-in snippets using ctrl+space).
snp:snippet-label
The text was updated successfully, but these errors were encountered: