Open lucamorelli opened 9 years ago
@am11 @gcastre What do you think?
Undoubtedly, this is a nice suggestion.
There are some mature tools such as TypeScripter and TypeLite for C#-TS conversions, which even generate interface definitions from compiled assemblies. Compared to these tools, WE2013's implementation is quite basic.
WE uses reflection to enumerate the code. For casing fixes, they can be delivered without much hassle. The rest of them are doable as well, but TBH, the development experience is not super-pleasant (hint: it is Reflection all over the place!)
In WE2015 (https://github.com/madskristensen/WebEssentials2015), however, typescript conversion can leverage Roslyn. With that, the chances of getting this entire feature on steroids are quite high and we can advance pretty swiftly.
IMO, since both versions of WE are implementing this feature using different approaches, we should first implement in WE2015 using Roslyn, and then for VS 2013 (where Roslyn can be optionally installed), back-port the code to WE2013 with a runtime check if Roslyn not present, show dependency missing notification in menu/option for "advance features". This will save duplicate effort and save a lot of development time figuring out what is and isn't possible with Reflection, which can be better spent on perfecting our Roslyn :muscle:.
Hi, I was trying to use the Create Typescript Intellisense file features, but I'm finding a bit difficult to use extensively in some situation and I was thinking to add a few features:
For the first 2 points the solution is not complicated, but to solve the last two I though a different approach:
What do you think? May be a nice idea?