some optimizations

This commit is contained in:
林万程
2023-12-12 18:41:28 +08:00
parent 0d1d67b765
commit 3b625962c0
10 changed files with 13 additions and 13 deletions

View File

@@ -1,8 +1,6 @@
package io.github.linwancen.plugin.show.ext.conf;
import com.intellij.ide.projectView.ProjectView;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.project.DumbAwareAction;
import com.intellij.openapi.project.Project;
import io.github.linwancen.plugin.show.settings.ShowBundle;

View File

@@ -32,6 +32,8 @@ public class ResetExtDocAction extends AnAction {
if (project == null) {
return;
}
ApplicationManager.getApplication().invokeLater(() ->
ProjectView.getInstance(project).refresh());
} catch (Throwable t) {
LOG.info("ConfFileChangeListener catch Throwable but log to record.", t);
}