Start work on relaying settings to language servers

This commit is contained in:
Max Brunsfeld 2022-03-11 17:36:27 -08:00
parent 48848de82c
commit 20fed599b2
6 changed files with 72 additions and 18 deletions

View file

@ -530,17 +530,6 @@ impl LspAdapter for JsonLspAdapter {
"provideFormatter": true
}))
}
fn register_handlers(&self, lsp: &mut lsp::LanguageServer) {
lsp.on_custom_request::<Vec<String>, Option<String>, _>("vscode/content", |schema| {
if schema.get(0).map(String::as_str) == Some("zed://settings") {
Ok(Some(workspace::Settings::file_json_schema()))
} else {
Ok(None)
}
})
.detach();
}
}
pub fn build_language_registry(login_shell_env_loaded: Task<()>) -> LanguageRegistry {