You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(run-service): refactor createConfiguration method to use PSI file lookup and create RunConfigurationSettings instance. This refactoring improves the readability and maintainability of the RunService class. #100
* Creates a new run configuration for the given project and virtual file.
28
+
*
29
+
* 1. Looks up the PSI file from the virtual file using `PsiManager.getInstance(project).findFile(virtualFile)`.
30
+
* 2. Creates a RunConfigurationSettings instance with the name "name" and the specified RunConfigurationType using `RunManager.getInstance(project).createConfiguration("name", RunConfigurationType)`.
31
+
*
32
+
* @param project The project for which to create the run configuration.
33
+
* @param virtualFile The virtual file to associate with the run configuration.
34
+
* @return The newly created RunConfiguration, or `null` if creation failed.
0 commit comments