From cb6bca5b2bc5ba7e84f9baedbdf58da2120d2beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 8 Jun 2023 17:10:38 +0200 Subject: [PATCH] inlay_hints.md: fix "force inlay refresh" for different EPs --- topics/reference_guide/custom_language_support/inlay_hints.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/topics/reference_guide/custom_language_support/inlay_hints.md b/topics/reference_guide/custom_language_support/inlay_hints.md index fe5bb7109..37d3de9ac 100644 --- a/topics/reference_guide/custom_language_support/inlay_hints.md +++ b/topics/reference_guide/custom_language_support/inlay_hints.md @@ -86,6 +86,8 @@ Examples can be found in the following IntelliJ Platform plugins: 5. If you need to force inlay hints to update when using [`DaemonCodeAnalyzer.restart()`](%gh-ic%/platform/analysis-api/src/com/intellij/codeInsight/daemon/DaemonCodeAnalyzer.java), please use + [`InlayHintsPassFactory.forceHintsUpdateOnNextPass()`](%gh-ic%/platform/lang-impl/src/com/intellij/codeInsight/hints/InlayHintsPassFactory.kt) + or [`ParameterHintsPassFactory.forceHintsUpdateOnNextPass()`](%gh-ic%/platform/lang-impl/src/com/intellij/codeInsight/hints/ParameterHintsPassFactory.java) - before you call `restart()`. + when using `InlayParameterHintsProvider` before you call `restart()`. If you want to force an update on a specific editor, note that the method also has an overload that takes an `Editor` instance.