Don't add change if there are no changes

This commit is contained in:
Matt Bierner
2019-03-07 16:56:24 -08:00
parent 0aa886c72e
commit 0e6496dff8

View File

@@ -72,6 +72,9 @@ class BufferSynchronizer {
public change(filepath: string, events: vscode.TextDocumentContentChangeEvent[]) {
if (this.supportsBatching) {
if (!events.length) {
return;
}
if (!this._pending.changedFiles) {
this._pending.changedFiles = [];
}