LSP-tsgo
TypeScript, JavaScript support for Sublime LSP plugin based on typescript-go
Installations minus removals
Upgrades
- 203 installs
Links
Versions
1.4.1
(ST4148+)
·
More
-
(ST4148+)
1.4.0
·
2026-10-30 22:22 -
1.3.0
·
2026-10-29 17:25 -
1.2.1
·
2026-10-28 19:24 -
1.2.0
·
2026-09-17 21:58 -
1.1.7
·
2026-07-30 21:43 -
1.1.6
·
2026-06-30 09:40 -
1.1.5
·
2026-06-30 09:35 -
1.1.4
·
2026-06-28 19:16 -
1.1.3
·
2026-06-16 17:56 -
1.1.2
·
2026-06-04 18:56 -
1.1.1
·
2026-06-02 20:35 -
1.1.0
·
2026-05-19 05:11 -
1.0.0
·
2026-05-16 08:36
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.
Go to Source Definition
LSP: Goto Definition on a symbol from a dependency lands in its .d.ts. The LSP-tsgo: Goto Source Definition command (lsp_tsgo_goto_source_definition) asks the server for the implementation behind that declaration instead: the .js shipped next to the typings, or the original .ts when a declaration map is available. When the server has nothing to map (the symbol is already in source, or the server is too old to support the request) the command falls back to the ordinary definition, so it can take over a definition key binding:
{
"keys": ["super+i"],
"command": "lsp_tsgo_goto_source_definition",
"args": {"fallback": true},
"context": [
{"key": "lsp.session_with_name", "operand": "LSP-tsgo"}
]
}
Pass "fallback": false to get a status message instead of the fallback.
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