-
Notifications
You must be signed in to change notification settings - Fork 291
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
Send token with WorkDoneProgress #732
Conversation
/// The progress data. | ||
public var value: WorkDoneProgressType | ||
|
||
public init(token: ProgressToken, value: WorkDoneProgressType) { |
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.
Is this initializer used anywhere outside of the tests? I don't see any other references to it in this PR.
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.
No due to #577. I use your type definitions in another language server and want to use $/progress => I implement it and send it upstream
@swift-ci test |
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 must have missed that when going through all the struct definitions in #669. I’ve got one naming suggestion, otherwise this looks good to me 👍🏽
Sources/LanguageServerProtocol/Notifications/WorkDoneProgress.swift
Outdated
Show resolved
Hide resolved
@swift-ci test |
@swift-ci Please test Windows |
Thank you. I don’t know how much you care but if you’d like this to be in the Swift 5.9 release, you will need to create a separate PR for the |
Personally it's not that important to have it at any tag, as I just use the main branch from this repo |
OK, in that case there’s no reason to cherry-pick it. |
This fixes the $/progress notification, as it requires that the ProgressToken is sent with the value.
swift test
works, theoretically it should probably be calledProgressParams
, but it wouldn't reflect that it is a notification, so I just changed the enum toWorkDoneProgressType