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

IntelliSense completion of property string values #518

Closed
marium0505 opened this issue May 26, 2024 · 5 comments
Closed

IntelliSense completion of property string values #518

marium0505 opened this issue May 26, 2024 · 5 comments

Comments

@marium0505
Copy link

Hey,

First off, I love your extension. It makes coding in AHK both more fun and much easier. Thank you!

By using Jsdoc, we can specify a lot of information about functions and more. For instance, we can let the user select between multiple strings when writing function parameters by using @ tag. However, it seems like we can't do the same for class properties.

See the screenshot below:
image

I get the autocomplete for the values of the function parameter, but not when trying to set the value of the PropertyName property. Am I doing something wrong, or isn't the latter supported? If it isn't supported, is there any chance it can be added?

Thanks!

@thqby
Copy link
Owner

thqby commented May 29, 2024

This is not supported. Annotations in variables also do not support this type of completion.

/** @type {'a'|'b'}
var := ''

@marium0505
Copy link
Author

@thqby Thank you for the reply I see.
Not supported as in not supported by your extension or not possible at all in VS Code (by any extension)?

@thqby
Copy link
Owner

thqby commented Jun 5, 2024

Typescript supports this feature. I will support this feature in a later version.

@marium0505
Copy link
Author

Typescript supports this feature. I will support this feature in a later version.

Awesome! 👍🏼
Thank you for your work and your time! 🙂

thqby added a commit that referenced this issue Jun 25, 2024
@marium0505
Copy link
Author

Thanks, it works!

Closing this! :)

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