-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Request: When passing a GUI to a for-loop, have the values be marked as Gui.Control
type.
#486
Comments
This statement is not supported at present. You can mark the variable type.
|
I'm aware that you can premark a variable with a tag. |
vscode-autohotkey2-lsp/syntaxes/ahk2.d.ahk Lines 3537 to 3610 in d16848c
See |
Would you please consider updating the addon so when a gui object is passed to a for-loop, it treats the provided values as
Gui.Control
objects.This would provide the proper methods and properties to those values when used in the for-loops code block.
Example:
However, when the controls are gotten from the for-loop, the addon assigns no "type" to them, preventing autocomplete from activating and populating with the properties and methods of the
Gui.Control
class:Obviously, it would be difficult to determine each individual control's type, such as
Gui.Button
orGui.Edit
, but they could blanket-labeled asGui.Control
types, thus providing the basic properties and methods that all gui controls possess.The text was updated successfully, but these errors were encountered: