coc-extensions / coc-svelte

svelte support for (Neo)Vim
MIT License
176 stars 24 forks source link

Doesn't support // @ts-ignore #31

Closed jacobmischka closed 3 years ago

jacobmischka commented 3 years ago

No matter what I try I can't get coc-svelte to support @ts-ignore directives, even though I believe svelte-language-server supports them. Am I doing something wrong?

image

jacobmischka commented 3 years ago

Actually, I'm pretty sure this is an upstream issue and has nothing to do with this extension, svelte-check is doing the same thing:

====================================
Loading svelte-check in workspace: ...
Getting Svelte diagnostics...

.../src/components/ViewFilter.svelte:42:20
Error: An import path cannot end with a '.ts' extension. Consider importing '../wasm-wrapper.js' instead. (ts)
    // @ts-ignore
    import utils from '../wasm-wrapper.ts';

====================================