diff --git a/crates/ide-host/src/lib.rs b/crates/ide-host/src/lib.rs index 03777fa93..11bc2d66d 100644 --- a/crates/ide-host/src/lib.rs +++ b/crates/ide-host/src/lib.rs @@ -532,6 +532,14 @@ impl Host { } } +impl Host { + /// Lists the JDKs added by hand (global Settings › SDKs) with the detected ones. + pub fn apply_added_jdks(&self) { + let homes = self.global_settings.effective().languages.java.added_jdks; + ide_sdk::java::set_added_jdks(homes.into_iter().map(PathBuf::from)); + } +} + #[cfg(test)] mod tests { use super::*; @@ -565,11 +573,3 @@ mod tests { host.close_project("main"); } } - -impl Host { - /// Lists the JDKs added by hand (global Settings › SDKs) with the detected ones. - pub fn apply_added_jdks(&self) { - let homes = self.global_settings.effective().languages.java.added_jdks; - ide_sdk::java::set_added_jdks(homes.into_iter().map(PathBuf::from)); - } -}