From c6ce3f73df2dfae0667aeb22946124f1a40a510e Mon Sep 17 00:00:00 2001 From: abhraina Date: Wed, 18 Jun 2025 14:49:20 -0700 Subject: [PATCH] docs(amazonq): Improved the local LSP setup documentation with more information --- docs/lsp.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/lsp.md b/docs/lsp.md index 42d94d334a4..ba1c82ad9a5 100644 --- a/docs/lsp.md +++ b/docs/lsp.md @@ -26,9 +26,7 @@ sequenceDiagram ## Language Server Debugging -1. Clone https://github.com/aws/language-servers.git and set it up in the same workspace as this project by cmd+shift+p and "add folder to workspace" and selecting the language-servers folder that you just cloned. Your VS code folder structure should look like below. - - +1. Clone https://github.com/aws/language-servers.git and set it up in the same workspace as this project by cmd+shift+p and "add folder to workspace" and selecting the language-servers folder that you just cloned. Your VS code folder structure should look like below. ``` /aws-toolkit-vscode @@ -45,7 +43,7 @@ sequenceDiagram npm run package ``` to get the project setup -3. Enable the lsp experiment: +3. You need to open VScode user settings (Cmd+Shift+P and Search "Open User Settings (JSON)") and add the lines below at the bottom of the settings to enable the lsp experiment: ``` "aws.experiments": { "amazonqLSP": true, @@ -54,7 +52,7 @@ sequenceDiagram } ``` 4. Uncomment the `__AMAZONQLSP_PATH` and `__AMAZONQLSP_UI` variables in the `amazonq/.vscode/launch.json` extension configuration -5. Use the `Launch LSP with Debugging` configuration and set breakpoints in VSCode or the language server +5. Use the `Launch LSP with Debugging` configuration and set breakpoints in VSCode or the language server, Once you run "Launch LSP with Debugging" a new window should start, wait for the plugin to show up there. Then go to the run menu again and run "Attach to Language Server (amazonq)" after this you should be able to add breakpoints in the LSP code. 6. (Optional): Enable `"amazonq.trace.server": "on"` or `"amazonq.trace.server": "verbose"` in your VSCode settings to view detailed log messages sent to/from the language server. These log messages will show up in the "Amazon Q Language Server" output channel ## Amazon Q Inline Activation