svn-scm icon indicating copy to clipboard operation
svn-scm copied to clipboard

onDidChangeRepository event should have threshold

Open Yanpas opened this issue 6 years ago • 1 comments
trafficstars

The case: I do some operation from CLI with repo, e.g. svn update It modifies two files inside .svn folder After first file got modified the vent is emmited, svn status is executed and there are no changes The the second file gets modified, but the event is suppressed since another event took place recently

I suggest adding threshold, 200ms e.g. after which event is fired.

Yanpas avatar Dec 14 '18 14:12 Yanpas

My suggestion:

  • For external changes, add 200ms threshold
  • For internal changes: wait for this.onDidRunOperation, like whenIdleAndFocused in repository.ts

edgardmessias avatar Mar 26 '19 20:03 edgardmessias