runem / lit-analyzer

Monorepository for tools that analyze lit-html templates
MIT License
317 stars 36 forks source link

ts-lit-plugin: no auto-imports on completion #266

Open abenz1267 opened 2 years ago

abenz1267 commented 2 years ago

Hello,

i'm using ts-lit-plugin with typescript language server on neovim. Autocompletion works, but imports are missing. Importing via code-action works fine. Non-Lit projects also work just fine. Any idea? I figured it might be related to this issue https://github.com/runem/lit-analyzer/issues/200 but i'm not sure.

Anyone else having problems? Anything i can do to fix?

On a side note: why aren't components being autoimported in general? I figured it might be related to the fact you can disable the [no-missing-import](https://www.npmjs.com/package/ts-lit-plugin#-no-missing-import) rule, but if it's enabled manually or via strict mode, shouldn't there be auto-imports?

Regards

daniel-vlad commented 2 years ago

Any update on this one?