Route language server requests through wrapper object

This commit is contained in:
Julia 2023-06-21 23:05:37 -04:00
parent e15be61ded
commit 9b63d6f832
3 changed files with 142 additions and 52 deletions

View file

@ -665,11 +665,11 @@ impl LanguageServer {
}
}
pub fn name<'a>(self: &'a Arc<Self>) -> &'a str {
pub fn name<'a>(&self) -> &str {
&self.name
}
pub fn capabilities<'a>(self: &'a Arc<Self>) -> &'a ServerCapabilities {
pub fn capabilities<'a>(&self) -> &ServerCapabilities {
&self.capabilities
}