typescript-tools updated (access language service from commandline, for editor plugins)

Topics: General
Aug 19, 2013 at 10:19 AM
typescript-tools (v0.2.0) provides access to the TypeScript Language Services (v0.9) via a simple commandline server (tss). This makes it easy to build editor/IDE plugins supporting TypeScript (when your editor is not itself running JavaScript).

https://github.com/clausreinke/typescript-tools

Supported features (via TS language service) include:
  • resolving dependencies (via TypeScript.ReferenceResolver)
  • type and documentation lookup
  • find definition, list references
  • identifier completion
  • list load, syntax, and semantic errors
A Vim plugin (tss.vim) is included. Some users are working on Emacs (linked) and Sublime (not published yet) plugins. If you build plugins for other editors/IDEs based on typescript-tools, please let me know, or better: announce them on our new project mailing list.

The protocol used by tss (commands over stdin, JSON over stdout) is outlined on the project home page, as are the Vim plugin commands. For changes since tss v0.1.0, see file CHANGES.txt.

I hope you'll find this useful. The sources might be interesting as an example of using the language services (though I do not guarantee that they are a good example!-).
Aug 19, 2013 at 12:38 PM
Edited Aug 19, 2013 at 12:38 PM
Thanks for this, Claus. It's an excellent resource for direct use and for reference for tool builders. I'll be trying the Vim plug-in ASAP.