1.1.1 • Published 7 years ago

@vvakame/typescript-plugin-example v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

TypeScript Plugin Example

TypeScript Language Service has plugins. We can make proxy for Language Service. see 1, 2.

We can't use plugin with tsc command. We should use plugin via tsserver.

How to try?

$ npm install --save-dev @vvakame/typescript-plugin-example
$ cat tsconfig.json
{
  "compilerOptions": {
    "target": "esnext",
    "module": "esnext",
    "strict": true,
    "plugins": [
      {
        "name": "@vvakame/typescript-plugin-example",
        // Plugin specific configuration
        "verbose": true,
        "goody": "😻"
      }
    ]
  }
}
$ git clone https://github.com/vvakame/typescript-plugin-example.git
$ cd typescript-plugin-example
$ npm install && npm run build
$ code .
# open fixture/index.ts and see quickinfo & completion list.
# ⌘+⌥+P > TypeScript: Open TS Server log file
# This is extremely cool!
$ npm run test
# check behavior via tsserver command.

bibliography