-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into laishaw/sway-reference
- Loading branch information
Showing
644 changed files
with
25,578 additions
and
12,654 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Configuration for debugging the Sway Language Server (forc-lsp) | ||
// Usage instructions: | ||
// 1. Ensure you've built forc-lsp with debug symbols: | ||
// cargo build -p forc-lsp | ||
// 2. Install the debug version: | ||
// cargo install --path ./forc-plugins/forc-lsp --debug | ||
// 3. Open your Sway project in a separate VSCode window (this starts forc-lsp) | ||
// 4. In the forc-lsp project window, set breakpoints in the code | ||
// 5. Go to Run and Debug view, select "Attach to forc-lsp", and start debugging | ||
// 6. When prompted, select the forc-lsp process | ||
// 7. Debug forc-lsp as it responds to actions in your Sway project | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "attach", | ||
"name": "Attach to forc-lsp", | ||
"pid": "${command:pickProcess}", | ||
"program": "${env:HOME}/.cargo/bin/forc-lsp" | ||
} | ||
] | ||
} |
Oops, something went wrong.