ahkpp icon indicating copy to clipboard operation
ahkpp copied to clipboard

Disable squiggles when coding

Open mark-wiemer opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe. Squiggles are distracting when I'm coding

Describe the solution you'd like Use a command to show errors, but not squiggles

Describe alternatives you've considered Not using the extension, disabling warnings

Additional context From @iseahound on Discord: https://discord.com/channels/115993023636176902/482610538350903309/1280285045571190785

mark-wiemer avatar Sep 02 '24 21:09 mark-wiemer

I have to say this is much more annoying than I expected. Didn't realize there were warning yellow squiggles too. I'm surprised no one else is bothered by this since it goes through all my code snippets and informs me they're incorrect. They're just code snippets with an ahk extension, should probably change them to a .txt then.

Most of the errors are actually incorrect. If I have one main script, and two includes. A and B, if in file A I use a function from file B, this would be correct. Yellow namespacing errors can't be conclusive due to the convex nature of AHK includes.

As a followup you seem to have included autocomplete, and because you haven't verified the function list for correctness, typing part of a function and ( will complete to an incorrect function. For example, in File A I have the func abc, and in file B, I've defined abcdefghij. Every time I type abc + ( I'll get the rest of the alphabet to j. This is due to the fact that in file B, there are no includes, and file A and B are included in main.ahk. Therefore what should be valid behavior in AHK leads to annyances while typing.

Since this extension is now actively trying to sabotage me, I'll have to uninstall.

iseahound avatar Sep 07 '24 22:09 iseahound

Hopefully my comment didn't sound mean! It's hard to program when my keystrokes and what appears on screen are different. Thanks for updating the extension. 🙂

iseahound avatar Sep 07 '24 22:09 iseahound

No worries, I have thick skin @iseahound and I know it's nothing personal :)

Yellow namespacing errors can't be conclusive due to the convex nature of AHK includes.

This is very true! It's provided by this line of code and I should be able to configure a setting to disable this :)

https://github.com/mark-wiemer-org/vscode-autohotkey2-lsp/blob/a99fd09eb55b6516bc3f334f5bea41ed9dec62c2/server/src/symbolProvider.ts#L60

mark-wiemer avatar Sep 17 '24 04:09 mark-wiemer

Thanks for the reports, @iseahound, I hope you'll watch for updates and consider re-installing :)

mark-wiemer avatar Sep 17 '24 04:09 mark-wiemer