You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntelliJ's DeclarativeHintsSettingsProvider only reads providers registered
via the direct codeInsight.declarativeInlayProvider EP, not those from factories. Since lsp4ij registers providers dynamically via a factory (languages are not known at compile time), the "Language Server" provider
did not appear in Settings > Editor > Inlay Hints, making it impossible to re-enable after disabling via the editor context menu.
Add LSPInlayHintsSettingsProvider (InlaySettingsProvider) to bridge factory-registered declarative providers into the settings panel
Use per-language provider IDs so disabling hints for one language does not affect others
Move getName() from AbstractLSPInlayHintsProvider to LSPColorProvider for proper separation of concerns
Rename entries to "Language Server Hints" and "Language Server Colors" to clearly distinguish the two providers in settings
(redhat-developer#1800)
IntelliJ's DeclarativeHintsSettingsProvider only reads providers
registered
via the direct codeInsight.declarativeInlayProvider EP, not those from
factories. Since lsp4ij registers providers dynamically via a factory
(languages are not known at compile time), the "Language Server"
provider
did not appear in Settings > Editor > Inlay Hints, making it impossible
to re-enable after disabling via the editor context menu.
- Add LSPInlayHintsSettingsProvider (InlaySettingsProvider) to bridge
factory-registered declarative providers into the settings panel
- Use per-language provider IDs so disabling hints for one language
does not affect others
- Move getName() from AbstractLSPInlayHintsProvider to LSPColorProvider
for proper separation of concerns
- Rename entries to "Language Server Hints" and "Language Server Colors"
to clearly distinguish the two providers in settings
Signed-off-by: azerr <[email protected]>
Language server inlay hints are now available in the IDE’s inlay-hint settings, where they can be enabled or disabled for supported languages.
Language server color providers now have a clear, localized name.
Bug Fixes
Inlay hints from different languages are now identified separately, helping prevent provider conflicts.
Style
Updated and localized the inlay-hint provider label for clarity.
The change gives each language’s declarative inlay-hint provider a distinct ID and adds settings models for registered providers. It also adds localized names for the inlay-hint and color providers.
The new settings provider exposes registered declarative providers and saves, detects changes to, and restores their enabled state. The plugin registers the settings provider. Inlay-hint and color provider names use localized labels.
The change exposes language-specific inlay-hint settings. No merge-blocking failure is confirmed; refreshing open editors and preserving previously disabled settings remain unverified.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes exposing LSP inlay hints in IntelliJ settings, which is the main change.
Description check
The description directly explains the settings integration, per-language provider IDs, naming changes, and the issue being fixed.
Linked Issues check
Issue #1800 requires a UI path to re-enable disabled Language Server inlay hints. LSPInlayHintsSettingsProvider is registered as an IntelliJ inlay settings provider. It discovers mapped languages, c…
Out of Scope Changes check
The changes stay within issue #1800. The per-language provider IDs support independent settings. Moving getName() to LSPColorProvider and renaming the hints and color labels distinguish the two se…
Full details: Linked Issues check
Explanation
Issue #1800 requires a UI path to re-enable disabled Language Server inlay hints. LSPInlayHintsSettingsProvider is registered as an IntelliJ inlay settings provider. It discovers mapped languages, creates a model for each language, reads the stored enabled state, and persists changes through DeclarativeInlayHintsSettings. LanguageServersRegistry now assigns a provider ID per language. This exposes the provider in Settings > Editor > Inlay Hints and prevents one language setting from controlling another. The implementation also provides the requested labels.
Full details: Out of Scope Changes check
Explanation
The changes stay within issue #1800. The per-language provider IDs support independent settings. Moving getName() to LSPColorProvider and renaming the hints and color labels distinguish the two settings entries created by this fix. The plugin registration and localization changes support the settings UI.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 3 functions across 4 files. (3 skipped: 3 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Unverified finding
We couldn't verify this from the code. It is shown for review, not as a verified issue.
apply() persists the checkbox state but does not explicitly request an inlay-hint refresh; the new settings UI may therefore fail to restore hints in editors that are already open.
The checkbox shows enabled, but hints remain absent until another action causes the editor to recompute them.
This can occur when: A user re-enables a disabled language's hints in Settings while a file of that language remains open and unchanged.
Unverified finding
We couldn't verify this from the code. It is shown for review, not as a verified issue.
Registration replaces the former shared provider ID with language-specific IDs without a supplied migration for enabled-state values stored under the old ID.
LSP hints may reappear after the upgrade despite the user's disabled setting.
This can occur when: A user upgrades after disabling LSP hints through the context menu, leaving false stored for the former shared provider ID.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 2deb5482-a0bc-467a-ab08-c518161edaa4
Commits
Reviewing files that changed from the base of the PR and between 3c3b277 and e08d14f.
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.
❌ Patch coverage is 4.65116% with 41 lines in your changes missing coverage. Please review.
✅ Project coverage is 37.67%. Comparing base (3c3b277) to head (e08d14f).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1800
This PR provides settings (per language):
IntelliJ's DeclarativeHintsSettingsProvider only reads providers registered
via the direct codeInsight.declarativeInlayProvider EP, not those from factories. Since lsp4ij registers providers dynamically via a factory (languages are not known at compile time), the "Language Server" provider
did not appear in Settings > Editor > Inlay Hints, making it impossible to re-enable after disabling via the editor context menu.