-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sublime-like tab rendering #1
Conversation
Hey @spywhere Your I was under the impression my PR wasn't going to be accepted so I worked on my own fork with an opinionated config. If you're willing to merge the changes, I might abandon my extension altogether. |
First of all, thanks for your understanding and for the PR itself. Would it be better if the user can choose whether they want to use full-width tab rendering or not? As user who didn't use Sublime Text before might get confused with default behavior of VSCode. We might, as well, add or specified about this feature on the README instead. That way Sublime Text's users would know that this extension also support full-width tab rendering. PS. As my timezone is weekends (at the time you submitted this PR), I didn't check my GitHub so I didn't see that. Sorry on my side also. |
This was just a misunderstanding 👍 Anyways.
Generally I'm all for user choice.
Surely. |
@spywhere should I submit a new PR? please take a look at https://github.com/chmln/betterWhiteSpace/blob/master/src/extension.ts |
I think it'd be a good idea to let you submit a PR. And later on (if needed), I'll do some refactoring again. What do you think? |
@spywhere sounds good. I'll submit a PR as soon as I have some time. Meanwhile I've managed to fix the jumpy tab display and enforced consistency across different OS |
I got inspired by microsoft/vscode#25021
Before:
After:
Especially helpful to check if indendation is consistent in css:
The screenshots above use
editor.tabSize:4
, but the implementation is flexible for 2-wide and 8-wide tabs as well.The estimated tab glyph width can sometimes be off by 1-2px depending on the font, but that can be improved in the future with some additional effort.