Skip to content
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

Wide gutter when PR branch is checked out #167043

Merged
merged 1 commit into from Nov 23, 2022
Merged

Wide gutter when PR branch is checked out #167043

merged 1 commit into from Nov 23, 2022

Conversation

alexr00
Copy link
Member

@alexr00 alexr00 commented Nov 23, 2022

Fixes #166910

@alexr00 alexr00 enabled auto-merge (squash) November 23, 2022 11:07
@alexr00 alexr00 self-assigned this Nov 23, 2022
@VSCodeTriageBot VSCodeTriageBot added this to the November 2022 milestone Nov 23, 2022

const options = editor.getOptions();
if (options.get(EditorOption.folding) && options.get(EditorOption.showFoldingControls) !== 'never') {
lineDecorationsWidth += 11; // 11 comes from https://github.com/microsoft/vscode/blob/94ee5f58619d59170983f453fe78f156c0cc73a3/src/vs/workbench/contrib/comments/browser/media/review.css#L485
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that 11 and 24 are used twice, a constant in the module would be good to have. Also a comment in the CSS file.

@alexr00 alexr00 merged commit 87f9ab2 into main Nov 23, 2022
@alexr00 alexr00 deleted the alexr00/issue166910 branch November 23, 2022 11:24
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Abnormally wide gutter when PR branch is checked out and folding is disabled
3 participants