on main help sign in
fix: add back init setting ulimit

this was removed in a merge conflict in #1011 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

commitd78ed25f1faa7e449303590c795692e27b93d3f5 authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com> dateWed 10 Sep 2025, 16:04 (1 year ago) parent46a3a37
1 file changed+7
internal/lsp/watcher/watcher.go+7
internal/lsp/watcher/watcher.go+7
@@ -28,6 +28,13 @@ type Client struct {
2828 registrations *csync.Slice[protocol.FileSystemWatcher]
2929}
3030
31+func init() {
32+ // Ensure the watcher is initialized with a reasonable file limit
33+ if _, err := Ulimit(); err != nil {
34+ slog.Error("Error setting file limit", "error", err)
35+ }
36+}
37+
3138// New creates a new workspace watcher for the given client.
3239func New(name string, client *lsp.Client) *Client {
3340 return &Client{