If you define EnvFile settings for run configuration templates, then these settings are properly read and written for the template.
But as soon as you create a new run configuration of this type, then the template settings of EnvFile are not applied.
This PR fixes this problem. A new run configuration is created via com.intellij.execution.configurations.RunConfiguration#clone and com.intellij.openapi.util.UserDataHolderBase#clone is only copying the copyable user data mapping. UserDataHolderBase is a superclass of RunConfigurationBase and thus used by most configuration types.
Using putCopyableUserData and getCopyableUserData keeps the data in the copyable data and thus properly appliese the template settings.
If you define EnvFile settings for run configuration templates, then these settings are properly read and written for the template. But as soon as you create a new run configuration of this type, then the template settings of EnvFile are not applied.
This PR fixes this problem. A new run configuration is created via
com.intellij.execution.configurations.RunConfiguration#clone
andcom.intellij.openapi.util.UserDataHolderBase#clone
is only copying the copyable user data mapping.UserDataHolderBase
is a superclass ofRunConfigurationBase
and thus used by most configuration types.Using
putCopyableUserData
andgetCopyableUserData
keeps the data in the copyable data and thus properly appliese the template settings.