From c5852252aa563aa7a708c08e5e2c119b4628fd2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20H=C3=A4usler?= Date: Wed, 3 Apr 2019 04:36:27 +0200 Subject: [PATCH] fix: Linux rename syscall when using side bar (#845) --- src/main/watcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/watcher.js b/src/main/watcher.js index 6765ddd4..478f99b5 100644 --- a/src/main/watcher.js +++ b/src/main/watcher.js @@ -109,7 +109,7 @@ class Watcher { } // rename syscall on Linux (chokidar#591) - if (isLinux && event === 'rename') { + if (isLinux && type === 'file' && event === 'rename') { const { watchedPath } = details // Use the same watcher and re-watch the file. watcher.unwatch(watchedPath)