@@ -7,6 +7,7 @@ import com.emberjs.configuration.test.LaunchType
7
7
import com.emberjs.configuration.utils.PublicStringAddEditDeleteListPanel
8
8
import com.emberjs.project.EmberModuleType
9
9
import com.intellij.application.options.ModulesComboBox
10
+ import com.intellij.execution.configuration.EnvironmentVariablesTextFieldWithBrowseButton
10
11
import com.intellij.javascript.nodejs.interpreter.NodeJsInterpreterField
11
12
import com.intellij.javascript.nodejs.interpreter.NodeJsInterpreterRef
12
13
import com.intellij.openapi.options.ConfigurationException
@@ -62,6 +63,7 @@ class EmberTestSettingsEditor(
62
63
private var myModulesComboBox: ModulesComboBox ? = null
63
64
private var myNodeSettingsPanel: JPanel ? = null
64
65
private var myNodeInterpreterField: NodeJsInterpreterField ? = null
66
+ private var myEnvVars: EnvironmentVariablesTextFieldWithBrowseButton ? = null
65
67
66
68
val bundle: ResourceBundle = ResourceBundle .getBundle(" com.emberjs.locale.EmberTestConfigurationEditor" )
67
69
val launchers: MutableList <String > = mutableListOf ()
@@ -128,6 +130,10 @@ class EmberTestSettingsEditor(
128
130
is String -> NodeJsInterpreterRef .create(configuration.nodeInterpreter)
129
131
else -> NodeJsInterpreterRef .createProjectRef()
130
132
}
133
+
134
+ configuration.env?.let {
135
+ myEnvVars?.envs = it
136
+ }
131
137
}
132
138
133
139
@Throws(ConfigurationException ::class )
@@ -138,6 +144,7 @@ class EmberTestSettingsEditor(
138
144
139
145
configuration.module = myModulesComboBox?.selectedModule
140
146
configuration.nodeInterpreter = myNodeInterpreterField?.interpreterRef?.referenceName
147
+ configuration.env = myEnvVars?.envs
141
148
}
142
149
143
150
@NotNull
0 commit comments