Skip to content

Commit

Permalink
refresh after project creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed Jun 14, 2024
1 parent f5039cb commit 7f75dff
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.intellij.ide.util.projectWizard.AbstractNewProjectStep
import com.intellij.ide.util.projectWizard.CustomStepProjectGenerator
import com.intellij.ide.util.projectWizard.ProjectSettingsStepBase
import com.intellij.openapi.components.service
import com.intellij.openapi.externalSystem.autoimport.ExternalSystemProjectTracker
import com.intellij.openapi.module.Module
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
Expand All @@ -12,6 +13,7 @@ import com.intellij.platform.DirectoryProjectGenerator
import com.intellij.platform.DirectoryProjectGeneratorBase
import com.intellij.platform.ProjectGeneratorPeer
import org.move.cli.PluginApplicationDisposable
import org.move.cli.moveProjectsService
import org.move.cli.runConfigurations.aptos.Aptos
import org.move.cli.settings.aptos.AptosExecType
import org.move.cli.settings.moveSettings
Expand Down Expand Up @@ -66,6 +68,8 @@ class MoveProjectGenerator: DirectoryProjectGeneratorBase<AptosProjectConfig>(),
// this cannot be moved to a ProjectActivity, as Move.toml files
// are not created by the time those activities are executed
ProjectInitializationSteps.openMoveTomlInEditor(project, manifestFile)

project.moveProjectsService.scheduleProjectsRefresh("After `aptos move init`")
}

override fun createStep(
Expand Down

0 comments on commit 7f75dff

Please sign in to comment.