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

@ -96,6 +96,20 @@ pub fn build_workspace(
};
let mut workspace = Workspace::new(&workspace_params, cx);
let project = workspace.project().clone();
project.update(cx, |project, _| {
project.set_language_server_settings(serde_json::json!({
"json": {
"schemas": [
{
"fileMatch": "**/.zed/settings.json",
"schema": Settings::file_json_schema(),
}
]
}
}));
});
workspace.left_sidebar_mut().add_item(
"icons/folder-tree-16.svg",
ProjectPanel::new(project, cx).into(),