Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSDoc@enum Indicates whether jsdoc@enum is supported? #380

Closed
Github-Jackson opened this issue Sep 6, 2023 · 5 comments
Closed

JSDoc@enum Indicates whether jsdoc@enum is supported? #380

Github-Jackson opened this issue Sep 6, 2023 · 5 comments

Comments

@Github-Jackson
Copy link

image
Is there any way to enumerate the parameter values of the function like the built-in function shown in the above figure?
I tried @enum,@typedef and they didn't work

/**
 * @param {'one'|'twe'} Enum 
 */
TestFn(Enum){
}

This extension is really great, DLLCall can parse DLL exported functions!
Is there any way to enable my encapsulated function (NativeCall) to have similar code suggestions?
image

thqby added a commit that referenced this issue Sep 8, 2023
@thqby
Copy link
Owner

thqby commented Sep 8, 2023

Is there any way to enable my encapsulated function (NativeCall) to have similar code suggestions?

No

@thqby thqby closed this as completed Sep 9, 2023
@Github-Jackson
Copy link
Author

Thank you! enum is already supported, but doesn't seem to work in Parameter Hints.
Parameter Hints : The Parameter suggestion mode that vscode triggers when calling a method, and the ctrl+shift+space Trigger Parameter Hints.
image

Exit Parameter suggestion mode works fine!
image

thqby added a commit that referenced this issue Sep 10, 2023
@Github-Jackson
Copy link
Author

enum in #include script does not seem to work.

;-----EnumDoc.ahk------
/** @param {'one'|'twe'} Flags  */
TestEnum(Flags){
}
;-----main.ahk-----
#Include EnumDoc.ahk
TestEnum('') /** lost enum hint*/

image

@thqby
Copy link
Owner

thqby commented Sep 15, 2023

image

@Github-Jackson
Copy link
Author

image

In my current extension(v2.1.5) environment, I can provide suggest normally after restarting vscode. Then typing a new code, enum, won't work.
Maybe the Fixed #380 7934025 update won't have this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants