This is a often and for a long time requested feature which fits sourcekite and sourcekit-lsp.
For each specific Swift version, the correct sourcekit-lsp branch must be picked. On version changes, it must be recompiled.
Once installed sourcekite does not have the same problem, instead the installation requires more work.
In both cases a bash-script would be great.
A while back, I wrote a script which might help here. vknabel/mirror-sh
A naive approach would just be mirror-swiftpm https://github.com/apple/sourcekit-lsp.git swift-5.2-branch sourcekit-lsp or mirror-swiftpm https://github.com/vknabel/sourcekite.git master sourcekite.
This is a often and for a long time requested feature which fits sourcekite and sourcekit-lsp.
For each specific Swift version, the correct sourcekit-lsp branch must be picked. On version changes, it must be recompiled. Once installed sourcekite does not have the same problem, instead the installation requires more work.
In both cases a bash-script would be great.
A while back, I wrote a script which might help here. vknabel/mirror-sh A naive approach would just be
mirror-swiftpm https://github.com/apple/sourcekit-lsp.git swift-5.2-branch sourcekit-lsp
ormirror-swiftpm https://github.com/vknabel/sourcekite.git master sourcekite
.But: