Skip to content

typescript-svelte-plugin breaks neovim native LSP #2251

@philippviereck

Description

@philippviereck

Describe the bug

As soon as I add the typescript-svelte-plugin to my tsconfig.json the zero-effort typesafety features take effect as expected, but basic LSP features stop working for example, autocompletion does not suggest anything inside the $lib/ folder anymore. Remove the plugin from tsconfig.json obviously removes the zero-effort typesafety and then autocomplete suggestions for $lib/ exports also starts to work again as expected.

I also added the path aliases and includes manually to my tsconfig.json this results in import statements for $lib working, but autocomplete is still not working properly.

For those that want both, I switched to coc-svelte there both work out of the box (Typescript language features and Svelte language features with zero-effort type safety

Reproduction

add the typescript-svelte-plugin to your tsconfig.json with for example a LazyVim setup, create a +server.ts and some export in lib/ and try to auto-import it from autocompletion.

Expected behaviour

That typescript LSP features still work after adding typescript-svelte-plugin to tsconfig.json

System Info

  • OS: [macOS 14.2.1]
  • IDE: [NeoVim v0.10.0-dev-2055+gbeca82721-Homebrew
    Build type: Release
    LuaJIT 2.1.1703358377]

Which package is the issue about?

No response

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions