aboutsummaryrefslogtreecommitdiff
path: root/crates/tools/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tools/src')
-rw-r--r--crates/tools/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs
index 597d07d80..f8b840718 100644
--- a/crates/tools/src/main.rs
+++ b/crates/tools/src/main.rs
@@ -86,7 +86,7 @@ fn render_template(template: &str) -> Result<String> {
86 let mut tera = tera::Tera::default(); 86 let mut tera = tera::Tera::default();
87 tera.add_raw_template("grammar", &template) 87 tera.add_raw_template("grammar", &template)
88 .map_err(|e| format_err!("template error: {:?}", e))?; 88 .map_err(|e| format_err!("template error: {:?}", e))?;
89 tera.register_global_function("concat", Box::new(concat)); 89 tera.register_function("concat", Box::new(concat));
90 tera.register_filter("camel", |arg, _| { 90 tera.register_filter("camel", |arg, _| {
91 Ok(arg.as_str().unwrap().to_camel_case().into()) 91 Ok(arg.as_str().unwrap().to_camel_case().into())
92 }); 92 });
@@ -193,7 +193,7 @@ fn install_code_extension() -> Result<()> {
193 run("cargo install --path crates/server --force", ".")?; 193 run("cargo install --path crates/server --force", ".")?;
194 if cfg!(windows) { 194 if cfg!(windows) {
195 run(r"cmd.exe /c npm.cmd install", "./code")?; 195 run(r"cmd.exe /c npm.cmd install", "./code")?;
196 } else { 196 } else {
197 run(r"npm install", "./code")?; 197 run(r"npm install", "./code")?;
198 } 198 }
199 run(r"node ./node_modules/vsce/out/vsce package", "./code")?; 199 run(r"node ./node_modules/vsce/out/vsce package", "./code")?;