-
-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS Intellisense Generation doesn't support inheritance #495
Comments
Emitting this in JS would be more complicated; we'd need to pick an inheritance paradigm. (probably http://blog.slaks.net/2013-09-03/traditional-inheritance-in-javascript/) |
In TS it would be not so hard. But first we should do a Bundle or per Folder generation of multiple TS/JS Files files. |
The JS files are not only used by VS; if you write |
Then we must support several inheritance styles 🌵 |
This is literally the only thing holding us back from using the auto-generated TypeScript feature. Forgive me, but can't this just be implemented for TypeScript for now (using the "extends" keyword) and leave it out of the JS definition files? It doesn't seem to make sense to hold back half of this feature. |
Couldn't agree more. I'm getting tired of having to edit the generated file every time i touch a class. |
@nicholashead @craigktreasure the power of open source, simple add it (don't forgert the unit tests) ;) If nobody take this, i will do it, next week. |
@DerAlbertCom - yep, for sure. I'm not demanding it or anything! Just adding a +1 to the idea of someday supporting it in TypeScript. |
In IEnumerable<CodeClass> baseClasses = cc.Bases.Cast<CodeClass>()
.Where(c => c.FullName != "System.Object"); to collect base classes. Couple of questions:
|
* New feature added. * Works for both TypeScript and JavaScript.
This is implemented by 73da2b1. Please test with this build http://1drv.ms/1fv87dl. |
CodeGeneration: Added inheritance support for intellisense (#495)
* New feature added. * Works for both TypeScript and JavaScript.
@madskristensen, this is fixed. Please release a nightly, so peeps can test it. :) @craigktreasure, @DerAlbertCom, @nicholashead, @MissFishie, @gcastre: Please test this feature in (upcoming) nightly. We need to fix as many bugs as possible before the next stable release. Also, please contribute adding the test cases (especially the tricky ones, recursive file reference, with multiple classes etc.) and other OOP scenarios where it could choke. I handled some which I could think of. But I suspect there must be some crafty ways to bring it down to its knees. ⬇️ TIA. |
I just released 2.0.9. Thanks |
Great! Thanks. Sent from my Windows Phone From: Mads Kristensenmailto:[email protected] I just released 2.0.9. Thanks Reply to this email directly or view it on GitHub: |
* New feature added. * Works for both TypeScript and JavaScript.
In the case of the following two classes where the two classes are in two different files:
It would be nice if the Intellisense file added an "extends BaseClass". It doesn't currently, which means you lose the properties in BaseClass.
The text was updated successfully, but these errors were encountered: