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

feat(playgrounds): Show code lens at end of selection #324

Merged
merged 1 commit into from
Jul 26, 2021

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Jul 22, 2021

Chatting and pairing on this w/ @alenakhineika - we were thinking until we decide if code actions are a better alternative we could go back to putting the code lenses at the bottom of selections just to hopefully improve that ux.

This PR has a few fixes for situations where we weren't showing codelenses, for instance if a user had a multi selection and the last selection was an empty space it wouldn't show a code lens.

In cases where the selection includes the end of the playground, and that last line is not empty, we now add an empty line so we can show a code lens nicely at the end. This is shown in the video below. I don't totally remember, but I think this maybe have been the reason we changed to putting code lenses on top.

difference.show.code.lens.mp4

@Anemy Anemy requested a review from alenakhineika July 22, 2021 20:03
Copy link
Contributor

@alenakhineika alenakhineika left a comment

Choose a reason for hiding this comment

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

LGTM!

@Anemy Anemy merged commit 7bc8c96 into main Jul 26, 2021
@Anemy Anemy deleted the move-code-lens-to-bottom branch July 26, 2021 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants