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.

client: Hide usage when not available (#38234)

Marshall Bowersd9860775921d
diff --git a/crates/client/src/user.rs b/crates/client/src/user.rs
index 63626e8ce1f..de0668b406c 100644
--- a/crates/client/src/user.rs
+++ b/crates/client/src/user.rs
@@ -754,6 +754,10 @@ impl UserStore {
}
pub fn model_request_usage(&self) -> Option<ModelRequestUsage> {
+ if self.plan().is_some_and(|plan| plan.is_v2()) {
+ return None;
+ }
+
self.model_request_usage
}