'Vscode java inlay hints not showing for preferenced libraries

I enabled inlay hints for java, and it's working but only for the local classes and methods. When i imported a preferenced library, it doesn't showed the parameter name. Is it possible to enable something or download an extension to show the hints?

And that library is mine, so i can do anything with it to make it work.

This is a local class: enter image description here

And this is the main class: enter image description here



Solution 1:[1]

Because the source jars are needed to display the inlay hint. (The parameter names could not be resolved without sources)

The first thing you can do is try to go to the definition of a class from your referenced libraries, to check if you can see the source code or just some decompiled signatures. If you can see the source but the inlay hint is not showing, please file an issue in the GitHub repo.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sheng Chen