From 275a1b1af80251abd804a9a4a2acc2d762250a80 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 25 Jun 2020 09:35:24 +0100 Subject: [PATCH] Modify emitted event parameters --- src/services/remixdClient.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/remixdClient.ts b/src/services/remixdClient.ts index e300dccfa0..729ef61dcb 100644 --- a/src/services/remixdClient.ts +++ b/src/services/remixdClient.ts @@ -219,10 +219,10 @@ export class RemixdClient extends PluginClient { this.emit('changed', utils.relativePath(f, this.currentSharedFolder)) }) watcher.on('unlink', (f: string) => { - this.emit('removed', { path: utils.relativePath(f, this.currentSharedFolder), isFolder: false }) + this.emit('removed', utils.relativePath(f, this.currentSharedFolder), false) }) watcher.on('unlinkDir', (f: string) => { - this.emit('removed', { path: utils.relativePath(f, this.currentSharedFolder), isFolder: true }) + this.emit('removed', utils.relativePath(f, this.currentSharedFolder), true) }) } }