ReSharper deletes used imports after code cleanup

I'm developing an Angular 4 app and I have the following imports:

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

    import { Http } from '@angular/http';

    import { Observable } from 'rxjs/Observable';

    import { MyObject } from '../../models/shared/my-object';

 

After code cleanup only the last import is left, the others are removed. Is this a bug or should I reconfigure something in the settings? The only changes I've made in my settings are as per this post and I also enabled Angular in HTML but that is not important here.

 

0
3 comments

Hello!

 

Thank you for contacting us.

Could you please try to install ReSharper 2017.2 latest EAP build -https://www.jetbrains.com/resharper/eap/  and check if the problem is still reproduced.

Thank you.

0

This issue seems to be back, I am now using VS 17.4.4 and Resharper 2022.3.1

0

Hello Dule Elud,

Do I understand correctly that you have enabled ts/js support option in ReSharper?

Could you please provide a sample solution in which the problem is reproduced (via our upload service)? 

Thank you.

 

0

Please sign in to leave a comment.