Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to quality all imports for a given import #17209

Open
jun-sheaf opened this issue May 9, 2024 · 0 comments
Open

Ability to quality all imports for a given import #17209

jun-sheaf opened this issue May 9, 2024 · 0 comments
Labels
C-feature Category: feature request

Comments

@jun-sheaf
Copy link

jun-sheaf commented May 9, 2024

When working with a large codebase with many different types, types often need to be aliased or partially/fully qualified to distinguish it from a different type of the same name.

For example,

use geo::Point;
use a::b::generated::Point;

let x: Point; // Eh? Which one?

User flows

This issue proposes the following flow:

Replace use with qualified path

For qualifying a useed type, one would:

  1. Right-click a used type.
  2. Click "Replace use with qualified path".
  3. Observe that all imports are fully qualified.
@jun-sheaf jun-sheaf added the C-feature Category: feature request label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

1 participant