Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Fix LspDiagnosticsChanged not firing#35

Merged
haorenW1025 merged 2 commits intonvim-lua:masterfrom
ndreas:fix/diagnostics-changed-event
Jun 30, 2020
Merged

Fix LspDiagnosticsChanged not firing#35
haorenW1025 merged 2 commits intonvim-lua:masterfrom
ndreas:fix/diagnostics-changed-event

Conversation

@ndreas
Copy link
Copy Markdown
Contributor

@ndreas ndreas commented Jun 17, 2020

I had a problem with LspDiagnosticsChanged not firing, and traced it to the change in #21, and I dug a bit more and found the following: vim.schedule_wrap() returns a function that needs to be executed in order to schedule the actual execution of the function taken by schedule_wrap()

vim.schedule_wrap() returns a function that needs to be executed in
order to schedule the actual execution of the function taken by
schedule_wrap()
Copy link
Copy Markdown

@wbthomason wbthomason left a comment

Choose a reason for hiding this comment

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

I think the slight tweak to the changes I commented on would be good to make for code cleanliness and a (minuscule) performance improvement.

Comment thread lua/diagnostic.lua Outdated
@ndreas
Copy link
Copy Markdown
Contributor Author

ndreas commented Jun 30, 2020

I think the slight tweak to the changes I commented on would be good to make for code cleanliness and a (minuscule) performance improvement.

Much better, yes :)

Copy link
Copy Markdown

@wbthomason wbthomason left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@haorenW1025
Copy link
Copy Markdown
Collaborator

Oh sorry for not following these stuff here. This looks good for me. Thanks for the work:)

@haorenW1025 haorenW1025 merged commit ac7ec68 into nvim-lua:master Jun 30, 2020
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.

3 participants