Eclipse plugin for TypeScript?

EclipseTypescript

Eclipse Problem Overview


The new Microsoft TypeScript language (typed superset of JavaScript) seems very interesting, is there any alpha / incubator project that attempts to support it in Eclipse? Or is it too early to even wish for it

Eclipse Solutions


Solution 1 - Eclipse

Check this open source plugin which is build by palantir.

Solution 2 - Eclipse

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).

Solution 3 - Eclipse

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.

Solution 4 - Eclipse

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

Solution 5 - Eclipse

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionEran MedanView Question on Stackoverflow
Solution 1 - Eclipseuser452425View Answer on Stackoverflow
Solution 2 - EclipseirbullView Answer on Stackoverflow
Solution 3 - EclipseJBaronView Answer on Stackoverflow
Solution 4 - EclipserobView Answer on Stackoverflow
Solution 5 - EclipsethSoftView Answer on Stackoverflow