Skip to content

Highlight bug path positions#90

Merged
Discookie merged 1 commit intoEricsson:mainfrom
csordasmarton:highlight_bug_path_positions
Feb 16, 2022
Merged

Highlight bug path positions#90
Discookie merged 1 commit intoEricsson:mainfrom
csordasmarton:highlight_bug_path_positions

Conversation

@csordasmarton
Copy link
Copy Markdown
Contributor

@csordasmarton csordasmarton commented Feb 14, 2022

Closes #88

Screenshots:
image
image
image

@csordasmarton csordasmarton added the enhancement New feature or request label Feb 14, 2022
@csordasmarton csordasmarton added this to the 1.3.0 milestone Feb 14, 2022
Copy link
Copy Markdown
Collaborator

@Discookie Discookie left a comment

Choose a reason for hiding this comment

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

There's a couple things, but otherwise looking good!

The biggest problem is that once the highlights are shown, it's impossible to hide the highlights.
The highlights only go away when there's a file switch.

Comment thread src/editor/navigation.ts Outdated
Comment thread src/editor/navigation.ts Outdated
@csordasmarton csordasmarton force-pushed the highlight_bug_path_positions branch from c7e638d to 51a4d0f Compare February 16, 2022 08:34
@csordasmarton
Copy link
Copy Markdown
Contributor Author

@Discookie Good catch. I think I fixed all the problems you mentioned.

Comment thread src/editor/diagnostics.ts Outdated

// Decoration type for highlighting report step positions.
const reportStepDecorationType = window.createTextEditorDecorationType({
backgroundColor: new ThemeColor('editorMarkerNavigationWarning.background')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Really not sure about this color choice...
image
Played around with a couple other themes, about 50% of them look like this, both light and dark.
I think it would be better to have our own contributed color here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@Discookie I added new configurable colors and updated the screenshots in this PR message above.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yep, that works now for most themes, thanks!

@csordasmarton csordasmarton force-pushed the highlight_bug_path_positions branch from 51a4d0f to bfcb203 Compare February 16, 2022 11:35
Copy link
Copy Markdown
Collaborator

@Discookie Discookie left a comment

Choose a reason for hiding this comment

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

🎉

@Discookie Discookie merged commit 7f628b8 into Ericsson:main Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Highlight bug step ranges

2 participants