Skip to content

Commit

Permalink
Call the synchronous update Pin method when the LSP clients die.
Browse files Browse the repository at this point in the history
It seems sufficient for the behavior we want (which is just the message
being shown) and I *think* it will fix the intermittent "attempt to
yield across C boundary" errors we non-deterministically get in test
runs...
  • Loading branch information
Julian committed Jan 18, 2025
1 parent 76c11ed commit cffe407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lean/infoview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ end
---Directly mark that the infoview has died. What a shame.
function Infoview:died()
self.info.pin.__data_element = components.LSP_HAS_DIED -- FIXME: yeah, gross
self.info.pin:__update()
self.info.pin:update()
end

---Either open or close a diff window for this infoview depending on whether its info has a diff pin.
Expand Down

0 comments on commit cffe407

Please sign in to comment.