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.

Fix default settings entry for basedpyright (#40812)

Abdelhakim Qbaichfd306c97f412
diff --git a/crates/languages/src/python.rs b/crates/languages/src/python.rs
index c255ed3f09f..f676f5a7a6f 100644
--- a/crates/languages/src/python.rs
+++ b/crates/languages/src/python.rs
@@ -1866,12 +1866,8 @@ impl LspAdapter for BasedPyrightLspAdapter {
}
// Basedpyright by default uses `strict` type checking, we tone it down as to not surpris users
maybe!({
- let basedpyright = object
- .entry("basedpyright")
- .or_insert(Value::Object(serde_json::Map::default()));
- let analysis = basedpyright
- .as_object_mut()?
- .entry("analysis")
+ let analysis = object
+ .entry("basedpyright.analysis")
.or_insert(Value::Object(serde_json::Map::default()));
if let serde_json::map::Entry::Vacant(v) =
analysis.as_object_mut()?.entry("typeCheckingMode")