Skip to content

TypeScript VsCode Refactoring Line Break is not Respected #23151

Closed

Description

TypeScript Version: 2.8.1 (VsCode and the tsconfig.json)

Search Terms: refactoring, import, typescript

Code

import * as React from "react";
import { connect } from "react-redux";

From there, in VsCode, you will get "..." to suggest to refactor the React import. If you agree, the "react-redux" will get into the same line of react like this:

import React from "react";import { connect } from "react-redux";

2018-04-04_10-53-28

Expected behavior: To keep the line break

Actual behavior: Change the line with the refactor of the import and bring the next line to the refactored one

Playground Link: https://twitter.com/mrdesjardins/status/981591251110707200

Related Issues:

Activity

  1. ghost closed this as completedon May 31, 2018
  2. ghost added
    FixedA PR has been merged for this issue
    on May 31, 2018
  3. locked and limited conversation to collaborators on Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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