sublimelsp / LSP-angular

Convenience plugin for Angular Language Service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LSP-angular

This is a helper package that automatically installs and updates the Angular Language Server for you.

Installation

  • Install LSP, Ngx HTML and LSP-angular from Package Control.
  • Restart Sublime.

Configuration

Open configuration file using command palette with Preferences: LSP-angular Settings command or opening it from the Sublime menu (Preferences > Package Settings > LSP > Servers > LSP-angular).

Versioning

This language service extension relies on the @angular/language-server and typescript packages for its backend. @angular/language-server is always bundled with the extension, and is always the latest version at the time of the release.

For people who need an older version of the angular server, this is how to point to a local @angular/language-server.

Override the start command in a ST project file, to point to a local @angular/language-server

{
  "folders": [
    {
      "path": "."
    }
  ],
  "settings": {
    "LSP": {
      "LSP-angular": {
        "command": [
          "${node_bin}",
          "${folder}/node_modules/@angular/language-server/index.js", // adjust the path based on your project
          "--ngProbeLocations", "${folder}/node_modules",  // adjust the path based on your project
          "--tsProbeLocations", "${folder}/node_modules",  // adjust the path based on your project
          "--stdio"
        ]
      },
    }
  }
}

About

Convenience plugin for Angular Language Service

License:MIT License


Languages

Language:Python 100.0%