From de3d46bbcc232b76d714ce7800c7559342df811d Mon Sep 17 00:00:00 2001 From: Raphael Amorim Date: Mon, 15 Sep 2025 14:26:32 +0200 Subject: [PATCH] fix: make the limit really high on non-unix --- internal/lsp/watcher/rlimit_stub.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/lsp/watcher/rlimit_stub.go b/internal/lsp/watcher/rlimit_stub.go index 965e6bba89c82ca35331dcd1588e27da7aac29e7..e016c403486b8d947a87edaf90e01643d01efed4 100644 --- a/internal/lsp/watcher/rlimit_stub.go +++ b/internal/lsp/watcher/rlimit_stub.go @@ -6,7 +6,7 @@ package watcher // Returns a high value to indicate no practical limit. func MaximizeOpenFileLimit() (int, error) { // Windows and other non-Unix systems don't have file descriptor limits - // in the same way Unix systems do. Return a high value to indicate + // in the same way Unix systems do. Return a very high value to indicate // there's no practical limit to worry about. - return 1<<20, nil // 1M, effectively unlimited + return 10_000_000, nil // 10M handles - way more than any process would use } \ No newline at end of file