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

Organize Imports removes alias #47419

Closed
evanfuture opened this issue Apr 8, 2018 · 2 comments
Closed

Organize Imports removes alias #47419

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

Comments

@evanfuture
Copy link

  • VSCode Version: 1.22.1
  • OS Version: macOS 10.13.3

Steps to Reproduce:

  1. Given a file with these inputs:
import { Component } from '@angular/core';
import { AppState } from './app';
import * as application from 'tns-core-modules/application';
import { init as advancedWebviewInit } from 'nativescript-advanced-webview';
  1. Run Typescript: Organize Inputs

  2. What results is

import { Component } from '@angular/core';
import * as application from 'tns-core-modules/application';
import { AppState } from './app';

Not that the import * as application works fine, but import { init as advancedWebviewInit } is removed entirely. Yikes!

Does this issue occur when all extensions are disabled?: Yes

@vscodebot
Copy link

vscodebot bot commented Apr 8, 2018

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

mjbvz commented Apr 9, 2018

Duplicate of #47310

@mjbvz mjbvz marked this as a duplicate of #47362 Apr 9, 2018
@mjbvz mjbvz closed this as completed Apr 9, 2018
@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label Apr 9, 2018
@mjbvz mjbvz marked this as a duplicate of #47310 Apr 9, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators May 24, 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