-
Notifications
You must be signed in to change notification settings - Fork 314
Decode RegistrationOptions #980
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
Decode RegistrationOptions #980
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What’s the use case for decoding RegistrationOptions
from LSPAny
?
Sources/LanguageServerProtocol/SupportTypes/SKCompletionOptions.swift
Outdated
Show resolved
Hide resolved
symmetric to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, we should make these types conform to LSPAnyCodable
.
You're not wrong. It's so much more work. I'll try |
Thank you 🙏🏽 I hope it’s not too much more |
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making the types conform to LSPAnyCodable
🙏🏽 Much cleaner.
I have some comments regarding consistency of de/encoding.
Sources/LanguageServerProtocol/SupportTypes/RegistrationOptions.swift
Outdated
Show resolved
Hide resolved
Sources/LanguageServerProtocol/SupportTypes/ServerCapabilities.swift
Outdated
Show resolved
Hide resolved
Sources/LanguageServerProtocol/SupportTypes/ServerCapabilities.swift
Outdated
Show resolved
Hide resolved
Sources/LanguageServerProtocol/SupportTypes/ServerCapabilities.swift
Outdated
Show resolved
Hide resolved
Sources/LanguageServerProtocol/SupportTypes/RegistrationOptions.swift
Outdated
Show resolved
Hide resolved
Sources/LanguageServerProtocol/SupportTypes/ServerCapabilities.swift
Outdated
Show resolved
Hide resolved
Sources/LanguageServerProtocol/SupportTypes/ServerCapabilities.swift
Outdated
Show resolved
Hide resolved
Sources/LanguageServerProtocol/SupportTypes/ServerCapabilities.swift
Outdated
Show resolved
Hide resolved
Sources/LanguageServerProtocol/SupportTypes/ServerCapabilities.swift
Outdated
Show resolved
Hide resolved
…s.swift Co-authored-by: Alex Hoppen <[email protected]>
….swift Co-authored-by: Alex Hoppen <[email protected]>
….swift Co-authored-by: Alex Hoppen <[email protected]>
….swift Co-authored-by: Alex Hoppen <[email protected]>
Sources/LanguageServerProtocol/SupportTypes/ServerCapabilities.swift
Outdated
Show resolved
Hide resolved
Sources/LanguageServerProtocol/SupportTypes/ServerCapabilities.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I have one minor comment left, otherwise LGTM.
….swift Co-authored-by: Alex Hoppen <[email protected]>
@swift-ci Please test |
@swift-ci Please test Windows |
@swift-ci Please test macOS |
I don’t think I have the power to re-run macOS test. It failed without a reason @ahoppen |
Ah, macOS CI failed because the code isn’t formatted correctly. Could you run swift-format on it? Sorry, we don’t have any documentation for that at the moment, I usually build swift-format locally and then run cd /path/to/sourcekit-lsp
/path/to/swift-format/.build/arm64-apple-macosx/release/swift-format format -i --recursive Sources/ Tests/ Package.swift |
Head branch was pushed to by a user without write access
@swift-ci Please test |
@swift-ci Please test Windows |
1 similar comment
@swift-ci Please test Windows |
Decode
RegistrationOptions
fromLSPAny