WebStorm not autocomplete class property Hadikcze Created October 14, 2018 21:54 Why WebStorm not see class property, only methods ? (ES6, I set this in preferences for ECMAscript6) Whats wrong with that ? I want simply autocomplete this property.
Works for me:
please provide a file/test project that can be used to recreate the issue
For example in this Phaser base project:
https://github.com/nkholski/phaser3-es6-webpack
In file https://github.com/nkholski/phaser3-es6-webpack/blob/master/src/sprites/Enemy.js
In this project defined sometime works, but inherited from Phaser.GameObjects.Sprite, like this.body, or this.game, not autocomplete and its not visible.
I think it will be something wrong with setting of WS.
In this project, body is not own property of Enemy class, it's inherited from Phaser.GameObjects.GameObject that is defined using ES5 syntax + JSDoc
Extending ES5 classes using ES6 syntax is not currently supported. Please follow https://youtrack.jetbrains.com/issue/WEB-28080 for updates