Skip to content

Better file renaming experience #258

Closed

Description

@amiralies

aside from #254 which adds support for renaming files on usage side, there are other options to improve file renaming experience.

  • vscode/lsp supports a notification on file renaming. (client sends a file-renamed event to server) we can ask user to rename the module usages or rename usages directly.

  • add a command (like the one we have for creating interface) to rename a module.

Activity

  1. cristianoc commented on Jun 6, 2021

    @cristianoc
    Collaborator

    @amiralies do you think the current excellent functionality for renaming is lacking?
    Even if one were to add a specific command to rename a module, users would need to first imagine that such a command exists, and then discover it. Not sure about the overall value.

  2. added
    enhancement
    on Jun 6, 2021
  3. amiralies commented on Jun 6, 2021

    @amiralies
    ContributorAuthor

    Yeah i'm not sure about that too.
    but currently there's no way to rename a module semantically from the module (file) itself.

    The notification way may be more useful.
    Scenario:

    • User renames the file
    • a popup asks the user if he wants to rename references to that file

    but i'm not sure if it's possible to implement since the compiler tries to compile renamed module immediatly.

  4. added a commit that references this issue on Jun 6, 2021
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions