[BUG] VirtualFile.refresh() called synchronously on EDT causing IntelliJ freeze
Resolved 💬 1 comment Opened Apr 26, 2026 by sadam266 Closed May 30, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The Claude Code plugin calls VirtualFile.refresh() synchronously inside a write
action on the EDT (DiagnosticTools.kt:96). This causes the entire JobScheduler
fork-join pool (23 threads) to block on HighlightInfoUpdaterImpl's synchronized
monitor, freezing IntelliJ for several seconds.
Happens multiple times per day during normal usage.
threadDump-20260426-060558-1777176358293.txt
What Should Happen?
File operations complete without blocking the UI thread
Error Messages/Logs
Steps to Reproduce
- Open any project in IntelliJ with Claude Code plugin active
- Use Claude Code to perform any file operation
- IntelliJ UI freezes for several seconds
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.119
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗