Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix auto update command
Mikaylafd6e47c167d3
diff --git a/.github/actions/run_tests/action.yml b/.github/actions/run_tests/action.ymlindex 35d640cb815..de5eadb61a4 100644--- a/.github/actions/run_tests/action.yml+++ b/.github/actions/run_tests/action.yml@@ -25,10 +25,10 @@ runs:env:RUSTFLAGS: -D warningsshell: bash -euxo pipefail {0}- run: echo cargo check --tests --workspace+ run: cargo check --tests --workspace- name: Run testsenv:RUSTFLAGS: -D warningsshell: bash -euxo pipefail {0}- run: echo cargo nextest run --workspace --no-fail-fast+ run: cargo nextest run --workspace --no-fail-fastdiff --git a/.github/workflows/release_nightly.yml b/.github/workflows/release_nightly.ymlindex daf1dc3aeec..447e928866d 100644--- a/.github/workflows/release_nightly.yml+++ b/.github/workflows/release_nightly.yml@@ -92,7 +92,7 @@ jobs:run: script/generate-licenses- name: Create app bundle- run: script/bundle -2d+ run: script/bundle -2- name: Upload Zed Nightlyrun: script/upload-nightlydiff --git a/crates/auto_update2/src/auto_update.rs b/crates/auto_update2/src/auto_update.rsindex 273d877967d..06b4e450663 100644--- a/crates/auto_update2/src/auto_update.rs+++ b/crates/auto_update2/src/auto_update.rs@@ -78,6 +78,11 @@ impl Settings for AutoUpdateSetting {pub fn init(http_client: Arc<dyn HttpClient>, server_url: String, cx: &mut AppContext) {AutoUpdateSetting::register(cx);+ cx.observe_new_views(|wokrspace: &mut Workspace, _cx| {+ wokrspace.register_action(|_, action: &Check, cx| check(action, cx));+ })+ .detach();+if let Some(version) = *ZED_APP_VERSION {let auto_updater = cx.build_model(|cx| {let updater = AutoUpdater::new(version, http_client, server_url);@@ -101,7 +106,6 @@ pub fn init(http_client: Arc<dyn HttpClient>, server_url: String, cx: &mut AppCo});cx.set_global(Some(auto_updater));//todo!(action)- // cx.add_global_action(check);// cx.add_global_action(view_release_notes);// cx.add_action(UpdateNotification::dismiss);}