redhat-developer / redhat-developer/lsp4ij
Use runWhenSmart with project indexing support
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 344
- Forks
- 113
- Avg merge
- 5h 22m
- Merged PRs (30d)
- 15
Description
I have some discussion on JetBrains Slack and it seems since IJ 2024.3 a bug was fixed with runWhenSmart which executes the runnable when scanning and dumb are finished. Before this version the runnable is executed only when dumb is finished.
It would be nic to use runWhenSmart by checking that IJ >= 2024.3 instead of using ProjectIndexingActivityHistoryListener with Java reflection (because this API is internal).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the current ProjectIndexingActivityHistoryListener usage and its Java reflection code, then check how IntelliJ platform version compatibility is declared. Compare the existing behavior with runWhenSmart on IntelliJ IDEA 2024.3 and confirm that project indexing completion is handled without the internal API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100