Skip to content

Add themeable color for comment glyphs on lines with unresolved threads#174915

Merged
alexr00 merged 4 commits into
microsoft:mainfrom
hermannloose:comment-glyph-color
Mar 20, 2023
Merged

Add themeable color for comment glyphs on lines with unresolved threads#174915
alexr00 merged 4 commits into
microsoft:mainfrom
hermannloose:comment-glyph-color

Conversation

@hermannloose
Copy link
Copy Markdown
Contributor

As a follow-up to #174418 which decorated lines with unresolved comment threads with the comment-unresolved icon, we would like the option to distinguish by color as well. Our users request this especially in cases where the comment is collapsed, to quickly spot lines with actionable comments.

@hermannloose
Copy link
Copy Markdown
Contributor Author

hermannloose commented Feb 21, 2023

/assign @alexr00

@alexr00 alexr00 added this to the March 2023 milestone Feb 21, 2023
@alexr00 alexr00 self-assigned this Feb 21, 2023
Comment thread src/vs/workbench/contrib/comments/browser/commentGlyphWidget.ts Outdated
@hermannloose
Copy link
Copy Markdown
Contributor Author

Friendly ping.

@alexr00
Copy link
Copy Markdown
Member

alexr00 commented Mar 7, 2023

@hermannloose I will try to look this week!

@hermannloose
Copy link
Copy Markdown
Contributor Author

Another friendly ping. 😊

I was also wondering whether it's generally preferred to use merge instead of rebase + force-push for keeping a PR up to date; I noticed that the comment from John earlier resulted in a broken link for a while (but I cannot reproduce that now) after I had addressed the changes and force-pushed.

@alexr00
Copy link
Copy Markdown
Member

alexr00 commented Mar 13, 2023

Merge is usually preferred for keeping PRs up to date if you think someone else might check out the PR branch (and we often check out PR branches to test changes).

Copy link
Copy Markdown
Member

@alexr00 alexr00 left a comment

Choose a reason for hiding this comment

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

Thank you for your patience with my slowness in reviewing this change! I've fixed the nits so that we can merge this sooner.

Comment on lines +17 to +18
export const editorGutterCommentGlyphForeground = registerColor('editorGutter.commentGlyphForground', { dark: editorForeground, light: editorForeground, hcDark: Color.black, hcLight: Color.white }, nls.localize('editorGutterCommentGlyphForeground', 'Editor gutter decoration color for commenting glyphs.'));
export const editorGutterCommentUnresolvedGlyphForeground = registerColor('editorGutter.commentUnresolvedGlyphForeground', { dark: editorGutterCommentGlyphForeground, light: editorGutterCommentGlyphForeground, hcDark: editorGutterCommentGlyphForeground, hcLight: editorGutterCommentGlyphForeground }, nls.localize('editorGutterCommentUnresolvedGlyphForeground', 'Editor gutter decoration color for commenting glyphs for unresolved comment threads.'));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It looks like neither of these need to be exported as they aren't used outside this file. editorGutterCommentUnresolvedGlyphForeground isn't used anywhere and doesn't need to be saved to a const at all.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I've made the changes so that we can get this merged today.

@alexr00 alexr00 enabled auto-merge (squash) March 20, 2023 18:21
@alexr00 alexr00 merged commit b51bdbc into microsoft:main Mar 20, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators May 5, 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.

4 participants