diff options
author | Aleksey Kladov <[email protected]> | 2018-09-16 10:54:24 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-16 11:07:39 +0100 |
commit | b5021411a84822cb3f1e3aeffad9550dd15bdeb6 (patch) | |
tree | 9dca564f8e51b298dced01c4ce669c756dce3142 /crates/tools | |
parent | ba0bfeee12e19da40b5eabc8d0408639af10e96f (diff) |
rename all things
Diffstat (limited to 'crates/tools')
-rw-r--r-- | crates/tools/src/main.rs | 26 |
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 | ||
20 | type Result<T> = ::std::result::Result<T, failure::Error>; | 20 | type Result<T> = ::std::result::Result<T, failure::Error>; |
21 | 21 | ||
22 | const GRAMMAR_DIR: &str = "./crates/libsyntax2/src/grammar"; | 22 | const GRAMMAR_DIR: &str = "./crates/ra_syntax/src/grammar"; |
23 | const INLINE_TESTS_DIR: &str = "./crates/libsyntax2/tests/data/parser/inline"; | 23 | const INLINE_TESTS_DIR: &str = "./crates/ra_syntax/tests/data/parser/inline"; |
24 | const GRAMMAR: &str = "./crates/libsyntax2/src/grammar.ron"; | 24 | const GRAMMAR: &str = "./crates/ra_syntax/src/grammar.ron"; |
25 | const SYNTAX_KINDS: &str = "./crates/libsyntax2/src/syntax_kinds/generated.rs"; | 25 | const SYNTAX_KINDS: &str = "./crates/ra_syntax/src/syntax_kinds/generated.rs"; |
26 | const SYNTAX_KINDS_TEMPLATE: &str = "./crates/libsyntax2/src/syntax_kinds/generated.rs.tera"; | 26 | const SYNTAX_KINDS_TEMPLATE: &str = "./crates/ra_syntax/src/syntax_kinds/generated.rs.tera"; |
27 | const AST: &str = "./crates/libsyntax2/src/ast/generated.rs"; | 27 | const AST: &str = "./crates/ra_syntax/src/ast/generated.rs"; |
28 | const AST_TEMPLATE: &str = "./crates/libsyntax2/src/ast/generated.rs.tera"; | 28 | const AST_TEMPLATE: &str = "./crates/ra_syntax/src/ast/generated.rs.tera"; |
29 | 29 | ||
30 | fn main() -> Result<()> { | 30 | fn 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 | ||
192 | fn install_code_extension() -> Result<()> { | 192 | fn 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 | } |