Skip to content

Add deprecated serverSideFiltering for backward compatibility #1013

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

Merged
merged 2 commits into from
Jan 9, 2024
Merged

Add deprecated serverSideFiltering for backward compatibility #1013

merged 2 commits into from
Jan 9, 2024

Conversation

krzyzanowskim
Copy link
Contributor

Re-add deprecated serverSideFiltering parameter.

resoning: currently shipped sourcekit-lsp binaries reject request sent from client to server when the parameter is missing. By adding the parameter with default value true the client that uses LanguageServerProtocol as model can still interact with shipped sourcekit-lsp instances.

@krzyzanowskim krzyzanowskim changed the title Ddd deprecated serverSideFiltering for backward compatibility Add deprecated serverSideFiltering for backward compatibility Dec 27, 2023
@krzyzanowskim
Copy link
Contributor Author

Can I get a review of this one please?

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽

@@ -18,6 +18,9 @@ public struct SKCompletionOptions: Codable, Hashable {
/// The maximum number of completion results to return, or `nil` for unlimited.
public var maxResults: Int?

@available(*, deprecated, message: "Not used")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a the explanation of you PR’s description as a doc comment here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure. done.

@ahoppen
Copy link
Member

ahoppen commented Jan 8, 2024

@swift-ci Please test

@krzyzanowskim krzyzanowskim requested a review from ahoppen January 8, 2024 22:51
@ahoppen ahoppen enabled auto-merge January 8, 2024 22:51
@ahoppen
Copy link
Member

ahoppen commented Jan 8, 2024

@swift-ci Please test Windows

@ahoppen ahoppen merged commit 64d73f4 into swiftlang:main Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants