Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Merge branch 'main' into in-app-feedback

Joseph Lyonsf2a5a4d0fd56
diff --cc crates/workspace/src/workspace.rs
index ff5748f2408,8735f33fbe6..c1c90f2560d
--- a/crates/workspace/src/workspace.rs
+++ b/crates/workspace/src/workspace.rs
@@@ -97,7 -99,7 +99,8 @@@ actions!
ToggleRightSidebar,
NewTerminal,
NewSearch,
+ Feedback
+ ShowNotif,
]
);
diff --cc crates/zed/src/main.rs
index bd13088f7f8,16fd0c1eeab..fe7e95cf247
--- a/crates/zed/src/main.rs
+++ b/crates/zed/src/main.rs
@@@ -106,11 -110,21 +111,23 @@@ fn main()
settings_file_content.clone(),
fs.clone(),
));
+
watch_settings_file(default_settings, settings_file_content, themes.clone(), cx);
+ upload_previous_panics(http.clone(), cx);
+
+ let client = client::Client::new(http.clone(), cx);
+ let mut languages = LanguageRegistry::new(login_shell_env_loaded);
+ languages.set_language_server_download_dir(paths::LANGUAGES_DIR.clone());
+ let languages = Arc::new(languages);
+ let init_languages = cx
+ .background()
+ .spawn(languages::init(languages.clone(), cx.background().clone()));
+ let user_store = cx.add_model(|cx| UserStore::new(client.clone(), http.clone(), cx));
+
watch_keymap_file(keymap_file, cx);
+ cx.set_global(client.clone());
+
context_menu::init(cx);
project::Project::init(&client);
client::init(client.clone(), cx);