mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 21:17:32 +00:00
Removed declaration from unresolved token hover infos
This commit is contained in:
1 parent
a7ed8549a9
commit
4d670f31de
1 file changed
+6
-1
+6
-1
@@ -723,7 +723,12 @@ public class TokenHoverInfo {
|
||||
|
||||
public String getPackageName() { return packageName; }
|
||||
public String getIconIndicator() { return iconIndicator; }
|
||||
public List<TextSegment> getDeclaration() { return declaration; }
|
||||
|
||||
public List<TextSegment> getDeclaration() {
|
||||
if (getErrors().stream().anyMatch(err -> err.contains("Cannot resolve")))
|
||||
return new ArrayList<>();
|
||||
return declaration;
|
||||
}
|
||||
public List<String> getDocumentation() { return documentation; }
|
||||
public List<String> getErrors() { return errors; }
|
||||
public List<String> getAdditionalInfo() { return additionalInfo; }
|
||||
|
||||
Reference in new issue
Block a user