mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
fix installation for windows
This commit is contained in:
parent
722706fe41
commit
5b70e5cf0c
1 changed files with 11 additions and 3 deletions
|
@ -191,9 +191,17 @@ fn existing_tests(dir: &Path) -> Result<HashMap<String, (PathBuf, Test)>> {
|
||||||
|
|
||||||
fn install_code_extension() -> Result<()> {
|
fn install_code_extension() -> Result<()> {
|
||||||
run("cargo install --path crates/server --force", ".")?;
|
run("cargo install --path crates/server --force", ".")?;
|
||||||
run(r"npm install", "./code")?;
|
if cfg!(windows) {
|
||||||
run(r"./node_modules/vsce/out/vsce package", "./code")?;
|
run(r"cmd.exe /c npm.cmd install", "./code")?;
|
||||||
run(r"code --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?;
|
} else {
|
||||||
|
run(r"npm install", "./code")?;
|
||||||
|
}
|
||||||
|
run(r"node ./node_modules/vsce/out/vsce package", "./code")?;
|
||||||
|
if cfg!(windows) {
|
||||||
|
run(r"cmd.exe /c code.cmd --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?;
|
||||||
|
} else {
|
||||||
|
run(r"code --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?;
|
||||||
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue