alefragnani / vscode-separators

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

[FEATURE] - Only draw a single separator when the relevant first line wraps #22

Open vor0nwe opened 3 years ago

vor0nwe commented 3 years ago

Currently (version 2.0.0 of the extension), when the first line of a method is very long and gets wrapped, the separator is repeated for every wrapped line: image

This is confusing, because it suggests that these lines are three separate methods, which isn’t true.

Could this be changed, so only one separator is drawn, above the first wrapped line, but not above the continuation lines?

alefragnani commented 3 years ago

Hi @vor0nwe ,

I agree with you, but unfortunately I’m not entirely sure this will be possible. Basically because the Decorators API that VS Code provides (used to draw the separator on top of the line), don’t seem to know/care about word wrap. I’ve notice the same behavior on other extensions that uses this API.

I’ll try to dig a bit more at the API. Maybe I’ve missed something.

Thank you