Skip to content

TypeScript VsCode Refactoring Line Break is not Respected #23151

@MrDesjardins

Description

@MrDesjardins

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:

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