mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
RDCT-1395: do not provide default remote dev -Xmx if it's already set
GitOrigin-RevId: e1e56cdabce53a147d28d1414c981e380c1393fc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d2a3055574
commit
4e011d9fc8
@@ -28,8 +28,12 @@ impl LaunchConfiguration for RemoteDevLaunchConfiguration {
|
||||
fn get_vm_options(&self) -> Result<Vec<String>> {
|
||||
let mut vm_options = self.default.get_vm_options()?;
|
||||
|
||||
// TODO: add default Xmx to productInfo as right now we patch the user one
|
||||
vm_options.push("-Xmx2048m".to_string());
|
||||
let has_xmx = vm_options.iter().any(|opt| opt.starts_with("-Xmx"));
|
||||
|
||||
if !has_xmx {
|
||||
// TODO: add default Xmx to productInfo as right now we patch the user one
|
||||
vm_options.push("-Xmx2048m".to_string());
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
if is_wsl2() && !parse_bool_env_var("REMOTE_DEV_SERVER_ALLOW_IPV6_ON_WSL2", false)? {
|
||||
|
||||
Reference in New Issue
Block a user