Skip to content

Commit 47f8a0c

Browse files
committed
Add rust-analyzer.toml on dev new
1 parent 9459eef commit 47f8a0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dev/new.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::{
66
process::Command,
77
};
88

9-
use crate::CURRENT_FORMAT_VERSION;
9+
use crate::{init::RUST_ANALYZER_TOML, CURRENT_FORMAT_VERSION};
1010

1111
// Create a directory relative to the current directory and print its path.
1212
fn create_rel_dir(dir_name: &str, current_dir: &str) -> Result<()> {
@@ -62,6 +62,8 @@ pub fn new(path: &Path, no_git: bool) -> Result<()> {
6262

6363
write_rel_file("README.md", &dir_path_str, README)?;
6464

65+
write_rel_file("rust-analyzer.toml", &dir_path_str, RUST_ANALYZER_TOML)?;
66+
6567
create_rel_dir(".vscode", &dir_path_str)?;
6668
write_rel_file(
6769
".vscode/extensions.json",

0 commit comments

Comments
 (0)