This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
Releases: vknabel/vscode-swift-development-environment
Releases · vknabel/vscode-swift-development-environment
Toolchain Path
- Fixed ignored Toolchain Path vknabel/sourcekite#9
Diagnostics
Mostly linux
- Fixed an issue preventing autocompletion to work reliably on Linux, fixes #54
- Installation instructions now correctly link
/usr/lib/libsourcekitdInProc.so
, noticed by @kennethz3 - Support quoted arguments in settings, fixed by @haifengkao
2.8.0
- Now LSP-mode
sourcekite
supportssourcekit-lsp.toolchainPath
after updating to [email protected]
sourcekit-lsp.serverPath fix
sourcekit-lsp.serverPath
wasn't read correctly, fixed by M1xA @AnyCPU
Swift 5, sourcekit-lsp, documentation
- Latest sourcekite is now compatible with Swift 5.
- Added options for sourcekit-lsp:
sourcekit-lsp.serverPath
andsourcekit-lsp.toolchainPath
. #39 sde.languageServerMode
now explicitly offerssourcekit-lsp
.- Updated installation instructions with a stronger emphasize on sourcekit-lsp.
More details at SDE 2.7.0 released
langserver-swift
Add support for alternative language servers like RLovelett/langserver-swift #21
Probably Apple's recently announced language server will be supported, too. See https://forums.swift.org/t/new-lsp-language-service-supporting-swift-and-c-family-languages-for-any-editor-and-platform/17024 for more infos.
If you prefer RLovelett's LangserverSwift, SDE will read your old swift.languageServerPath
-config. In order to actually use it your need to set sde.languageServerMode
to langserver
.
Warnings are not failures
- Warnings indicated a build failure
Home dir & better hover docs
- Resolve
~
to the home dir #30 - Removed unuseful data from hover docs
- Remove code formatter, use vknabel/vscode-swiftformat instead
- Installation instructions had wrong argument order for
ln -s
(thanks to @mijo-gracanin) - Added note about installing
libcurl4-openssl-dev
(thanks to @mijo-gracanin)
Autocompletion for SPM dependencies
- Autocompletion for SPM dependencies #27 (thanks to @yeswolf)
- Better support for vscode workspaces
- New setting
swift.targets
for supporting autocompletion if SDE can't.
Especially when using Xcode projects SDE cannot infer the correct compiler arguments. Now you can fix this by explicitly supplying targets with their sources and compiler arguments. SDE will still detect other targets automatically.
{
"swift.targets": [
{
"name": "YourWatchExtension",
"path": "YourProject/YourWatchExtension",
"sources": ["**/*.swift"],
"compilerArguments": [
"-sdk",
"/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk",
"-target",
"armv7k-apple-watchos4.0"
]
}
]
}