mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Add option to skip building and running plugins
This *shouldn't* be needed, but allows running plugins to be skipped if
there's any unexpected interactions with background indexing.
(cherry picked from commit a5343852c6)
This commit is contained in:
@@ -371,7 +371,7 @@ package actor SwiftPMBuildSystem: BuiltInBuildSystem {
|
||||
// We have a whole separate arena if we're performing background indexing. This allows us to also build and run
|
||||
// plugins, without having to worry about messing up any regular build state.
|
||||
let buildDescription: SourceKitLSPAPI.BuildDescription
|
||||
if isForIndexBuild {
|
||||
if isForIndexBuild && !(options.swiftPMOrDefault.skipPlugins ?? false) {
|
||||
let loaded = try await BuildDescription.load(
|
||||
destinationBuildParameters: destinationBuildParameters,
|
||||
toolsBuildParameters: toolsBuildParameters,
|
||||
|
||||
Reference in New Issue
Block a user