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
Some __New meta function are missing from the ahk2.d.ahk. For example:
class MyHook extends InputHook {
__New() {
super.__New("L1")
}
}
results in __New being highlighted with the message Class 'InputHook' might not have member '__New'.
I guess it was missing because not in the documentation? For the other classes I've checked, __New was recognized by the extension if and only if it was explicitly mentioned in the documentation.
Possible solutions
If I'm not mistaken, every object class has a tacit __New(…) method, and its signature and description can be directly copied from its Call(…) method, except it returns nothing. So I guess it could be used to generate the missing __New(…) methods.
Alternatively, it seems like thqby's vscode-autohotkey2-lsp currently include those __New(…) methods. At least it does for InputHook.
The text was updated successfully, but these errors were encountered:
(GitHub UX is being a bit wonky with project links appearing right now, as I recently moved the repo out of mark-wiemer-org and into mark-wiemer, but didn't move the project. Ref AHK++ project for those that want to track priority of this issue)
Issue
Some
__New
meta function are missing from theahk2.d.ahk
. For example:results in
__New
being highlighted with the messageClass 'InputHook' might not have member '__New'
.I guess it was missing because not in the documentation? For the other classes I've checked,
__New
was recognized by the extension if and only if it was explicitly mentioned in the documentation.Possible solutions
If I'm not mistaken, every object class has a tacit
__New(…)
method, and its signature and description can be directly copied from itsCall(…)
method, except it returns nothing. So I guess it could be used to generate the missing__New(…)
methods.Alternatively, it seems like
thqby
'svscode-autohotkey2-lsp
currently include those__New(…)
methods. At least it does forInputHook
.The text was updated successfully, but these errors were encountered: