I created a basic Vapor project and am using source-lsp with Visual Studio Code. I have noticed that the CPU usage for sourcekit-lsp is well over 100% and that it is very slow. I can't even do basic code completion. Sometime after letting it settles down I will be able to hover over symbol names and get documentation. This is great. But as soon as I start to type something as simple as "print()" is says that
'expression resolved to an unused function'. print is a builtin in swift function and I can't even get code completion on it and it says it is an error. Also as soon as I get this error every time I hover over a symbol that was working before I now get "Loading...". So currently SourceKit-lsp is unusable. Eventually it comes back and the "print" does work but I don't understand why it is taking so long.
I have Xcode 11.5 installed with swift version 5.2.4. the VSCode server path setting is '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp'
Any help would be appreciated