Closed esidegallery closed 1 year ago
Copying the original code below for easy copy/paste if I need to reference it again in the future:
public class Test extends EventDispatcher
{
public function Test()
{
var alert:Alert = Alert.show(
"Are you sure?",
"Close",
new ArrayCollection([
{
label: "Save",
triggered: function():void
{
dispatchEventWith("save");
}
},
{
label: "Discard",
triggered: function():void
{
dispatchEventWith("discard");
}
}
]));
}
}
apache/royale-compiler@b495634efff9c9d862e7205295abdceb8f3e69cf
Confirmed in a fresh installation of the latest VSCode with the ActionScript & MXML extension on Windows 10 x64.
Nested object & function blocks and their opening & closing braces are incorrectly indented: