ZIm/crates/settings/src
Smit Barmase f14d6670ba
copilot: Fix onboarding into Copilot requires Zed restart (#26330)
Closes #25594

This PR fixes an issue where signing into Copilot required restarting
Zed.

Copilot depends on an OAuth token that comes from either `hosts.json` or
`apps.json`. Initially, both files don't exist. If neither file is
found, we fallback to watching `hosts.json` for updates. However, if the
auth process creates `apps.json`, we won't receive updates from it,
causing the UI to remain outdated.

This PR fixes that by watching the parent `github-copilot` directory
instead, which will always contain one of those files along with an
additional version file.

I have tested this on macOS and Linux Wayland.

Release Notes:

- Fixed an issue where signing into Copilot required restarting Zed.
2025-03-09 03:19:09 +05:30
..
editable_setting_control.rs Eliminate GPUI View, ViewContext, and WindowContext types (#22632) 2025-01-26 03:02:45 +00:00
json_schema.rs Rust 1.85 (#25272) 2025-02-28 18:33:35 +01:00
key_equivalents.rs Move git status out of Entry (#22224) 2025-01-04 01:00:16 +00:00
keymap_file.rs keymap: Update Prev to Previous for consistency (#25909) 2025-03-03 17:44:49 +05:30
settings.rs Fix display of bindings for editor::AcceptInlineCompletion + add validation + use modifiers from keymap (#24442) 2025-02-10 13:01:42 -07:00
settings_file.rs copilot: Fix onboarding into Copilot requires Zed restart (#26330) 2025-03-09 03:19:09 +05:30
settings_store.rs chore: Remove settings dependency on migrator (#24642) 2025-02-11 13:34:33 +01:00