Skip to content

Commit 64d73f4

Browse files
authored
Merge pull request #1013 from krzyzanowskim/marcin/deprecated-serversidefiltering
Add deprecated serverSideFiltering for backward compatibility
2 parents 73ec325 + 1e799a8 commit 64d73f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sources/LanguageServerProtocol/SupportTypes/SKCompletionOptions.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ public struct SKCompletionOptions: Codable, Hashable {
1818
/// The maximum number of completion results to return, or `nil` for unlimited.
1919
public var maxResults: Int?
2020

21+
/// Older `sourcekit-lsp` binaries reject request sent from client to
22+
/// server when the parameter is missing. By adding the parameter with default
23+
/// value true the client that uses **LanguageServerProtocol** as model can still
24+
/// interact with shipped `sourcekit-lsp` instances.
25+
@available(*, deprecated, message: "Not used")
26+
public private(set) var serverSideFiltering: Bool = true
27+
2128
public init(maxResults: Int? = 200) {
2229
self.maxResults = maxResults
2330
}

0 commit comments

Comments
 (0)