From 01f70f67f45d351e683bfdd1a1b1c7485bb81a42 Mon Sep 17 00:00:00 2001
From: ali asaria <aliasaria@users.noreply.github.com>
Date: Wed, 8 Jan 2025 11:51:33 -0500
Subject: [PATCH] add comment

---
 src/main/main.ts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/main.ts b/src/main/main.ts
index 18413cfa..4394a038 100644
--- a/src/main/main.ts
+++ b/src/main/main.ts
@@ -144,7 +144,9 @@ const startListeningToServerLog = async () => {
   let options = {};
 
   // if this is windows, we start FileWatcher with option.usePolling = true, otherwise we use the default
-  // and don't provide options:
+  // and don't provide options.
+  // This is because in Windows, the engine runs in WSL2 but the app that watches the logs is running in Windows
+  // and they can't communicate using iNotify directly. (So we poll only in this situation)
   if (isPlatformWindows()) {
     options = { usePolling: true };
   }
-- 
GitLab