@@ -19,8 +19,8 @@ use crate::{
1919 jdk:: try_to_fetch_and_install_latest_jdk,
2020 util:: {
2121 create_path_if_not_exists, get_curr_dir, get_java_exec_name, get_java_executable,
22- get_java_major_version, get_latest_versions_from_tag, mark_checked_once,
23- path_to_quoted_string , remove_all_files_except, should_use_local_or_download,
22+ get_java_major_version, get_latest_versions_from_tag, mark_checked_once, path_to_string ,
23+ remove_all_files_except, should_use_local_or_download,
2424 } ,
2525} ;
2626
@@ -66,14 +66,14 @@ pub fn build_jdtls_launch_args(
6666 let jdtls_data_path = get_jdtls_data_path ( worktree) ?;
6767
6868 let mut args = vec ! [
69- path_to_quoted_string ( java_executable) ?,
69+ path_to_string ( java_executable) ?,
7070 "-Declipse.application=org.eclipse.jdt.ls.core.id1" . to_string( ) ,
7171 "-Dosgi.bundles.defaultStartLevel=4" . to_string( ) ,
7272 "-Declipse.product=org.eclipse.jdt.ls.core.product" . to_string( ) ,
7373 "-Dosgi.checkConfiguration=true" . to_string( ) ,
7474 format!(
7575 "-Dosgi.sharedConfiguration.area={}" ,
76- path_to_quoted_string ( shared_config_path) ?
76+ path_to_string ( shared_config_path) ?
7777 ) ,
7878 "-Dosgi.sharedConfiguration.area.readOnly=true" . to_string( ) ,
7979 "-Dosgi.configuration.cascaded=true" . to_string( ) ,
@@ -87,9 +87,9 @@ pub fn build_jdtls_launch_args(
8787 args. extend ( jvm_args) ;
8888 args. extend ( vec ! [
8989 "-jar" . to_string( ) ,
90- path_to_quoted_string ( jar_path) ?,
90+ path_to_string ( jar_path) ?,
9191 "-data" . to_string( ) ,
92- path_to_quoted_string ( jdtls_data_path) ?,
92+ path_to_string ( jdtls_data_path) ?,
9393 ] ) ;
9494 if java_major_version >= 24 {
9595 args. push ( "-Djdk.xml.maxGeneralEntitySizeLimit=0" . to_string ( ) ) ;
@@ -201,10 +201,10 @@ pub fn try_to_fetch_and_install_latest_jdtls(
201201 & format ! (
202202 "https://www.eclipse.org/downloads/download.php?file=/jdtls/milestones/{latest_version}/{latest_version_build}"
203203 ) ,
204- path_to_quoted_string ( build_path. clone ( ) ) ?. as_str ( ) ,
204+ path_to_string ( build_path. clone ( ) ) ?. as_str ( ) ,
205205 DownloadedFileType :: GzipTar ,
206206 ) ?;
207- make_file_executable ( path_to_quoted_string ( binary_path) ?. as_str ( ) ) ?;
207+ make_file_executable ( path_to_string ( binary_path) ?. as_str ( ) ) ?;
208208
209209 // ...and delete other versions
210210 let _ = remove_all_files_except ( prefix, build_directory. as_str ( ) ) ;
@@ -252,7 +252,7 @@ pub fn try_to_fetch_and_install_latest_lombok(
252252 create_path_if_not_exists ( prefix) ?;
253253 download_file (
254254 & format ! ( "https://projectlombok.org/downloads/{jar_name}" ) ,
255- path_to_quoted_string ( jar_path. clone ( ) ) ?. as_str ( ) ,
255+ path_to_string ( jar_path. clone ( ) ) ?. as_str ( ) ,
256256 DownloadedFileType :: Uncompressed ,
257257 ) ?;
258258
0 commit comments