alefragnani / vscode-separators

Separators Extension for Visual Studio Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] - Add support for getters & setters (`Property` symbols)

lnikod4s opened this issue · comments

Currently, there is no support for adding line separators between JS class getters & setters:
image

Hi @lnikod4s ,

JS class getters/setters are not recognized today because they are in fact, Properties. At least, if you are using the default JS language engine provided by VS Code.

The point is, adding support to Properties, would add separators to any property, but yes, it could be added in the future

Thanks for your suggestion

+1 that this could be nice. In fact, it could be nice to have it for each property, but with the border above their jsdoc comment, if present?

And for getters/setters it could possibly detect that 2 consecutive symbols correspond to the same property and put a separator for the two of them as a single “block” rather than having a line on top of each one.