alefragnani / vscode-separators

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

[FEATURE] - Stop the separator from overlapping the scroll bar #95

Open Stehsaer opened 6 months ago

Stehsaer commented 6 months ago

Fine tune to stop the separator from overlapping the scroll bar. This will boost the visibility

Image: image notice the scroll bar of the editor getting overlapped by the separators

alefragnani commented 6 months ago

Hi @Stehsaer ,

This happens because the separator's decorator is set to fit the whole line. I guess VS Code does this way because the scrollbar is transparent, and because you can see the characters below it, it also shows the decorators.

I see two possible alternatives to this:

Hope this helps

Stehsaer commented 6 months ago

Hi @Stehsaer ,

This happens because the separator's decorator is set to fit the whole line. I guess VS Code does this way because the scrollbar is transparent, and because you can see the characters below it, it also shows the decorators.

I see two possible alternatives to this:

  • Draw the separator to the length of the symbol (first line)
  • Draw the separator using the word wrap setting.

Hope this helps

Thanks for your explanation. The vscode api is to blame, for not providing sufficient api interfaces. I'll go and read the doc for some alternative solutions.