forked from extern/bruno
fix: disable watcher updates on env directories
This commit is contained in:
parent
dd71c9e71b
commit
c4abe54c3f
@ -187,10 +187,9 @@ const add = async (win, pathname, collectionUid, collectionPath) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const addDirectory = (win, pathname, collectionUid, collectionPath) => {
|
const addDirectory = (win, pathname, collectionUid, collectionPath) => {
|
||||||
const dirname = path.dirname(pathname);
|
|
||||||
const envDirectory = path.join(collectionPath, 'environments');
|
const envDirectory = path.join(collectionPath, 'environments');
|
||||||
|
|
||||||
if(dirname === envDirectory) {
|
if(pathname === envDirectory) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,10 +247,9 @@ const unlink = (win, pathname, collectionUid, collectionPath) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const unlinkDir = (win, pathname, collectionUid, collectionPath) => {
|
const unlinkDir = (win, pathname, collectionUid, collectionPath) => {
|
||||||
const dirname = path.dirname(pathname);
|
|
||||||
const envDirectory = path.join(collectionPath, 'environments');
|
const envDirectory = path.join(collectionPath, 'environments');
|
||||||
|
|
||||||
if(dirname === envDirectory) {
|
if(pathname === envDirectory) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user