add the following settings to vscode-swift-development-environmentSde: Language Server Mode: sourcekit-lsp
Sourcekit-lsp: Server Path:
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp
Sourcekit-lsp: Toolchain Path
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
create an initial project by
mkdir helloworldcd helloworldswift package init
open the project by vscode
IMO, the vscode extension provided by sourcekit-lsp is working perfectly. But it lacks certain features like auto-build when the project is saved.
If SDE can continue to support sourcekit-lsp, it will be the best solution at this moment.
sourcekit-lsp
returns some errorsStep to reproduce:
vscode-swift-development-environment
Sde: Language Server Mode
: sourcekit-lspSourcekit-lsp: Server Path
: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lspSourcekit-lsp: Toolchain Path
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchainmkdir helloworld
cd helloworld
swift package init
IMO, the vscode extension provided by
sourcekit-lsp
is working perfectly. But it lacks certain features like auto-build when the project is saved. If SDE can continue to supportsourcekit-lsp
, it will be the best solution at this moment.