mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01: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[]) {
|
public change(filepath: string, events: vscode.TextDocumentContentChangeEvent[]) {
|
||||||
if (this.supportsBatching) {
|
if (this.supportsBatching) {
|
||||||
|
if (!events.length) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!this._pending.changedFiles) {
|
if (!this._pending.changedFiles) {
|
||||||
this._pending.changedFiles = [];
|
this._pending.changedFiles = [];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user