Skip to content

Commit

Permalink
fix: don't use file to get project while waitUntilDone
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <azerr@redhat.com>
  • Loading branch information
angelozerr committed Nov 24, 2024
1 parent 2993d8a commit 41105a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static void waitUntilDone(@NotNull CompletableFuture<?> future,
// wait for 25 ms
future.get(25, TimeUnit.MILLISECONDS);
} catch (TimeoutException ignore) {
if (!future.isDone() && System.currentTimeMillis() - start > 5000 && ProjectIndexingManager.getInstance(file.getProject()).isIndexingAll()){
if (!future.isDone() && System.currentTimeMillis() - start > 5000 && ProjectIndexingManager.isIndexingAll()){
// When some projects are being indexed,
// the language server startup can take a long time
// and the LSP feature (ex: codeLens)
Expand Down

0 comments on commit 41105a1

Please sign in to comment.