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

LSP-typescript

by sublimelsp ST3

TypeScript, JavaScript support for Sublime LSP plugin

Details

Installs

  • Total 6K
  • Win 2K
  • Mac 2K
  • Linux 2K
Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18
Windows 5 4 5 3 6 11 10 2 3 7 7 7 4 7 2 5 6 8 8 7 5 12 5 7 12 8 6 11 4 7 5 5 8 12 10 6 4 6 3 10 6 8 11 7 12 10
Mac 9 4 10 4 11 6 6 17 6 4 3 11 7 6 10 5 5 6 10 6 8 14 8 5 7 13 7 11 9 9 6 8 15 8 11 12 6 5 12 16 12 15 13 13 6 16
Linux 2 5 7 3 2 9 5 11 6 6 10 6 8 5 12 2 5 13 4 10 7 4 8 2 10 10 4 9 4 4 10 8 9 9 7 5 5 10 8 11 7 7 5 8 2 12

Readme

Source
raw.​githubusercontent.​com

LSP-typescript

TypeScript and JavaScript support for Sublime's LSP plugin provided through Theia TypeScript Language Server.

Installation

  • Install LSP and LSP-typescript from Package Control.
  • For ST3: If you use TypeScript install TypeScript Syntax. If you use React install JSCustom.
  • For ST4: The TypeScript and React (TSX) syntaxes are built-in so no need to install anything else.
  • Restart Sublime.

Configuration

Open the configuration file using the Command Palette Preferences: LSP-typescript Settings command or open it from the Sublime menu.

Organize Imports command

To sort or remove unused imports you can trigger the LSP-typescript: Organize Imports command from the Command Palette or create a key binding. For example:

{ "keys": ["ctrl+k"], "command": "lsp_execute",
        "args": {
            "session_name": "LSP-typescript",
            "command_name": "_typescript.organizeImports",
            "command_args": ["${file}"]
        }
    },