Update launch configurations

With 2.12 of the Swift extension, moved away from "program" and instead
using "target" and "configuration" so determine the path dynamically
This commit is contained in:
Adam Ward
2025-10-31 11:02:54 -04:00
parent f384851339
commit 1b642d3210

6
.vscode/launch.json vendored
View File

@@ -4,7 +4,8 @@
"type": "swift",
"request": "launch",
"name": "Debug sourcekit-lsp",
"program": "${workspaceFolder:sourcekit-lsp}/.build/debug/sourcekit-lsp",
"target": "sourcekit-lsp",
"configuration": "debug",
"args": [],
"cwd": "${workspaceFolder:sourcekit-lsp}",
"preLaunchTask": "swift: Build Debug sourcekit-lsp"
@@ -13,7 +14,8 @@
"type": "swift",
"request": "launch",
"name": "Release sourcekit-lsp",
"program": "${workspaceFolder:sourcekit-lsp}/.build/release/sourcekit-lsp",
"target": "sourcekit-lsp",
"configuration": "release",
"args": [],
"cwd": "${workspaceFolder:sourcekit-lsp}",
"preLaunchTask": "swift: Build Release sourcekit-lsp"