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

Recently error when functions have param default as an empty object. #679

Open
cycle4passion opened this issue Jan 29, 2025 · 1 comment

Comments

@cycle4passion
Copy link

cycle4passion commented Jan 29, 2025

Just seemed to happen in last few days. I see red squiggles across function definition line, highlight shows "Invalid parameter definition". Code runs fine. If extension is disabled, squiggles dissappear.

; Code which illustrates.

ft(opts := {}) { 
 msgbox("here")
}
@thqby
Copy link
Owner

thqby commented Jan 29, 2025

%USERPROFILE%.vscode\extensions\thqby.vscode-autohotkey2-lsp-2.6.1\server\dist\server.js
replace case"TK_START_BLOCK":if(!o.data) to case"TK_START_BLOCK":if(!Q||!o.data)

Or use the following form.

ft(opts := ({})) { 
 msgbox("here")
}

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