mark-wiemer-org / ahkpp

AutoHotkey Plus Plus (AHK++) - AutoHotkey v1 and v2 support for VS Code
https://marketplace.visualstudio.com/items?itemName=mark-wiemer.vscode-autohotkey-plus-plus
Other
152 stars 10 forks source link

Wrong indentation when moving line of code out of if-statement #403

Closed helperman closed 1 year ago

helperman commented 1 year ago

Description

There are few issues:

  1. Wrong indentation happens of a moved line of code when moving line of code out of if-statement.
  2. Wrong indentation happens of a surrounded code (if-statement itself become without indentation)

Reproduction steps

Steps to reproduce the behavior:

Use "move line up"-hotkey to move line out of if-statement: 0000000314

Expected behavior

The moved statement should keep the same indentation as if-statement. The if-statement should not change it's indentation.

Actual behavior

The moved statement has no indentation when moved before if-statement. The if-statement has no indentation after moving a line inside a body of if-statement.

mark-wiemer commented 1 year ago

Thanks for reporting, I'll track this as a duplicate of #319--this will be fixed when that one is.