Skip to content

Commit bda1ea8

Browse files
committed
feat: don't auto close watch when watch throw Exception
1 parent ab23c1f commit bda1ea8

File tree

1 file changed

+6
-5
lines changed
  • src/main/kotlin/com/github/oldmegit/goframehelper/listener

1 file changed

+6
-5
lines changed

src/main/kotlin/com/github/oldmegit/goframehelper/listener/Listener.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import com.github.oldmegit.goframehelper.gf.GfGoMod
66
import com.github.oldmegit.goframehelper.ui.AppSettingsState
77
import com.github.oldmegit.goframehelper.ui.Notification
88
import com.goide.GoFileType
9+
import com.intellij.codeInsight.navigation.LOG
910
import com.intellij.openapi.project.Project
1011
import com.intellij.openapi.vfs.VirtualFile
1112
import com.intellij.openapi.vfs.newvfs.BulkFileListener
@@ -65,11 +66,11 @@ class Listener(private val project: Project): BulkFileListener {
6566
throw Exception(code.toString())
6667
}
6768
} catch (_: Exception) {
68-
val message = Bundle.getMessage("fileWatch.ExecErr")
69-
val settings = AppSettingsState.getInstance(project)
70-
settings.gfEnableApiWatch = false
71-
settings.gfEnableLogicWatch = false
72-
Notification.message(project, message)
69+
// val message = Bundle.getMessage("fileWatch.ExecErr")
70+
// val settings = AppSettingsState.getInstance(project)
71+
// settings.gfEnableApiWatch = false
72+
// settings.gfEnableLogicWatch = false
73+
// Notification.message(project, message)
7374
}
7475
}
7576
}

0 commit comments

Comments
 (0)