switch out lsp-types for gen-lsp-types#22115
switch out lsp-types for gen-lsp-types#22115BenjaminBrienen wants to merge 1 commit intorust-lang:masterfrom
Conversation
266f7ac to
207d300
Compare
b996006 to
e887c95
Compare
This comment has been minimized.
This comment has been minimized.
db9f359 to
97d9e55
Compare
This comment has been minimized.
This comment has been minimized.
552f6d5 to
b10f69c
Compare
This comment has been minimized.
This comment has been minimized.
b10f69c to
8694af0
Compare
|
Heads up @BenjaminBrienen I just pushed v0.4.0, will probably affect this PR |
|
I already updated to it :) |
fd865d7 to
90f1985
Compare
|
I'm assuming you would like a side of squash with this meal |
554de57 to
9ea32c3
Compare
| // FIXME: Also detect the proposed lsp version at caps.workspace.workspaceEdit.snippetEditSupport | ||
| // once lsp-types has it. |
There was a problem hiding this comment.
I already have a draft PR based on top of this one that implements the split and uses the capability properly, so I just removed the comment for now. Is that fine?
There was a problem hiding this comment.
Going through all of the it.method == R::METHOD changes made me realize that there's no request-equivalent helper function of notification_is 😅
My main concern though is if the file:// scheme is still required though, as I think the tests ensure that we're emitting self-consistent values rather than if those values actually make sense for the LS client.
| // FIXME: Also detect the proposed lsp version at caps.workspace.workspaceEdit.snippetEditSupport | ||
| // once lsp-types has it. |
There was a problem hiding this comment.
I hadn't known about the draft PR, sorry!
b6b4eca to
f1abaaa
Compare
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
|
4e097a1 to
c7b031d
Compare
| { | ||
| let req = self.req.take_if(|it| it.method == R::METHOD)?; | ||
| let res = crate::from_json(R::METHOD, &req.params); | ||
| let req = self.req.take_if(|it| it.method.as_str() == R::METHOD.as_str())?; |
There was a problem hiding this comment.
| let req = self.req.take_if(|it| it.method.as_str() == R::METHOD.as_str())?; | |
| let req = self.req.take_if(|it| it.method == R::METHOD)?; |
There was a problem hiding this comment.
can't compare std::string::String with gen_lsp_types::LspRequestMethod
53e9186 to
bcaaea6
Compare
bee3902 to
e55875b
Compare
Blocked on:
From<&str>for string enums with custom values ribru17/gen-lsp-types#8LspRequestMethods::Customshould take a&'static strribru17/gen-lsp-types#9crate::Idandcrate::generated::Idribru17/gen-lsp-types#10mod json_rpcto avoid name collisions ribru17/gen-lsp-types#11Alternative to: #22108