mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 19:48:09 +00:00
Add emergency view model reconstruction (hopefuly fixes #56639)
This commit is contained in:
parent
52a5a3fd16
commit
da40432b85
1 changed files with 4 additions and 0 deletions
|
@ -192,6 +192,10 @@ export class SplitLinesCollection implements IViewModelLinesCollection {
|
|||
// This is pretty bad, it means we lost track of the model...
|
||||
throw new Error(`ViewModel is out of sync with Model!`);
|
||||
}
|
||||
if (this.lines.length !== this.model.getLineCount()) {
|
||||
// This is pretty bad, it means we lost track of the model...
|
||||
this._constructLines(false);
|
||||
}
|
||||
}
|
||||
|
||||
private _constructLines(resetHiddenAreas: boolean): void {
|
||||
|
|
Loading…
Reference in a new issue