File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ impl ProjectDetector {
2929 */
3030 #[ napi]
3131 pub fn get_workspace_folder ( & self ) -> String {
32- path_clean :: clean ( & self . workspace_folder . to_string ( ) )
32+ self . workspace_folder . to_string ( )
3333 }
3434
3535 /**
@@ -50,8 +50,8 @@ mod tests {
5050 fn test_create ( ) {
5151 let workspace_folder = "mock/workspace" ;
5252 let cwd = std:: env:: current_dir ( ) . unwrap ( ) ;
53- let resolved_workspace_folder = std:: path:: Path :: join ( & cwd, workspace_folder) . display ( ) . to_string ( ) ;
54- let resolved_file_url = Url :: parse ( & format ! ( "file://{}" , resolved_workspace_folder) ) . unwrap ( ) ;
53+ let resolved_workspace_folder = std:: path:: Path :: join ( & cwd, workspace_folder) ;
54+ let resolved_file_url = Url :: from_file_path ( & resolved_workspace_folder) . unwrap ( ) ;
5555 let project_detector = ProjectDetector :: create ( resolved_file_url. to_string ( ) ) ;
5656 assert_eq ! ( project_detector. get_workspace_folder( ) , resolved_file_url. to_string( ) ) ;
5757 }
You can’t perform that action at this time.
0 commit comments