Skip to content

Move to new file causes inconsistent quote style #24605

@mjbvz

Description

@mjbvz

From @octref on May 29, 2018 14:51

#50486

My setting:

"typescript.preferences.quoteStyle": "auto"

Have file a.ts:

import { bar } from './b';

function foo() {
  bar()
}

foo()

b.ts:

export function bar() {

}

Run Move to new file on the foo function.

a.ts becomes:

import { foo } from "./foo";



foo()

foo.ts becomes:

import { bar } from './b';
export function foo() {
  bar();
}

The import statements have different quoting style.

Copied from original issue: microsoft/vscode#50680

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions