mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-18 18:08:07 +03:00
Exclude dev extensions from auto-updates (#14680)
This PR makes it so dev extensions that are installed are excluded when checking for extension updates. We don't want to accidentally clobber dev extensions if the upstream extension is deemed more "up-to-date". Release Notes: - Changed dev extensions to be excluded from extension auto-updates.
This commit is contained in:
parent
5a090bc3f3
commit
84b34677e2
@ -456,9 +456,9 @@ impl ExtensionStore {
|
|||||||
let extension_ids = self
|
let extension_ids = self
|
||||||
.extension_index
|
.extension_index
|
||||||
.extensions
|
.extensions
|
||||||
.keys()
|
.iter()
|
||||||
.map(|id| id.as_ref())
|
.filter(|(id, entry)| !entry.dev && extension_settings.should_auto_update(id))
|
||||||
.filter(|id| extension_settings.should_auto_update(id))
|
.map(|(id, _)| id.as_ref())
|
||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join(",");
|
.join(",");
|
||||||
let task = self.fetch_extensions_from_api(
|
let task = self.fetch_extensions_from_api(
|
||||||
|
Loading…
Reference in New Issue
Block a user