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
{{ message }}
Repository navigation
An inlay hint without a label is never resolved, and collecting it throws a NullPointerException #1822
An inlay hint without a label, which the server resolves with inlayHint/resolve, never shows, and collecting the hints throws a NullPointerException.
LSPInlayHintsSupport keeps a hint whose label is null when its server supports inlayHint/resolve, and starts the resolve (resolvedInlayHintsFuture in InlayHintData). But nothing reads that future for the label: LSPInlayHintsProvider.buildInlayHints reads inlayHint().getLabel() from the unresolved hint and calls label.isLeft() on null. The only other use of a resolve is the command of a clicked label part.
The label is required by the LSP specification, so only a server which leaves it out, relying on the resolve, is affected. LSPSupport.md says inlayHint/resolve is supported "for an inlay hint without a label".
Expected
LSP4IJ waits for the resolve of a hint without a label, as it waits for the hints, and shows the resolved hint, or drops it when the resolve fails or still has no label.
Activity
fix: resolve the label of an inlay hint which has none before showing…