Open
Description
Does this issue occur when all extensions are disabled?: Yes
Version: 1.97.2 (user setup)
Commit: e54c774
Steps to Reproduce:
- TS File with name
original.ts
:
/**
* Description
*/
export const NAME1 = 3;
- Use
Refactor: move to file
for previously created new empty filetest.ts
- Bug 1: in new
test.ts
we have one empty line between JSDoc andconst NAME1
:
/**
* Description
*/
<--------------------------- BUG 1: WHY new empty LINE here?
export const NAME1 = 3;
- Lets back to
original.ts
and move another constant totest.ts
from file we moved first constant (original.ts
), after same use case intest.ts
file where we moved 2 constants formatting will be weird:
/**
* Description
*/
<--------------------------- BUG 1: WHY new empty LINE here?
export const NAME1 = 3;/**<--------------------------- BUG 2: WHY JSDoc is at end of const declaration?
* Description of second constant
*/
export const NAME2 = 2;
BUG 2: JSDoc of second constant jumps at end of first constant.
5. BUG 3: Lets look at other file that had imports for these constants, now they have TWO imports from file test.ts
where we moved 2 constants (must be 1 import).
import { NAME1 } from '../../test';
import { NAME2 } from '../../test'; <--------------------------- BUG 3: WHY TWO imports from same file?
Other files are corrupted too.
Metadata
Metadata
Assignees
Labels
No labels