redhat-developer / redhat-developer/lsp4ij

Use runWhenSmart with project indexing support

Open
#683 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.