Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 93acbad

Browse files
authored
Merge pull request #528 from philip-alldredge/completionItemResolveReturnType
Fixes completionItem/resolve response to match the LSP specification.
2 parents 78175cf + 899166a commit 93acbad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/actions/requests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,12 +767,12 @@ impl<'a> Action<'a> for ResolveCompletion {
767767
}
768768

769769
impl<'a> RequestAction<'a> for ResolveCompletion {
770-
type Response = Vec<CompletionItem>;
770+
type Response = CompletionItem;
771771
fn handle<O: Output>(&mut self, _id: usize, params: Self::Params, _ctx: &mut ActionContext, _out: O) -> Result<Self::Response, ()> {
772772
// currently, we safely ignore this as a pass-through since we fully handle
773773
// textDocument/completion. In the future, we may want to use this method as a
774774
// way to more lazily fill out completion information
775-
Ok(vec![params])
775+
Ok(params)
776776
}
777777
}
778778

0 commit comments

Comments
 (0)