| From f376eb1fadc6af354f81604a7de3ea1d2473df18 Mon Sep 17 00:00:00 2001 |
| From: John Wittrock <wittrock@google.com> |
| Date: Tue, 12 Aug 2025 12:52:00 -0400 |
| Subject: [PATCH] Disable file watcher for rust |
| |
| --- |
| internal/lsp/client.go | 5 +++++ |
| main.go | 2 +- |
| 2 files changed, 6 insertions(+), 1 deletion(-) |
| |
| diff --git a/internal/lsp/client.go b/internal/lsp/client.go |
| index fc07059..0f528a5 100644 |
| --- a/internal/lsp/client.go |
| +++ b/internal/lsp/client.go |
| @@ -187,6 +187,11 @@ func (c *Client) InitializeLSPClient(ctx context.Context, workspaceDir string) ( |
| "vendor": true, |
| "vulncheck": false, |
| }, |
| + "rust-analyzer": map[string]any{ |
| + "files": map[string]any{ |
| + "watcher": "server", |
| + }, |
| + }, |
| }, |
| }, |
| } |
| diff --git a/main.go b/main.go |
| index f6f3ed5..838747b 100644 |
| --- a/main.go |
| +++ b/main.go |
| @@ -99,7 +99,7 @@ func (s *mcpServer) initializeLSP() error { |
| |
| coreLogger.Debug("Server capabilities: %+v", initResult.Capabilities) |
| |
| - go s.workspaceWatcher.WatchWorkspace(s.ctx, s.config.workspaceDir) |
| + //go s.workspaceWatcher.WatchWorkspace(s.ctx, s.config.workspaceDir) |
| return client.WaitForServerReady(s.ctx) |
| } |
| |
| -- |
| 2.51.0.rc0.205.g4a044479a3-goog |
| |