You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Feature Request]
Hi,
I thought it could be handy having autocompletion & syntax checking when calling a function with inline macro. Example:
Let's say I have the function:
/// Setup for spawning crystals
dispatch mcdoc:function["player_motion:internal/summon/crystal"] to struct{
/// distance from crystal
d: float,
/// distance from conditional crystals
full_d: float
}
The idea is that we would get error warning in those scenarios:
function player_motion:internal/summon/crystal {d:4.0} -> missing argument full_d
function player_motion:internal/summon/crystal {d:{foo:"bar"},full_d:3.0} -> expected a float (hovering over {foo:"bar"})
Also, when hovering over either d or full_d, we would see the comments written above in the mcdoc, just like how mcdoc currently works.
In conclusion, this would be a really nice tool to:
Prevent misspelling mistakes when calling our own functions
Enhance librairies that have API functions called with macros, so that users can be certain they put the right macro arguments
Accelerate developpement process thanks to autocompletion.
The text was updated successfully, but these errors were encountered:
[Feature Request]
Hi,
I thought it could be handy having autocompletion & syntax checking when calling a function with inline macro.
Example:
Let's say I have the function:
And this mcdoc snippet in my workspace:
The idea is that we would get error warning in those scenarios:
function player_motion:internal/summon/crystal {d:4.0}
-> missing argumentfull_d
function player_motion:internal/summon/crystal {d:{foo:"bar"},full_d:3.0}
-> expected a float (hovering over{foo:"bar"}
)Also, when hovering over either
d
orfull_d
, we would see the comments written above in the mcdoc, just like how mcdoc currently works.In conclusion, this would be a really nice tool to:
The text was updated successfully, but these errors were encountered: