Skip to content

Incorrect dialog box default value for rename of es6 module imports #4970

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

Closed
falsandtru opened this issue Sep 25, 2015 · 1 comment
Closed
Labels
Bug A bug in TypeScript
Milestone

Comments

@falsandtru
Copy link
Contributor

expected

// self.ts
// Dialog box default value is `g`
export default function () { }
import g from './self';

// Dialog box default value is `g`
export default function f() { }
import g from './self';

// Dialog box default value is `g`
export default function () { }
import { default as g } from './self';

// Dialog box default value is `g`
export default function f() { }
import { default as g } from './self';

// Dialog box default value is `g`
export function f() { }
import { f as g } from './self';

actual

// self.ts
// Dialog box default value is `default`
export default function () { }
import g from './self';

// Dialog box default value is `f`
export default function f() { }
import g from './self';

// Dialog box default value is `default`
export default function () { }
import { default as g } from './self';

// Dialog box default value is `f`
export default function f() { }
import { default as g } from './self';

// Dialog box default value is `f`
export function f() { }
import { f as g } from './self';

Visual Studio 2013

@Andarist
Copy link
Contributor

Andarist commented Aug 2, 2023

I tested all of the presented test cases in the current version of VS Code and can't repro it anymore. The issue is ancient an can be closed, cc @jakebailey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

6 participants