mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
Don't ignore .vscode/extensions.json when developing third-party exercises
This commit is contained in:
parent
fcefa3d614
commit
212c82c6f6
2 changed files with 9 additions and 2 deletions
|
@ -45,7 +45,7 @@ pub fn new(path: &Path, no_git: bool) -> Result<()> {
|
|||
bail!("`git init` didn't run successfully. See the error message above");
|
||||
}
|
||||
|
||||
write_rel_file(".gitignore", &dir_name, crate::init::GITIGNORE)?;
|
||||
write_rel_file(".gitignore", &dir_name, GITIGNORE)?;
|
||||
|
||||
create_rel_dir("exercises", &dir_name)?;
|
||||
create_rel_dir("solutions", &dir_name)?;
|
||||
|
@ -72,6 +72,13 @@ pub fn new(path: &Path, no_git: bool) -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub const GITIGNORE: &[u8] = b".rustlings-state.txt
|
||||
Cargo.lock
|
||||
target
|
||||
.vscode
|
||||
!.vscode/extensions.json
|
||||
";
|
||||
|
||||
const INFO_FILE_BEFORE_FORMAT_VERSION: &str =
|
||||
"# The format version is an indicator of the compatibility of third-party exercises with the
|
||||
# Rustlings program.
|
||||
|
|
|
@ -55,7 +55,7 @@ pub fn init() -> Result<()> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub const GITIGNORE: &[u8] = b".rustlings-state.txt
|
||||
const GITIGNORE: &[u8] = b".rustlings-state.txt
|
||||
Cargo.lock
|
||||
target
|
||||
.vscode
|
||||
|
|
Loading…
Reference in a new issue