Skip to content

Commit 1b642d3

Browse files
committed
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
1 parent f384851 commit 1b642d3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.vscode/launch.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"type": "swift",
55
"request": "launch",
66
"name": "Debug sourcekit-lsp",
7-
"program": "${workspaceFolder:sourcekit-lsp}/.build/debug/sourcekit-lsp",
7+
"target": "sourcekit-lsp",
8+
"configuration": "debug",
89
"args": [],
910
"cwd": "${workspaceFolder:sourcekit-lsp}",
1011
"preLaunchTask": "swift: Build Debug sourcekit-lsp"
@@ -13,7 +14,8 @@
1314
"type": "swift",
1415
"request": "launch",
1516
"name": "Release sourcekit-lsp",
16-
"program": "${workspaceFolder:sourcekit-lsp}/.build/release/sourcekit-lsp",
17+
"target": "sourcekit-lsp",
18+
"configuration": "release",
1719
"args": [],
1820
"cwd": "${workspaceFolder:sourcekit-lsp}",
1921
"preLaunchTask": "swift: Build Release sourcekit-lsp"

0 commit comments

Comments
 (0)