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

[Bug] Using the Tab key to indent messes the code #4473

Closed
pedroassis opened this issue Mar 20, 2016 · 1 comment
Closed

[Bug] Using the Tab key to indent messes the code #4473

pedroassis opened this issue Mar 20, 2016 · 1 comment

Comments

@pedroassis
Copy link

  • VSCode Version: 0.10.8 (0.10.8)
  • OS Version: OS X EL Capitan 10.11

Steps to Reproduce:

  1. Select the try block in following the code
  2. Hit tab
  3. Hit Command+z

Code:

function discoverTimeZone(lead, phone) {
    try {
        lead.timezone = timezoneHelper.getTimeZoneForNumber(lead[phone]);
    } catch (e) {
        lead.penalty = 1;
    }
}

This bug happens in other pieces of code, there is no way of undo the change with Command+z which makes it even worse. Command+Shift+z also does not help.

The workaround is to pray you saved the file in the right time, close the file from the recent files, pray once more, and open the file again.

vsbug

Its even worse when the block of code is bigger, the code is left much more messed up. The above example you can still make sense of whats left of the code.

@Tyriar
Copy link
Member

Tyriar commented Mar 20, 2016

Updating vscode will fix this issue. I think it was this one: #2829

@Tyriar Tyriar closed this as completed Mar 20, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants