@Override the hintsLayerNameFor method to display the errors and hints in the NetBeans IDE

This commit is contained in:
Jaroslav Tulach 2024-08-11 08:30:43 +00:00
parent 0f5a3a78b1
commit cbae42b1e8

View File

@ -21,6 +21,14 @@ public final class EnsoErrorProvider implements ErrorProvider {
private static final Logger LOG = Logger.getLogger(EnsoErrorProvider.class.getName());
/** @Override */
public String hintsLayerNameFor(Kind kind) {
return switch (kind) {
case ERRORS -> "lsp:errors";
case HINTS -> "lsp:hints";
};
}
@Override
public List<? extends Diagnostic> computeErrors(Context ctx) {
var arr = new ArrayList<Diagnostic>();