Skip to content

Commit

Permalink
SCM decorations are single pixel wide and sometimes not visible at all
Browse files Browse the repository at this point in the history
Fixes #158276
  • Loading branch information
alexr00 committed Aug 22, 2022
1 parent eb8c275 commit 49de874
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -873,9 +873,9 @@ export class CommentController implements IEditorContribution {

const options = this.editor.getOptions();
if (options.get(EditorOption.folding) && options.get(EditorOption.showFoldingControls) !== 'never') {
lineDecorationsWidth -= 16;
lineDecorationsWidth -= 27;
}
lineDecorationsWidth += 15;
lineDecorationsWidth += 24;
extraEditorClassName.push('inline-comment');
this.editor.updateOptions({
extraEditorClassName: extraEditorClassName.join(' '),
Expand Down
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/comments/browser/media/review.css
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,9 @@ div.preview.inline .monaco-editor .comment-range-glyph {

.monaco-editor.inline-comment .margin-view-overlays .codicon-folding-expanded,
.monaco-editor.inline-comment .margin-view-overlays .codicon-folding-collapsed {
margin-left: 14px;
margin-left: 11px;
}

.monaco-editor.inline-comment .margin-view-overlays .dirty-diff-glyph {
margin-left: 24px;
margin-left: 25px;
}

0 comments on commit 49de874

Please sign in to comment.