# Vshaxe 2.22.0 released (implement missing fields quickfix)

**URL:** https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890
**Category:** Announcements
**Tags:** ide, vscode
**Created:** [February 9, 2021, 8:40pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890 "2021-02-09T20:40:21Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![Gama11](https://community.haxe.org/user_avatar/community.haxe.org/gama11/32/7_2.png) [@Gama11](https://community.haxe.org/u/Gama11)
#### Post date: [February 9, 2021, 8:40pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/1 "2021-02-09T20:40:21Z")

</div>

To accompany the new [Haxe 4.2.0 release](https://community.haxe.org/t/haxe-4-2-0-is-released/2888), 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

![9JbmKqh2DX](https://community.haxe.org/uploads/default/original/2X/1/13e2c6b18fe222342146d9f3a321d058d65f1bb6.gif)

### Implement Missing Property Accesors

![rUL2ShEZRZ](https://community.haxe.org/uploads/default/original/2X/6/60f81be18a33d858958af6723a40f4159223e264.gif)

### Create Non-Existent Fields

![mf2C4O1j67](https://community.haxe.org/uploads/default/original/2X/a/ae259acd36d3541ce5f0b1b7e8bc7107f01e26b9.gif)

* * *

We also made some other improvements such as updating the bundled haxe-formatter to version 1.11.2. You can find the full changelog here:

> <https://github.com/vshaxe/vshaxe/blob/master/CHANGELOG.md#2220-february-9-2021>

---

<div class="post-metadata">

### Author: ![postite](https://community.haxe.org/user_avatar/community.haxe.org/postite/32/320_2.png) [@postite](https://community.haxe.org/u/postite)
#### Post date: [February 9, 2021, 9:51pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/2 "2021-02-09T21:51:25Z")

</div>

thanks ! nice job !

---

<div class="post-metadata">

### Author: ![d0oo0p](https://community.haxe.org/user_avatar/community.haxe.org/d0oo0p/32/170_2.png) [@d0oo0p](https://community.haxe.org/u/d0oo0p)
#### Post date: [February 10, 2021, 2:47pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/3 "2021-02-10T14:47:42Z")

</div>

Fantastic! Been waiting for these improvements!  
However; i cant really get it to work - not really sure whats wrong?  
(Haxe 4.2 + VSHaxe 2.22)

![image](https://community.haxe.org/uploads/default/original/2X/b/be62988a8986244d2b418162c04b277d120dfb76.png)

---

<div class="post-metadata">

### Author: ![Gama11](https://community.haxe.org/user_avatar/community.haxe.org/gama11/32/7_2.png) [@Gama11](https://community.haxe.org/u/Gama11)
#### Post date: [February 10, 2021, 3:00pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/4 "2021-02-10T15:00:08Z")

</div>

@d0oo0p Me neither, can you try with this project? [GitHub - Gama11/HaxeRepro](https://github.com/Gama11/HaxeRepro)

Just run `npm install`, that installs lix locally, which should rule out any issues with incorrect dependencies.

---

<div class="post-metadata">

### Author: ![d0oo0p](https://community.haxe.org/user_avatar/community.haxe.org/d0oo0p/32/170_2.png) [@d0oo0p](https://community.haxe.org/u/d0oo0p)
#### Post date: [February 10, 2021, 3:20pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/5 "2021-02-10T15:20:48Z")

</div>

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…

---

<div class="post-metadata">

### Author: ![Gama11](https://community.haxe.org/user_avatar/community.haxe.org/gama11/32/7_2.png) [@Gama11](https://community.haxe.org/u/Gama11)
#### Post date: [February 10, 2021, 3:32pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/6 "2021-02-10T15:32:14Z")

</div>

Diagnostics are updated on save (in the gif I have auto-save enabled). Unless you have them turned of globally by chance?

---

<div class="post-metadata">

### Author: ![francescoagati](https://community.haxe.org/user_avatar/community.haxe.org/francescoagati/32/503_2.png) [@francescoagati](https://community.haxe.org/u/francescoagati)
#### Post date: [February 10, 2021, 3:49pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/7 "2021-02-10T15:49:56Z")

</div>

hello,  
auto creation of fields can be possible also for static methods?

---

<div class="post-metadata">

### Author: ![Gama11](https://community.haxe.org/user_avatar/community.haxe.org/gama11/32/7_2.png) [@Gama11](https://community.haxe.org/u/Gama11)
#### Post date: [February 10, 2021, 3:55pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/8 "2021-02-10T15:55:40Z")

</div>

Not sure if that’s a question or a bug report? 🙂 But yes, that should work already:

![476wkuTFEZ](https://community.haxe.org/uploads/default/original/2X/6/64a04bca7a3a3e42723338256a428ca928e76ccb.gif)

---

<div class="post-metadata">

### Author: ![d0oo0p](https://community.haxe.org/user_avatar/community.haxe.org/d0oo0p/32/170_2.png) [@d0oo0p](https://community.haxe.org/u/d0oo0p)
#### Post date: [February 10, 2021, 4:04pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/9 "2021-02-10T16:04:32Z")

</div>

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)

---

<div class="post-metadata">

### Author: ![Gama11](https://community.haxe.org/user_avatar/community.haxe.org/gama11/32/7_2.png) [@Gama11](https://community.haxe.org/u/Gama11)
#### Post date: [February 10, 2021, 5:44pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/10 "2021-02-10T17:44:23Z")

</div>

> [@d0oo0p](#):
>
> Implement abstract fields [dont work] (no code actions available)

Works fine for me on this code:

```haxe
abstract class Base {
	abstract function foo():Int;
}

class Main extends Base {
	static function main() {}
}

```

![image](https://community.haxe.org/uploads/default/original/2X/7/70984bddb58117614b6fc0edd74aa59b2f790ab7.png)

(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. 🙂

---

<div class="post-metadata">

### Author: ![teotigraphix](https://community.haxe.org/user_avatar/community.haxe.org/teotigraphix/32/916_2.png) [@teotigraphix](https://community.haxe.org/u/teotigraphix)
#### Post date: [February 10, 2021, 7:26pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/11 "2021-02-10T19:26:08Z")

</div>

Thank you sooo much for these additions and your work on this extension!

---

<div class="post-metadata">

### Author: ![Gama11](https://community.haxe.org/user_avatar/community.haxe.org/gama11/32/7_2.png) [@Gama11](https://community.haxe.org/u/Gama11)
#### Post date: [February 10, 2021, 7:37pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/12 "2021-02-10T19:37:35Z")

</div>

You’re welcome - this time most of the credit goes to @Simn though. 🙂

---

<div class="post-metadata">

### Author: ![d0oo0p](https://community.haxe.org/user_avatar/community.haxe.org/d0oo0p/32/170_2.png) [@d0oo0p](https://community.haxe.org/u/d0oo0p)
#### Post date: [February 11, 2021, 9:38am UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/13 "2021-02-11T09:38:12Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![loudo](https://community.haxe.org/user_avatar/community.haxe.org/loudo/32/109_2.png) [@loudo](https://community.haxe.org/u/loudo)
#### Post date: [February 11, 2021, 12:30pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/14 "2021-02-11T12:30:11Z")

</div>

Great update!

For **Create Non-Existent Fields** is it possible to put the field right under class Main and not in the bottom of the file?

---

<div class="post-metadata">

### Author: ![alex\_dja](https://community.haxe.org/user_avatar/community.haxe.org/alex_dja/32/294_2.png) [@alex\_dja](https://community.haxe.org/u/alex_dja)
#### Post date: [February 11, 2021, 1:45pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/15 "2021-02-11T13:45:44Z")

</div>

Yep, it would be nice to have the feature. Class fields usually go after static members and before class methods.

---

<div class="post-metadata">

### Author: ![francescoagati](https://community.haxe.org/user_avatar/community.haxe.org/francescoagati/32/503_2.png) [@francescoagati](https://community.haxe.org/u/francescoagati)
#### Post date: [February 15, 2021, 10:13am UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/16 "2021-02-15T10:13:59Z")

</div>

don’t work with module-level static declarations?

---

<div class="post-metadata">

### Author: ![Gama11](https://community.haxe.org/user_avatar/community.haxe.org/gama11/32/7_2.png) [@Gama11](https://community.haxe.org/u/Gama11)
#### Post date: [February 28, 2021, 11:16pm UTC](https://community.haxe.org/t/vshaxe-2-22-0-released-implement-missing-fields-quickfix/2890/17 "2021-02-28T23:16:41Z")

</div>

[2.22.1](https://github.com/vshaxe/vshaxe/blob/master/CHANGELOG.md#2221-february-28-2021) should fix most issues with missing field generation mentioned here. Better positioning of the inserted field(s) still remains a future todo.
