WebStorm not autocomplete class property

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.

 

 

 

0
3 comments

Works for me:

please provide a file/test project that can be used to recreate the issue

0

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.

 

0

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

0

Please sign in to leave a comment.