@phpsandbox/sdk 0.0.28 → 0.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -574,8 +574,7 @@ var PHPSandbox = (() => {
574
574
  };
575
575
  const subscription = new FilesystemSubscription(path, this.okra, wrappedDisposable);
576
576
  this.watches.set(path, { options, path, onDidChange });
577
- this.okra.invoke("fs.watch", { path, options });
578
- return subscription;
577
+ return this.okra.invoke("fs.watch", { path, options }).then(() => subscription);
579
578
  }
580
579
  exists(path) {
581
580
  return this.stat(path).then(() => true).catch(() => false);