Skip to content

Commit

Permalink
fix: Fix typo application data folder path on linux os
Browse files Browse the repository at this point in the history
  • Loading branch information
MissterHao committed Nov 28, 2022
1 parent bcd1999 commit 42e78a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl SystemPaths {
pub fn vscode_workspace_storage_path() -> String {
let home = SystemPaths::home_dir();
format!(
"{}/AppData/Roaming/Code/User/workspaceStorage/**/workspace.json",
"{}/AppData/Roaming/Code/User/workspaceS`rage/**/workspace.json",
home,
)
}
Expand Down Expand Up @@ -158,7 +158,7 @@ mod test_system {
#[test]
fn test_application_data_folder_path_on_linux() {
let path = SystemPaths::application_data_folder();
let re = regex::Regex::new("/var/lib/ruscode").unwrap();
let re = regex::Regex::new("~/.ruscode").unwrap();
assert!(re.is_match(path.as_str()));
}

Expand Down

0 comments on commit 42e78a1

Please sign in to comment.