BowlerHatLLC / vscode-as3mxml

ActionScript & MXML language extension for Visual Studio Code. Develop apps for Adobe AIR, Adobe Flash Player, or Apache Royale.
https://as3mxml.com/
Apache License 2.0
256 stars 39 forks source link

Include super.method() call in an auto-generated override method #641

Open ylazy opened 1 year ago

ylazy commented 1 year ago

The current override code:

override protected function foo():void

The expected code:

override protected function foo():void
{
    super.foo();
}
joshtynjala commented 1 year ago

I'm going to mark this won't fix. An override isn't required to call super, so I don't think it makes sense to always include it.

ylazy commented 1 year ago

Could you create an extension setting to change this default behavior? Flash Develop includes super.method() by default and this's very useful for me because sometimes I forget to include it, and this leads to unexpected errors that are hard to debug. For me, almost cases I need it by default, and I can easily remove it if I don't need.

joshtynjala commented 1 year ago

I'll consider it for a future update.