Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse plugin for TypeScript? [closed]

People also ask

Does Eclipse support TypeScript?

CodeMix is an Eclipse plugin that delivers exceptional support for TypeScript in Eclipse, and gives you the ability to add Code-compatible extensions directly into Eclipse to further enhance your TypeScript coding experience.

Is TypeScript a plugin?

TypeScript Language Service Plugins use the Decorator Pattern to "wrap" the main TypeScript Language Service. When your plugin is initialized, it will be given a Language Service instance to wrap, and should return a new decorator wrapping this instance.


Check this open source plugin which is build by palantir.


This question was asked the day TypeScript was released, so as of today (Oct 2nd 2012), there is no support. Having said that, the XText team -- a team responsible for rapidly creating DSLs -- is aware of TypeScript and I wouldn't be surprised if they do something.

Another place to look is Microsoft. Depending on what their motivation is with TypeScript, they may push for an Eclipse project (although I doubt it).


Orion (the web based eclipse ide) would be a good fit. It is already using nodejs, so it would be easier to incorporate tsc and the language services. Right now they already support Javascript including some type inference. I understood typescript is on their radar.


Looks like the beta of an Eclipse Typescript plugin was uploaded on Aug 7 2013. I haven't had a chance to try it out yet but it looks promising.

http://marketplace.eclipse.org/content/typescript#.UgfEuD9IG-V

https://github.com/palantir/eclipse-typescript


Until a specific plugin is implemented, if you are adventurous enough, you might try and just use JSDT and associate *.ts files with the JavaScript editor. If you get JavaScript validation errors, disable the JavaScript Validator under Project > Properties > Builders. For automatic TypeScript compiling, you can set up an external builder as described here or here. My settings:

  • Main
    • Location: /usr/local/bin/tsc
    • Working directory: ${build_project}
    • Arguments: ${build_files:f}
  • Refresh
    • Refresh resources upon completion: checked
    • The folder containing the selected resource
  • Environment
    • PATH = /user/local/bin
  • Build Options
    • Allocate console: checked
    • Run the builder: During auto builds
    • Specify Resources: a folder that contains *.ts files