LSP-tsgo
TypeScript, JavaScript support for Sublime LSP plugin based on typescript-go
By
sublimelsp
Created
Installations minus removals
Upgrades
- 144 installs
Links
Versions
1.2.0
(>ST4147)
·
LSP-tsgo
TypeScript and JavaScript support for Sublime's LSP plugin provided through typescript (go based).
Note
typescript-go is now merged into the main typescript repo. This package will likely follow and get merged into LSP-typescript once Typescript 7 gains the tsserver API.
Installation
- Install
LSPandLSP-tsgofrom Package Control. - Restart Sublime.
Configuration
Open the configuration file using the Command Palette Preferences: LSP-tsgo Settings command or open it from the Sublime menu.
Code Actions on Save
The server supports the following code actions that can be specified in the global lsp_code_actions_on_save setting and run on saving files:
source.fixAll- despite the name, fixes a couple of specific issues: unreachable code, await in non-async functions, incorrectly implemented interfacesource.organizeImports- organizes and removes unused importssource.removeUnusedImports- removes unused importssource.sortImports- sorts imports