Skip to content

Commit 8b78a39

Browse files
committed
update after dotfile is saved
1 parent 455efb5 commit 8b78a39

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/kotlin/com/vaadin/plugin/copilot/listeners/CopilotVaadinProjectListener.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.vaadin.plugin.copilot.listeners
22

3+
import com.intellij.openapi.project.DumbService
34
import com.intellij.openapi.project.Project
45
import com.intellij.openapi.project.ProjectManager
56
import com.intellij.openapi.project.ProjectManagerListener
@@ -17,7 +18,9 @@ class CopilotVaadinProjectListener : VaadinProjectListener {
1718
triggered = true
1819
saveDotFile(project)
1920
removeDotFileOnExit(project)
20-
VaadinStatusBarWidget.update(project)
21+
DumbService.getInstance(project).smartInvokeLater {
22+
VaadinStatusBarWidget.update(project)
23+
}
2124
}
2225
}
2326

0 commit comments

Comments
 (0)