Was debugging and suddenly encountered this exception. One possible flow of events:
UpdateSession() calls UpdateModel()
UpdateModel() sets the Model property (to null in my case)
The Model property determines hideSession = true and calls _session.Dismiss()
As a consequence, SessionOnDismissed gets called, which sets _session to null
In UpdateSession(), _session.Recalculate() cannot be called anymore
Note that UpdateSession probably wants to await UpdateModel, otherwise the session can be off.
at NQuery.Authoring.VSEditorWpf.SignatureHelp.SignatureHelpManager.UpdateSession() in D:\Source\nquery-vnext\src\NQuery.Authoring.VSEditorWpf\SignatureHelp\SignatureHelpManager.cs:line 124
Was debugging and suddenly encountered this exception. One possible flow of events:
UpdateSession()
callsUpdateModel()
UpdateModel()
sets theModel
property (tonull
in my case)Model
property determineshideSession = true
and calls_session.Dismiss()
SessionOnDismissed
gets called, which sets_session
tonull
UpdateSession()
,_session.Recalculate()
cannot be called anymoreNote that
UpdateSession
probably wants toawait UpdateModel
, otherwise the session can be off.Was called from
CaretOnPositionChanged
.