You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 22, 2024. It is now read-only.
|`sourcekit-lsp`_default_| Apple's official one. Activley developed. | 4 and 5 |[#Using sourcekit-lsp](#Using-sourcekit-lsp)|
18
+
|`sourcekite`| SDE's one. Actively maintained. | 5 and older versions 3.1 and 4 |[#Using sourcekite](#Using-sourcekite)|
19
+
|`langserver`| RLovelett's LSP. Not maintained. | 4.1, macOS only |[#Using Langserver Swift](#Using-Langserver-Swift)|
20
20
21
21
sourcekit-lsp is easier to install and will be updated more frequently. On the other hand sourcekite treats standalone files, Xcode projects and SwiftPM modules differently and is more configurable. If you can't decide, you can install both and swap out the used LSP by setting `sde.languageServerMode` to `sourcekite`, `sourcekit-lsp` or `langserver`.
22
22
23
+
### Using sourcekit-lsp
24
+
25
+
> **Note:** on macOS SDE defaults to using your Xcode's Swift and sourcekit-lsp. In that case, [SDE](https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-swift-development-environment) should work out of the box!
2. Recent versions of Xcode ship with `sourcekit-lsp`, you can check its path running `xcrun -f sourcekit-lsp`. If not found, please [install sourcekit-lsp](https://github.com/apple/sourcekit-lsp#building-sourcekit-lsp).
29
+
3. Set `"swift.languageServerPath": "absolute path to the sourcekit-lsp executable"` and `"sde.languageServerMode": "sourcekit-lsp"`.
30
+
23
31
### Using sourcekite
24
32
25
33
1. sourcekite does only work with [SDE](https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-swift-development-environment). Make sure you have it installed.
@@ -44,12 +52,6 @@ sourcekit-lsp is easier to install and will be updated more frequently. On the o
44
52
45
53
If you experience any problems during installation, file an issue. All kind of feedback helps especially when trying to automate this.
2. Recent versions of Xcode ship with `sourcekit-lsp`, you can check its path running `xcrun -f sourcekit-lsp`. If not found, please [install sourcekit-lsp](https://github.com/apple/sourcekit-lsp#building-sourcekit-lsp).
51
-
3. Set `"swift.languageServerPath": "absolute path to the sourcekit-lsp executable"` and `"sde.languageServerMode": "sourcekit-lsp"`.
52
-
53
55
### Using Langserver Swift
54
56
55
57
Besides sourcekit-lsp and sourcekite SDE allows you to use [RLovelett/langserver-swift](https://github.com/RLovelett/langserver-swift).
@@ -122,47 +124,49 @@ With sourcekite, you can add new autocompletion targets through your configurati
122
124
```
123
125
124
126
Since Xcode 11.4, you may use its built-in support for sourcekit-lsp
0 commit comments