From c8a79876b8aff201e997cd810d4a1a1153cce1a1 Mon Sep 17 00:00:00 2001 From: Ben Greenberg Date: Wed, 27 Mar 2024 14:35:06 -0400 Subject: [PATCH 1/2] add troubleshooting for slow performance --- docs/book/src/lsp/troubleshooting.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/book/src/lsp/troubleshooting.md b/docs/book/src/lsp/troubleshooting.md index 5119e92b90e..9f68a856c32 100644 --- a/docs/book/src/lsp/troubleshooting.md +++ b/docs/book/src/lsp/troubleshooting.md @@ -14,6 +14,20 @@ Second, confirm that your `$PATH` resolves to the `forc-lsp` binary in `$HOME/.f which forc-lsp ``` +## Slow Performance + +If you are experiencing slow performance, you can try the following: + +Follow [the steps above](#troubleshooting) to ensure you are running the most recent version. + +Then, make sure you only have the most recent version of the LSP server running. + +```sh +ps aux | grep forc-lsp +# Identify the PID of the older LSP server running +kill pid # Replace pid with the PID of the older LSP server +``` + ## Server Logs You can you enable verbose logging of the LSP server. From 9d81e3873688820d76a36ce7ec77e8031fcc5c60 Mon Sep 17 00:00:00 2001 From: Ben Greenberg <13892277+hummusonrails@users.noreply.github.com> Date: Wed, 27 Mar 2024 15:26:51 -0500 Subject: [PATCH 2/2] Update docs/book/src/lsp/troubleshooting.md Co-authored-by: Sophie Dankel <47993817+sdankel@users.noreply.github.com> --- docs/book/src/lsp/troubleshooting.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/book/src/lsp/troubleshooting.md b/docs/book/src/lsp/troubleshooting.md index 9f68a856c32..056e32eba3c 100644 --- a/docs/book/src/lsp/troubleshooting.md +++ b/docs/book/src/lsp/troubleshooting.md @@ -23,9 +23,7 @@ Follow [the steps above](#troubleshooting) to ensure you are running the most re Then, make sure you only have the most recent version of the LSP server running. ```sh -ps aux | grep forc-lsp -# Identify the PID of the older LSP server running -kill pid # Replace pid with the PID of the older LSP server +pkill forc-lsp ``` ## Server Logs