#[derive(Debug, Clone, PartialEq, Eq)]
pub(crate) struct Documentation {
    pub(crate) content: String,
}
impl Documentation {
    #[cfg(test)]
    pub(crate) fn new(content: &str) -> Documentation {
        Documentation {
            content: content.to_string(),
        }
    }
}

impl From<lsp_types::Documentation> for Documentation {
    fn from(value: lsp_types::Documentation) -> Self {
        Self {
            content: match value {
                lsp_types::Documentation::String(s) => s,
                lsp_types::Documentation::MarkupContent(content) => content.value,
            },
        }
    }
}
