Show 'function' instead of 'void' or other return type for hover info of JS method declarations

This commit is contained in:
bigguy345 committed 2026-02-24 21:34:18 +02:00
1 parent a107e045eb
commit 95897dc746
1 file changed
+3 -1
@@ -1125,7 +1125,9 @@ public class TokenHoverInfo {
// Return type
TypeInfo returnType = methodInfo.getReturnType();
if (returnType != null) {
if (ScriptDocument.INSTANCE.isJavaScript())
addSegment("function ", TokenType.KEYWORD.getHexColor());
else if (returnType != null) {
addTypeSegments(returnType);
addSegment(" ", TokenType.DEFAULT.getHexColor());
} else {