alefragnani / vscode-separators

Separators Extension for Visual Studio Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Stehsaer opened this issue · comments

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

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

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.