You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG: TS: Functionality Refactor: move to constant to existing file: if from that existing file already present import to current file, refactor will not reuse that import but instead adds new one
#59027
Functionality Refactor: move to constant to existing file: if from that existing file already present import to current file, refactor will not reuse that import but instead adds new one
Two files:
// File `a.ts`import{b}fromb.ts;consttest=2;
// File `b.ts`exportconstb=2;
Now use Refactor constant test from file a.ts to existing file b.ts.
ER
file a.ts should be:
// File `a.ts`import{b,test}fromb.ts;
file b.ts should be:
// File `b.ts`exportconstb=2;exportconsttest=2;
AR
file a.ts is:
// File `a.ts`import{b}fromb.ts;import{test}fromb.ts;// problem here: 2 imports from same file
file b.ts is:
// File `b.ts`exportconstb=2;exportconsttest=2;
The text was updated successfully, but these errors were encountered:
Does this issue occur when all extensions are disabled?: Yes
Version: 1.90.0 (user setup)
Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573
Steps to Reproduce:
Functionality
Refactor: move to
constant to existing file: if from that existing file already presentimport
to current file, refactor will not reuse that import but instead adds new oneRefactor
constanttest
from filea.ts
to existing fileb.ts
.ER
file
a.ts
should be:file
b.ts
should be:AR
file
a.ts
is:file
b.ts
is:The text was updated successfully, but these errors were encountered: