-
Notifications
You must be signed in to change notification settings - Fork 71
Launch Swift extension if workspace has buildServer.json
or compile_flags.txt
#1087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@ahoppen |
If |
@ahoppen I checked the
|
SourceKit-LSP can handle projects configured with the paired down clang `compile_flags.txt` configuration file, as well as projects configured with the Build Server Protocol's `buildServer.json`. Activate the extension if the folder added to the workspace contains either of these files in the root. Issue: swiftlang#1087
SourceKit-LSP can handle projects configured with the paired down clang `compile_flags.txt` configuration file, as well as projects configured with the Build Server Protocol's `buildServer.json`. Activate the extension if the folder added to the workspace contains either of these files in the root. Issue: swiftlang#1087
This is because we changed the BSP integration between 6.0 and 6.1 (https://forums.swift.org/t/extending-functionality-of-build-server-protocol-with-sourcekit-lsp/74400 has the details). |
Thank you for your detailed explanation! Initially, I assumed the client would send a
I am aware of the newer APIs, such as However, I haven't observed any changes. Currently, all I receive are these three messages:
Would you know more details about how this works or if additional configuration is required? |
Are you using SourceKit-LSP from Swift 6.1? SourceKit-LSP from a 6.0 toolchain only has the “old” BSP integration. Also, since this discussion is not really related to the original issue, let’s move it to the Swift Forums. Can you open a topic in the SourceKit-LSP category? |
…ent (#1240) SourceKit-LSP can handle projects configured with the paired down clang `compile_flags.txt` configuration file, as well as projects configured with the Build Server Protocol's `buildServer.json`. Activate the extension if the folder added to the workspace contains either of these files in the root. Issue: #1087
Verified with c047d4e |
The VS Code extension currently check for the presence of
Package.swift
orcompile_commands.json
inisValidWorkspaceFolder
. SourcKit-LSP can also handlecompile_flags.txt
(https://clang.llvm.org/docs/JSONCompilationDatabase.html#alternatives) or files that specify a build server by havingbuildServer.json
in their project root. Such projects should also be considered valid workspaces, I think.The text was updated successfully, but these errors were encountered: