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

When organize JavaScript import, I lost alias imports #49109

Closed
Luchanso opened this issue May 3, 2018 · 2 comments
Closed

When organize JavaScript import, I lost alias imports #49109

Luchanso opened this issue May 3, 2018 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues

Comments

@Luchanso
Copy link

Luchanso commented May 3, 2018

When organize import, I lost alias imports

  • VSCode Version: 1.22.2 3aeede7 x64
  • OS Version: macOS 10.13.4 (17E199)

Steps to Reproduce:

  1. Typewrite code:
import { Component } from 'react';
import { test as secondTest } from 'second-test';
import test from 'test';

class TestClass extends Component {
    constructor() {
        test();
        secondTest();
    }
}

new TestClass();
  1. Cmd + Shift + P
  2. Choose: JavaScript: Organize Imports
  3. After you will miss this line:
import { test as secondTest } from 'second-test';

Gif preview:
vscode

Does this issue occur when all extensions are disabled?: Yes, I was try run with flag--disable-extensions

@vscodebot
Copy link

vscodebot bot commented May 3, 2018

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot assigned mjbvz May 3, 2018
@vscodebot vscodebot bot added the javascript JavaScript support issues label May 3, 2018
@mjbvz
Copy link
Contributor

mjbvz commented May 3, 2018

Duplicate of #48346. Fixed in VS Code insiders and in 1.23

@mjbvz mjbvz marked this as a duplicate of #48346 May 3, 2018
@mjbvz mjbvz closed this as completed May 3, 2018
@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label May 3, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) javascript JavaScript support issues
Projects
None yet
Development

No branches or pull requests

2 participants