Editor properties delivered before document changes to ext host #101956
Labels
bug
Issue identified by VS Code Team member as probable bug
insiders-released
Patch has been released in VS Code Insiders
verified
Verification succeeded
Milestone
Saw this with notebooks but I can repro it in a normal editor.
Seems that the markdown extension listens to
onDidChangeTextEditorVisibleRanges
and doesWhen this is called, the document does not know about the new content, but
editor.visibleRanges
has been adjusted for the new content. So if the top visible line is in the range of the new content, it will throw. Debugging, it seems like$acceptEditorPropertiesChanged
is sent before$acceptModelChanged
, which would explain why they are out of sync.The text was updated successfully, but these errors were encountered: