To accompany the new Haxe 4.2.0 release, there’s also a new release of vshaxe.
Aside from adding support for the new Haxe features such as abstract classes, we also added support for implementing various kinds of missing fields with a quickfix (requires Haxe 4.2.0+):
Implement Missing Interface / Abstract Class Fields
Ok, tried that - but it makes no difference…
Should i get updates to errors live? Because i have to hit build before errors or anything updates… not at all like in the gif’s showing here…
Thanks, that was the case with the diagnostics!
So after testing more this is what i found:
-Implement missing function [works]
-Implement missing getter/setters [works]
-Implement abstract fields [works]
-Implement missing interface fields [works on only funcations and not if variables] (no code actions)
-Add non-existent fields [dont work] (no code actions available)
abstract class Base {
abstract function foo():Int;
}
class Main extends Base {
static function main() {}
}
(though it seems to insert an override modifier it shouldn’t, that was required in earlier 4.2 nightlies)
I am able to reproduce one issue with implementing a missing variable though. Not yet sure what’s different compared to the .gif where it worked just yesterday.
Ok you are right, my mistake - it is “implement missing interface fields” that is not working - updated my post . But the interesting thing is that if the interface does not have any variables, only methods - it does infact work. So it seems the issue is just related to variables then.