Unnamed repository; edit this file 'description' to name the repository.
Regenerate files
Lukas Wirth 2024-07-19
parent 6d4989b · commit 89bcc79
-rw-r--r--crates/rust-analyzer/src/config.rs7
-rw-r--r--editors/code/package.json3
2 files changed, 8 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs
index 68089aef11..bb1db2ef18 100644
--- a/crates/rust-analyzer/src/config.rs
+++ b/crates/rust-analyzer/src/config.rs
@@ -2751,7 +2751,7 @@ fn field_props(field: &str, ty: &str, doc: &[&str], default: &str) -> serde_json
"FxHashMap<String, String>" => set! {
"type": "object",
},
- "FxHashMap<Box<str>, usize>" => set! {
+ "FxHashMap<Box<str>, u16>" => set! {
"type": "object",
},
"FxHashMap<String, Option<String>>" => set! {
@@ -2761,6 +2761,11 @@ fn field_props(field: &str, ty: &str, doc: &[&str], default: &str) -> serde_json
"type": ["null", "integer"],
"minimum": 0,
},
+ "Option<u16>" => set! {
+ "type": ["null", "integer"],
+ "minimum": 0,
+ "maximum": 65535,
+ },
"Option<String>" => set! {
"type": ["null", "string"],
},
diff --git a/editors/code/package.json b/editors/code/package.json
index 0bc6da9dc7..899d3c1495 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -2252,7 +2252,8 @@
"null",
"integer"
],
- "minimum": 0
+ "minimum": 0,
+ "maximum": 65535
}
}
},