You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LanguageServer.Shutdown method in the Protocol project hangs indefinitely when there is buffered output to be flushed before shutting down. This is caused by the outputDebouncer.OnFlush().Wait() call which blocks the current SynchronizationContext, preventing the subsequent SendEvent call from completing.
The text was updated successfully, but these errors were encountered:
The change fixes an issue in the LanguageServer's Shutdown method where
buffered output in the OutputDebouncer gets flushed before shutting down.
The problem here is the Wait call which blocks the message dispatcher
thread from completing the OutputDebouncer.OnFlush method's SendEvent
call. The fix is to change the Shutdown method to async so that the
OnFlush call can be awaited, unblocking the message dispatcher thread's
SynchronizationContext for the SendEvent call to complete.
The LanguageServer.Shutdown method in the Protocol project hangs indefinitely when there is buffered output to be flushed before shutting down. This is caused by the
outputDebouncer.OnFlush().Wait()
call which blocks the current SynchronizationContext, preventing the subsequent SendEvent call from completing.The text was updated successfully, but these errors were encountered: