in src/rider/main/kotlin/com/jetbrains/rider/plugins/efcore/features/shared/dialog/CommonDataContext.kt [139:160]
open fun saveState(commonDialogState: DialogsStateService.SpecificDialogState) {
val migrationsProjectId = migrationsProject.value?.id
if (requireDbContext && dbContext.value != null) {
commonDialogState.set("${migrationsProjectId}:${KnownStateKeys.DB_CONTEXT}", dbContext.value!!.fullName)
}
if (buildConfiguration.value != null) {
commonDialogState.set(KnownStateKeys.BUILD_CONFIGURATION, buildConfiguration.value!!)
}
if (targetFramework.value != null) {
commonDialogState.set(KnownStateKeys.TARGET_FRAMEWORK, targetFramework.value!!.presentableName)
}
commonDialogState.set(KnownStateKeys.NO_BUILD, noBuild.value)
commonDialogState.set(KnownStateKeys.ENABLE_DIAGNOSTIC_LOGGING, enableDiagnosticLogging.value)
if (pluginSettings.storeSensitiveData) {
commonDialogState.setSensitive(KnownStateKeys.ADDITIONAL_ARGUMENTS, additionalArguments.value)
}
}