Skip to content

Doesn't support rename refactoring with importing from a module (yarn workspaces) #31825

Description

@wclr

Ts 3.5.1

I use yarn workspaces in the project so may

./package/module folder is linked and available as @app/module

Say I have such file, that imports from the same module test

import { a, b } from '@app/module/test'
import { b } from './packages/module/test'

Then I rename file packages/module/test to test2

and refactoring does change our file to:

import { a, b } from '@app/module/test' // this is not
import { b } from '@app/module/test2' // this is renamed and put @app instead of `./packages`

Expected result would probably be:

import { a, b } from '@app/module/test2'
import { b } from './packages/module/test2'

If there would be importing only from '@app/module/test' it would not even suggest rename refactoring.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions