Good stuff, really. I'm wondering if codium gets some love from the team eventually.
I am working on Swift for cross-compile, when I use VSCode on my macOS, I need to access some header file which is in linux sysroot (/usr/include).
So can VSCode support to set external header search path?
1 Like
I assume that you pass a -Xcc -I -Xcc /usr/include
during your swift build
invocation, right? If so, you can pass the same arguments when launching SourceKit-LSP ("swift.sourcekit-lsp.serverArguments"
in settings.json).
This sounds amazing, incredible work!
Add the -Xcc -I -Xcc /usr/include
to the Swift: Build Arguments
extension setting. These settings will automatically get passed onto SourceKit-LSP, as all -Xcc
, -Xswiftc
, -Xcxx
and -Xlinker
command line options include in the Swift: Build Arguments
are passed on.
thank you! I will try it