-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diff markers lost when diff editor hidden #15178
Comments
Thank you for reporting this, could you have a look at a fix? |
@colin-grant-work what's the stack trace when you get the error? |
The full stack is below. The part of interest to us is the entry from our code at
which kicks off updates on the Monaco side, which through various layers of observables, end up wanting to calculate how the diff regions match up.
|
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a diff editor is hidden and shown again, the diff highlights disappear from the modified (right) side. It may have to do with @tsmaeder's recent changes to set and unset the model when an editor is hidden.
To reproduce
A possibly related issue is that if a diff editor is hidden when changes affecting its display are made - e.g. toggling word wrapping - an error is thrown that points to this Monaco code:
https://github.com/microsoft/vscode/blob/c2261b02faf97df586d23f8b7d2eb75e67bd00ed/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.ts#L601
indicating that the non-null assertion has failed:
_getViewModel()
has returnednull
.The text was updated successfully, but these errors were encountered: