Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

[FEATURE REQUEST] Support typescript-language-server source code actions #100

Closed
1 task done
jose-elias-alvarez opened this issue Dec 17, 2021 · 0 comments · Fixed by #116
Closed
1 task done

[FEATURE REQUEST] Support typescript-language-server source code actions #100

jose-elias-alvarez opened this issue Dec 17, 2021 · 0 comments · Fixed by #116
Labels
enhancement New feature or request

Comments

@jose-elias-alvarez
Copy link
Owner

Issues

  • I have checked existing issues and there are no existing ones with the same request.

Feature description

typescript-language-server recently added support for source code actions, which as I understand it are intended for running on save. The documentation describes the following actions:

source.addMissingImports.ts - adds imports for used but not imported symbols
source.fixAll.ts - despite the name, fixes a couple of specific issues: unreachable code, await in non-async functions, incorrectly implemented interface
source.removeUnused.ts - removes declared but unused variables
source.organizeImports.ts - organizes and removes unused imports

It'd be great to support these, though I have no idea how to run these in Neovim (or whether Neovim supports them in the first place).

Help

Yes

Implementation help

A better idea of what makes these actions different from standard code actions.

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

Successfully merging a pull request may close this issue.

1 participant