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

Indenting exports overwrites them and then undo doesn't work #2884

Closed
massimocode opened this issue Feb 10, 2016 · 3 comments
Closed

Indenting exports overwrites them and then undo doesn't work #2884

massimocode opened this issue Feb 10, 2016 · 3 comments

Comments

@massimocode
Copy link

I'm using the latest version of VS Code on OS X (Version 0.10.8 (0.10.8), db71ac6).

Replication steps:
Paste the following into a new whatever.ts file.

function foo() { }
function bar() { }
function baz() { }

export {
foo,
bar,
baz
};

Now highlight the properties of the export (the 3 lines saying foo, bar, baz) and press tab to indent them and it outputs the following and can't be undone using the undo command:

function foo() { }
function bar() { }
function baz() { }

export {
    az
};

The indenting seems to happen but where did my exports go?! 😮

@solidgoldpig
Copy link

I can replicate this (VS Code 0.10.8 (0.10.8), OSX 10.10.5)

Before updating I checked in 0.10.6, and the indentation resulted in the correct outcome.

@SamVerschueren
Copy link
Contributor

duplicate #2829

@egamma
Copy link
Member

egamma commented Feb 10, 2016

closing as a duplicate of #2829. Thanks @SamVerschueren

@egamma egamma closed this as completed Feb 10, 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

4 participants