aboutsummaryrefslogtreecommitdiff
path: root/crates/tools/src/main.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-16 10:54:24 +0100
committerAleksey Kladov <[email protected]>2018-09-16 11:07:39 +0100
commitb5021411a84822cb3f1e3aeffad9550dd15bdeb6 (patch)
tree9dca564f8e51b298dced01c4ce669c756dce3142 /crates/tools/src/main.rs
parentba0bfeee12e19da40b5eabc8d0408639af10e96f (diff)
rename all things
Diffstat (limited to 'crates/tools/src/main.rs')
-rw-r--r--crates/tools/src/main.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs
index f8b840718..ee900553c 100644
--- a/crates/tools/src/main.rs
+++ b/crates/tools/src/main.rs
@@ -19,13 +19,13 @@ use tools::{collect_tests, Test};
19 19
20type Result<T> = ::std::result::Result<T, failure::Error>; 20type Result<T> = ::std::result::Result<T, failure::Error>;
21 21
22const GRAMMAR_DIR: &str = "./crates/libsyntax2/src/grammar"; 22const GRAMMAR_DIR: &str = "./crates/ra_syntax/src/grammar";
23const INLINE_TESTS_DIR: &str = "./crates/libsyntax2/tests/data/parser/inline"; 23const INLINE_TESTS_DIR: &str = "./crates/ra_syntax/tests/data/parser/inline";
24const GRAMMAR: &str = "./crates/libsyntax2/src/grammar.ron"; 24const GRAMMAR: &str = "./crates/ra_syntax/src/grammar.ron";
25const SYNTAX_KINDS: &str = "./crates/libsyntax2/src/syntax_kinds/generated.rs"; 25const SYNTAX_KINDS: &str = "./crates/ra_syntax/src/syntax_kinds/generated.rs";
26const SYNTAX_KINDS_TEMPLATE: &str = "./crates/libsyntax2/src/syntax_kinds/generated.rs.tera"; 26const SYNTAX_KINDS_TEMPLATE: &str = "./crates/ra_syntax/src/syntax_kinds/generated.rs.tera";
27const AST: &str = "./crates/libsyntax2/src/ast/generated.rs"; 27const AST: &str = "./crates/ra_syntax/src/ast/generated.rs";
28const AST_TEMPLATE: &str = "./crates/libsyntax2/src/ast/generated.rs.tera"; 28const AST_TEMPLATE: &str = "./crates/ra_syntax/src/ast/generated.rs.tera";
29 29
30fn main() -> Result<()> { 30fn main() -> Result<()> {
31 let matches = App::new("tasks") 31 let matches = App::new("tasks")
@@ -190,17 +190,17 @@ fn existing_tests(dir: &Path) -> Result<HashMap<String, (PathBuf, Test)>> {
190} 190}
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/ra_lsp_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", "./editors/code")?;
196 } else { 196 } else {
197 run(r"npm install", "./code")?; 197 run(r"npm install", "./editors/code")?;
198 } 198 }
199 run(r"node ./node_modules/vsce/out/vsce package", "./code")?; 199 run(r"node ./node_modules/vsce/out/vsce package", "./editors/code")?;
200 if cfg!(windows) { 200 if cfg!(windows) {
201 run(r"cmd.exe /c code.cmd --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?; 201 run(r"cmd.exe /c code.cmd --install-extension ./ra-lsp-0.0.1.vsix", "./editors/code")?;
202 } else { 202 } else {
203 run(r"code --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?; 203 run(r"code --install-extension ./ra-lsp-0.0.1.vsix", "./editors/code")?;
204 } 204 }
205 Ok(()) 205 Ok(())
206} 206}