mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-22 11:19:32 +00:00
Don't add change if there are no changes
This commit is contained in:
@@ -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 = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user