diff --git a/plugin-core/src/main/java/appland/toolwindow/appmap/AppMapWindowPanel.java b/plugin-core/src/main/java/appland/toolwindow/appmap/AppMapWindowPanel.java index 4fdd76a4..d5e5d6a6 100644 --- a/plugin-core/src/main/java/appland/toolwindow/appmap/AppMapWindowPanel.java +++ b/plugin-core/src/main/java/appland/toolwindow/appmap/AppMapWindowPanel.java @@ -114,6 +114,11 @@ public void dispose() { @Override public @Nullable Object getData(@NotNull @NonNls String dataId) { + // don't provide PsiFile on the EDT, but delegate to the slow providers + if (CommonDataKeys.PSI_FILE.is(dataId) || CommonDataKeys.NAVIGATABLE.is(dataId)) { + return null; + } + if (PlatformCoreDataKeys.SLOW_DATA_PROVIDERS.is(dataId)) { return List.of((DataProvider) this::getDataImpl); }