Language server plugin support in Typescript 2.3

The intention of this API is to extend TS Checking to other features/frameworks, so that instead of them writing Linters and Feature Extensions, they can provide these features out of the box to TS Users using the tsServer, which is TS’ own language service, which editors use to provide TS features, like typeahead, code navigation, real time errors etc..

Check out these plugins:

 

Eg.

VSCode

  • cd workspace folder
  • npm install tslint-language-service
  • npm install tslint@4.5.1 (peer dependency is defined as 4.x)
  • open the workspace folder in VS Code
  • disable vscode-tslint for the workspace
  • edit the tsconfig.json
{
    "compilerOptions": {
        "plugins": [
            {
                "name": "tslint-language-service"
            }
        ]
    }
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s