Modify emitted event parameters

pull/3094/head
ioedeveloper 4 years ago
parent 209aa1ed09
commit 275a1b1af8
  1. 4
      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)
})
}
}

Loading…
Cancel
Save