FuelLabs / sway

🌴 Empowering everyone to build reliable and efficient smart contracts.
https://docs.fuel.network/docs/sway/
Apache License 2.0
62.58k stars 5.37k forks source link

Show bytes size and gas usage for sway unit tests as an LSP inlay hint #6737

Open JoshuaBatty opened 1 week ago

JoshuaBatty commented 1 week ago

This concept was originally raised very early on #513. Since then #4178 enabled this information at the unit test level. We should be able to just extract this information from forc-test and display the byte code a gas used as an inlay hint next to the unit test.

Should provide a nice interactive way to golf byte size and gas costs for devs.