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" => set! { "type": "object", }, - "FxHashMap, usize>" => set! { + "FxHashMap, u16>" => set! { "type": "object", }, "FxHashMap>" => set! { @@ -2761,6 +2761,11 @@ fn field_props(field: &str, ty: &str, doc: &[&str], default: &str) -> serde_json "type": ["null", "integer"], "minimum": 0, }, + "Option" => set! { + "type": ["null", "integer"], + "minimum": 0, + "maximum": 65535, + }, "Option" => 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 } } },