Skip to content

Commit

Permalink
wrap with write action (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinVaadin authored Oct 28, 2024
1 parent 3d42f20 commit a3eb4be
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.vaadin.plugin.copilot.listeners

import com.intellij.openapi.application.runWriteAction
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectManager
import com.intellij.openapi.project.ProjectManagerListener
Expand All @@ -14,8 +15,10 @@ class CopilotVaadinProjectListener : VaadinProjectListener {
override fun vaadinProjectDetected(project: Project) {
if (!triggered) {
triggered = true
saveDotFile(project)
removeDotFileOnExit(project)
runWriteAction {
saveDotFile(project)
removeDotFileOnExit(project)
}
}
}

Expand Down

0 comments on commit a3eb4be

Please sign in to comment.