mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-25 21:55:49 +00:00
fix: disable watcher updates on env directories
This commit is contained in:
@@ -187,10 +187,9 @@ const add = async (win, pathname, collectionUid, collectionPath) => {
|
||||
};
|
||||
|
||||
const addDirectory = (win, pathname, collectionUid, collectionPath) => {
|
||||
const dirname = path.dirname(pathname);
|
||||
const envDirectory = path.join(collectionPath, 'environments');
|
||||
|
||||
if(dirname === envDirectory) {
|
||||
if(pathname === envDirectory) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -248,10 +247,9 @@ const unlink = (win, pathname, collectionUid, collectionPath) => {
|
||||
}
|
||||
|
||||
const unlinkDir = (win, pathname, collectionUid, collectionPath) => {
|
||||
const dirname = path.dirname(pathname);
|
||||
const envDirectory = path.join(collectionPath, 'environments');
|
||||
|
||||
if(dirname === envDirectory) {
|
||||
if(pathname === envDirectory) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user