alefragnani / vscode-separators

Separators Extension for Visual Studio Code
GNU General Public License v3.0
40 stars 6 forks source link

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

Open lnikod4s opened 3 years ago

lnikod4s commented 3 years ago

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

alefragnani commented 3 years ago

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

hccampos commented 1 year ago

+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.