We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4700d6f commit eefdd38Copy full SHA for eefdd38
tools/schema_json_gen/src/main.rs
@@ -3,7 +3,10 @@ use std::fs;
3
4
fn main() {
5
let schema = schemars::schema_for!(Emmyrc);
6
- let schema_json = serde_json::to_string_pretty(&schema).unwrap();
+ let mut schema_json = serde_json::to_string_pretty(&schema).unwrap();
7
+ if !schema_json.ends_with('\n') {
8
+ schema_json.push('\n');
9
+ }
10
let root_crates = std::env::current_dir().unwrap();
11
let output_path = root_crates.join("crates/emmylua_code_analysis/resources/schema.json");
12
println!("Output path: {:?}", output_path);
0 commit comments