Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

[Docs enhacement] TypescriptAddMissingImports don't work in javascript files without checkJs #68

Open
serranomorante opened this issue Apr 25, 2023 · 1 comment

Comments

@serranomorante
Copy link

TypescriptAddMissingImports seems to not work for javascript projects that don't specify the checkJs: true option in it's jsconfig.json.

This was mentioned in the deprecated version of this plugin:

Note: :TSLspImportAll depends on tsserver diagnostics, meaning that the function won't work for JavaScript files unless you set "checkJs": true inside tsconfig.json / jsconfig.json.

If that's still the case we should mention it here too.

@jose-elias-alvarez
Copy link
Owner

Do any commands work in JavaScript projects without the option enabled? This is more of a typescript-language-server config issue than something specific to this plugin (the situation with nvim-lsp-ts-utils wasn't exactly the same, since we relied on parsing generated diagnostics).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants