aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/tools/src/main.rs14
1 files changed, 11 insertions, 3 deletions
diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs
index 3f9caa4be..597d07d80 100644
--- a/crates/tools/src/main.rs
+++ b/crates/tools/src/main.rs
@@ -191,9 +191,17 @@ fn existing_tests(dir: &Path) -> Result<HashMap<String, (PathBuf, Test)>> {
191 191
192fn install_code_extension() -> Result<()> { 192fn install_code_extension() -> Result<()> {
193 run("cargo install --path crates/server --force", ".")?; 193 run("cargo install --path crates/server --force", ".")?;
194 run(r"npm install", "./code")?; 194 if cfg!(windows) {
195 run(r"./node_modules/vsce/out/vsce package", "./code")?; 195 run(r"cmd.exe /c npm.cmd install", "./code")?;
196 run(r"code --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?; 196 } else {
197 run(r"npm install", "./code")?;
198 }
199 run(r"node ./node_modules/vsce/out/vsce package", "./code")?;
200 if cfg!(windows) {
201 run(r"cmd.exe /c code.cmd --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?;
202 } else {
203 run(r"code --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?;
204 }
197 Ok(()) 205 Ok(())
198} 206}
199 207