Add capabilities tests.

This commit is contained in:
vsrs
2020-06-03 17:35:26 +03:00
parent e35418ceb9
commit 0fe43a124b
3 changed files with 184 additions and 7 deletions

View File

@@ -273,8 +273,8 @@ impl Request for HoverRequest {
pub struct Hover {
#[serde(flatten)]
pub hover: lsp_types::Hover,
#[serde(skip_serializing_if = "Option::is_none")]
pub actions: Option<Vec<CommandLinkGroup>>,
#[serde(skip_serializing_if = "Vec::is_empty")]
pub actions: Vec<CommandLinkGroup>,
}
#[derive(Debug, PartialEq, Clone, Default, Deserialize, Serialize)]