fix: dont update tree on every cursor update

WTF!!!!!!!!!
This commit is contained in:
əlemi 2024-09-25 05:11:07 +02:00
parent a37f91049b
commit 5ed0341ccc
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -73,8 +73,9 @@ export async function join(selected: vscode.TreeItem | undefined) {
provider.refresh(); provider.refresh();
} }
let editor = mapping.bufferMapper.visible_by_buffer(event.buffer); let editor = mapping.bufferMapper.visible_by_buffer(event.buffer);
mapp.update(event,editor); let refresh = event.buffer != mapp.buffer;
/*if(event.buffer!=mapp.buffer)*/ provider.refresh(); mapp.update(event, editor);
if (refresh) provider.refresh();
} }
}); });