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

Disable squiggles when coding #494

Open
mark-wiemer opened this issue Sep 2, 2024 · 4 comments
Open

Disable squiggles when coding #494

mark-wiemer opened this issue Sep 2, 2024 · 4 comments
Assignees
Labels
enhancement new feature or request

Comments

@mark-wiemer
Copy link
Member

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 mark-wiemer added the enhancement new feature or request label Sep 2, 2024
@mark-wiemer mark-wiemer self-assigned this Sep 2, 2024
@mark-wiemer mark-wiemer added this to AHK++ Sep 2, 2024
@iseahound
Copy link

iseahound commented Sep 7, 2024

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
Copy link

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. 🙂

@mark-wiemer
Copy link
Member Author

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
Copy link
Member Author

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

@mark-wiemer mark-wiemer moved this to Todo in AHK++ Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants