简体   繁体   English

Vscode java 嵌体提示未显示为首选库

[英]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.我为 java 启用了 inlay hints,它正在工作,但仅适用于本地类和方法。 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:这是一个本地 class: 在此处输入图像描述

And this is the main class:这是主要的 class: 在此处输入图像描述

Because the source jars are needed to display the inlay hint.因为显示inlay hint需要source jars。 (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.您可以做的第一件事是尝试从您引用的库中将 go 转换为 class 的定义,以检查您是否可以看到源代码或只是一些反编译的签名。 If you can see the source but the inlay hint is not showing, please file an issue in the GitHub repo.如果您可以看到源代码但未显示 inlay 提示,请在 GitHub 存储库中提交问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM