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
257 stars 39 forks source link

Error renaming event class #697

Open ylazy opened 1 year ago

ylazy commented 1 year ago

When I rename symbol TickerEvent to FrameTickerEvent, the Event tags in other classes were renamed incorrectly:

    [Event(name = "onTick",         type = FrameTickerEventt")]
    [Event(name = "onTickStart",    type = FrameTickerEventt")]
    [Event(name = "onTickEnd",      type = FrameTickerEventt")]

expected result:

    [Event(name = "onTick",         type = "FrameTickerEvent")]
    [Event(name = "onTickStart",    type = "FrameTickerEvent")]
    [Event(name = "onTickEnd",      type = "FrameTickerEvent")]
joshtynjala commented 1 year ago

It looks like the Royale compiler is providing the incorrect position. I'll need to fix it there first.

joshtynjala commented 1 year ago

apache/royale-compiler@e5a22fb81954f1d44a534a9080c5d62f22da8ea4