ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LSP-tsgo

by sublimelsp ST4

TypeScript, JavaScript support for Sublime LSP plugin based on typescript-go

Details

Installs

  • Total 168
  • Win 47
  • Mac 62
  • Linux 59
Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29
Windows 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2
Mac 0 3 3 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0 0 1 1 1 0 0 0 2 1 0 0 1 0 0 0 0 0 0 0 0 1 1
Linux 0 1 0 1 0 1 0 1 0 0 0 0 1 0 0 0 1 0 1 0 0 1 0 1 0 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

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 LSP and LSP-tsgo from 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 interface
  • source.organizeImports - organizes and removes unused imports
  • source.removeUnusedImports - removes unused imports
  • source.sortImports - sorts imports