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

Formatter adds indentation on "for" even if just a string #58

Closed
ewerybody opened this issue Nov 30, 2020 · 8 comments
Closed

Formatter adds indentation on "for" even if just a string #58

ewerybody opened this issue Nov 30, 2020 · 8 comments
Labels
bug Something isn't working formatter code formatter issues

Comments

@ewerybody
Copy link

Found:

try to format this:

InputBox, name, for bla
if somthing
    Return

it will turn to:

InputBox, name, for bla
    if somthing ; << indentation added!
    Return

Expected:

There is actually no change expected.
It seems to be triggered on the for keyword!

@FuPeiJiang
Copy link

if you need it now, I've fixed it in my fork, https://github.com/FuPeiJiang/vscode-autohotkey-plus-plus/tree/bad-for-indent
but pull requests are complicated...

should I commit the out folder ? (minified using Closure Compiler)

@ewerybody
Copy link
Author

Ah nice! But whats the problem, PRs not welcome or what?

@FuPeiJiang
Copy link

1st, I can't PR, my repo is a fork of a fork
I will PR to ahk++, since it's probably the most active ?

@ewerybody
Copy link
Author

Ah cool! I didn't know that! I just saw that this one here has the most downloads. ++ is still just in the hundreds. But I'll give it a spin :) thank you!

(also looking forward contributing to extensions myself ... currently I'm not into that)

@mark-wiemer
Copy link
Contributor

Hiya, maintainer of AHK++ here! I started the project in November when cweijan announced they (unsure of pronouns, sticking with neutral) had stopped development on AHK Plus. Clearly, they've picked it up again, which is great. I plan to work with them to figure out the best way forward for AHK Language Support in VS Code. In the meantime, I'll be working to merge changes to AHK Plus into AHK++ (along with additional changes to AHK++).

Looking forward to reviewing your PRs, feel free to ask for help any time :)

@ewerybody
Copy link
Author

Hey @mark-wiemer! Nice! Starting off a different Extension I imagine to be hard. But good you'd been talking tho. I'd be happy to help!

@mark-wiemer
Copy link
Contributor

If you still want this issue fixed, please open an issue in my fork, and I'll look into it! It's easier to track one repo only. I have been making some changes to the formatter recently, so something like this shouldn't be too hard. I'm prioritizing dev QoL right now (no new features or bugfixes, just refactors and adding tests), but I should be able to get to it in March at the latest

mark-wiemer added a commit that referenced this issue Nov 23, 2022
-   Fix indentation with parentheses again (sorry!) ([#58](mark-wiemer-org/ahkpp#58))
@mark-wiemer
Copy link
Contributor

Closed in v3 :)

@mark-wiemer mark-wiemer added bug Something isn't working formatter code formatter issues labels Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working formatter code formatter issues
Projects
None yet
Development

No branches or pull requests

3 participants