Skip to content

Commit e9f4a5d

Browse files
committed
refactor: use WriteAction.computeAndWait instead of WriteAction.compute
1 parent e9ef6f9 commit e9f4a5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/com/github/lppedd/cc/configuration/CCTokensService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ internal class CCTokensService(private val project: Project) {
214214
}
215215

216216
if (createIfNotExists) {
217-
return WriteAction.compute<VirtualFile, Throwable> {
217+
return WriteAction.computeAndWait<VirtualFile, Throwable> {
218218
rootDir.createChildData(this, fileName)
219219
}
220220
}

0 commit comments

Comments
 (0)