mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-03 12:39:34 +01:00
Merge pull request #1233 from gyunseo/bugfix/saving-and-opening-wsl2-fs
set the polling mode based on path type to resolve wsl2 file system issue.
This commit is contained in:
commit
46dda28c3a
@ -412,7 +412,7 @@ class Watcher {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const watcher = chokidar.watch(watchPath, {
|
const watcher = chokidar.watch(watchPath, {
|
||||||
ignoreInitial: false,
|
ignoreInitial: false,
|
||||||
usePolling: false,
|
usePolling: watchPath.startsWith("\\\\") ? true : false,
|
||||||
ignored: (path) => ['node_modules', '.git'].some((s) => path.includes(s)),
|
ignored: (path) => ['node_modules', '.git'].some((s) => path.includes(s)),
|
||||||
persistent: true,
|
persistent: true,
|
||||||
ignorePermissionErrors: true,
|
ignorePermissionErrors: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user