Scroll sync markdown editor with markdown preview (#44454)

Fixes #19459

Syncs the markdown preview's viewport with the markdown editor's using the proposed visible ranges API
This commit is contained in:
Matt Bierner
2018-02-26 16:46:54 -08:00
committed by GitHub
parent 5f25d3c167
commit 2279b4d252
9 changed files with 78 additions and 73 deletions

View File

@@ -122,7 +122,7 @@ export class MainThreadTextEditorProperties {
delta.visibleRanges = this.visibleRanges;
}
if (delta.selections || delta.options) {
if (delta.selections || delta.options || delta.visibleRanges) {
// something changed
return delta;
}