From dca542e781125c816efb00e17e1d94953146ac77 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Fri, 9 Sep 2022 14:14:45 +0530 Subject: [PATCH] remove change handler until we integrate update file api --- src/api/watch.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/api/watch.ts b/src/api/watch.ts index 4dd131f50d..d8ff2d1d35 100644 --- a/src/api/watch.ts +++ b/src/api/watch.ts @@ -100,13 +100,6 @@ export function registerWatcherFunctions( ); await addFile(await getElectronFile(filePath)); }); - ipcRenderer.on('watch-change', async (_, filePath: string) => { - filePath = path.normalize( - filePath.split(path.sep).join(path.posix.sep) - ); - await removeFile(filePath); - await addFile(await getElectronFile(filePath)); - }); ipcRenderer.on('watch-unlink', async (_, filePath: string) => { filePath = path.normalize( filePath.split(path.sep).join(path.posix.sep)