YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
11 stars 4 forks source link

Feather: jsDoc comment @param shows enum type as Struct in hover info #5772

Open falansari opened 1 week ago

falansari commented 1 week ago

Description

In the @param {type} variable jsDoc syntax, when marking the variable's type as {enum} the feather hover information shows it as Struct instead.

Steps To Reproduce

Sample code (hover over it to see event marked as Struct instead of enum or Real):

/// @func pubsub_subscribe(event, func); /// @desc Subscribe to an event. Returns whether the event was subscribed to successfully. /// @param {enum} _event Event to subscribe to. /// @param {function} _func Anonymous function for what will the event do when fired. /// @returns Bool function pubsub_subscribe(_event, _func) { with (o_pubsub_manager) { subscribe(other.id, _event, _func); return true; }

return false;

}

Which version of GameMaker are you reporting this issue for?

IDE v2024.4.0.137 Runtime v2024.4.0.168

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

ab9ab0f4-1163-4cf0-b7c0-5f3d460d598c