@@ -76,6 +76,12 @@ public struct SourceKitLSPOptions: Sendable, Codable, Equatable {
76
76
/// Useful when running `sourcekit-lsp` in a sandbox because nested sandboxes are not supported.
77
77
public var disableSandbox : Bool ?
78
78
79
+ /// Whether to skip building and running plugins when creating the in-memory build graph.
80
+ ///
81
+ /// - Note: Internal option, only exists as an escape hatch in case this causes unintentional interactions with
82
+ /// background indexing.
83
+ public var skipPlugins : Bool ?
84
+
79
85
public init (
80
86
configuration: BuildConfiguration ? = nil ,
81
87
scratchPath: String ? = nil ,
@@ -88,7 +94,8 @@ public struct SourceKitLSPOptions: Sendable, Codable, Equatable {
88
94
swiftCompilerFlags: [ String ] ? = nil ,
89
95
linkerFlags: [ String ] ? = nil ,
90
96
buildToolsSwiftCompilerFlags: [ String ] ? = nil ,
91
- disableSandbox: Bool ? = nil
97
+ disableSandbox: Bool ? = nil ,
98
+ skipPlugins: Bool ? = nil
92
99
) {
93
100
self . configuration = configuration
94
101
self . scratchPath = scratchPath
@@ -117,7 +124,8 @@ public struct SourceKitLSPOptions: Sendable, Codable, Equatable {
117
124
swiftCompilerFlags: override? . swiftCompilerFlags ?? base. swiftCompilerFlags,
118
125
linkerFlags: override? . linkerFlags ?? base. linkerFlags,
119
126
buildToolsSwiftCompilerFlags: override? . buildToolsSwiftCompilerFlags ?? base. buildToolsSwiftCompilerFlags,
120
- disableSandbox: override? . disableSandbox ?? base. disableSandbox
127
+ disableSandbox: override? . disableSandbox ?? base. disableSandbox,
128
+ skipPlugins: override? . skipPlugins ?? base. skipPlugins
121
129
)
122
130
}
123
131
}
0 commit comments