We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d2afb commit d2f770bCopy full SHA for d2f770b
src/svnSCM.js
@@ -21,13 +21,22 @@ function svnSCM() {
21
this.changes.hideWhenEmpty = true;
22
this.notTracked.hideWhenEmpty = true;
23
24
- this.watcher.onDidChange(this.update);
25
- this.watcher.onDidCreate(this.update);
26
- this.watcher.onDidDelete(this.update);
27
-
+ this.addEventListeners();
28
this.update();
29
}
30
+svnSCM.prototype.addEventListeners = function() {
+ this.watcher.onDidChange(() => {
+ this.update();
31
+ });
32
+ this.watcher.onDidCreate(() => {
33
34
35
+ this.watcher.onDidDelete(() => {
36
37
38
+};
39
+
40
svnSCM.prototype.provideOriginalResource = uri => {
41
if (uri.scheme !== "file") {
42
return;
0 commit comments