Skip to content

Move to new file refactoring does not observe quoteStyle preference #24363

Description

@mjbvz

TypeScript Version: 2.9.1-dev.20180521

Search Terms:

  • Move file refactoring

Code

  1. In VS Code, configure "typescript.preferences.quoteStyle": "single"

  2. For a ts file:

class Foo { }

console.log(new Foo())
  1. Run move to new file on Foo

Expected behavior:
Created import uses single quotes:

import { Foo } from './Foo';

console.log(new Foo())

Actual behavior:
Added import uses double quotes:

import { Foo } from "./Foo";

console.log(new Foo())

I confirmed that we do configure the quoteStyle before requesting the refactorings

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