Skip to content

Conversation

@kiennq
Copy link
Member

@kiennq kiennq commented Jul 18, 2021

We've already clear the doc buffer on show so no need to clear the doc buffer on hide, the webkit version is also not doing that.

Don't clear the doc buffer on hide provides another advantage when triggers lsp-ui-doc--open-markdown-link with the keyboard.
In that case, there's a race condition that (point) is calculated after the doc buffer has been cleared, thus there's no link to follow.
Not clear the doc buffer on hide resolve that.

Copy link
Member

@jcs090218 jcs090218 left a comment

Choose a reason for hiding this comment

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

No objection on this.

@kiennq
Copy link
Member Author

kiennq commented Jul 18, 2021

@jcs090218 I don't have merge permission on this project so you will have to merge it for me though :D

@ericdallo
Copy link
Member

Just invited you @kiennq

@ericdallo ericdallo merged commit 4283414 into emacs-lsp:master Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants