Skip to content

Commit

Permalink
do not use obsolete runWriteAction coroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinVaadin committed Oct 31, 2024
1 parent 9690c2d commit d056181
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.vaadin.plugin.copilot.listeners

import com.intellij.openapi.application.WriteAction
import com.intellij.openapi.application.runInEdt
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 @@ -17,7 +17,7 @@ class CopilotVaadinProjectListener : VaadinProjectListener {
if (!triggered) {
triggered = true
runInEdt {
runWriteAction {
WriteAction.run<Throwable> {
saveDotFile(project)
removeDotFileOnExit(project)
}
Expand Down

0 comments on commit d056181

Please sign in to comment.