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

LSP-tsgo

by sublimelsp ST4 New

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

Details

Installs

  • Total 3
  • Win 2
  • Mac 0
  • Linux 1
May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3
Windows 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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.

[!NOTE] Microsoft plans to merge typescript-go into the main typescript branch at some point. This package will likely follow and get merged into LSP-typescript then.

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