ts-importer icon indicating copy to clipboard operation
ts-importer copied to clipboard

import statements are broken if the final import item contains a line break

Open angelfraga opened this issue 6 years ago • 0 comments

if the final import item contains a line break, the new import will corrupt it by being added inside the brackets.

import { 
    Component
} from '@angular/core';

@Component()
class Test {
}

And then you add another one, for example, Subject

import {
import { Subject } from 'rxjs';
  Component
} from '@angular/core';

@Component()
class Test {
  property: Subject
}

angelfraga avatar Apr 23 '18 11:04 angelfraga