pcbowers / alpine-intellisense

IntelliSense for Alpine.js
https://marketplace.visualstudio.com/items?itemName=pcbowers.alpine-intellisense
MIT License
19 stars 1 forks source link

Issue with intellisense in 'regular' text. #4

Closed cfjedimaster closed 2 years ago

cfjedimaster commented 2 years ago

I'm seeing the extension be a bit aggressive in terms of suggestions when typing. So for example, on a page w/ no JS at all, I typed:

<p>
Hello world.
</p>

When I typed the period at the end, I got:

image

As I'm a fast typer, I ened up with: Hello world.alt.

Any reason why it is prompting for stuff with just a period?

pcbowers commented 2 years ago

This is a feature of snippets. Since snippets are tied to file types (extensions), you can disable them if you like. There is a setting for this extension (alpine-intellisense.settings.languageScopes); as long as you remove HTML, this will remove these snippets. I'm going to close this for now since this is avoidable with that setting, but let me know if you have a better solution!