From 0935b6f697bf920db96df27fb6e6abfaa005ae04 Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Fri, 26 Jul 2024 04:39:21 -0700 Subject: [PATCH] Desktop: Fixes #10672: External editing: Fix notes often not updated when saved from Vim (#10780) --- packages/lib/services/ExternalEditWatcher.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/lib/services/ExternalEditWatcher.ts b/packages/lib/services/ExternalEditWatcher.ts index 2f8b49f021..d50736dc14 100644 --- a/packages/lib/services/ExternalEditWatcher.ts +++ b/packages/lib/services/ExternalEditWatcher.ts @@ -159,17 +159,6 @@ export default class ExternalEditWatcher { this.logger().error('ExternalEditWatcher: error'); } }); - // Hack to support external watcher on some linux applications (gedit, gvim, etc) - // taken from https://github.com/paulmillr/chokidar/issues/591 - // eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied - this.watcher_.on('raw', async (event: string, _path: string, options: any) => { - const watchedPath: string = options.watchedPath; - this.logger().debug(`ExternalEditWatcher: Raw event: ${event}: ${watchedPath}`); - if (event === 'rename') { - this.watcher_.unwatch(watchedPath); - this.watcher_.add(watchedPath); - } - }); } else { this.watcher_.add(fileToWatch); }