Skip to content

Some renames are not supported #144

Closed

Description

@DanTup

Splitting this from #31 so we can ship what we have. We abort some refactorings because the AS does something that is not obvious based on the experience in code. Eg:

import 'dart:async';

Put your cursor on import and hit F2 and you'll get a box pre-filled with import. Yet what you type in here is used to add an alias.

Once microsoft/vscode#7340 gets implemented we can send a dummy refactor and examine oldName in order to pre-populate the box properly and resolve this. If dart-lang/sdk#27178 gets implemented, then we can remove the hack.

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Aug 28, 2016
  2. added this to the v1.0 milestone on Aug 28, 2016
  3. DanTup commented on Aug 28, 2016

    @DanTup
    MemberAuthor

    Seems like we don't need to send a "dummy" refactor to get the oldName, there's a validateOnly param specifically for us to send requests and see if they're valid and also get oldName and a description of the item being renamed.

    So once Code supports this properly, we have everything we need for a good implementation, no hacks required! :)

  4. modified the milestones: , v1.1 on Mar 24, 2017
  5. added
    good first issue :octocat:A relatively straight forward issue that could be done by a new contributor
    and removed on May 17, 2017
  6. modified the milestones: , on May 17, 2017
  7. added and removed
    good first issue :octocat:A relatively straight forward issue that could be done by a new contributor
    on May 17, 2017
  8. added this to the milestone on May 17, 2017
  9. 3 remaining items

  10. DanTup commented on Feb 8, 2018

    @DanTup
    MemberAuthor

    Looks like Code might be getting support for this:

    https://code.visualstudio.com/updates/v1_20#_renameprovider2

  11. added this to the v3.0.0 milestone on Feb 8, 2018
  12. modified the milestones: v2.10.0, v2.11.0 on Mar 4, 2018
  13. modified the milestones: v2.11.0, On Deck on Mar 14, 2018
  14. modified the milestones: On Deck, Backlog on Mar 29, 2018
  15. modified the milestones: Backlog, v2.13.0 on Apr 17, 2018
  16. added 3 commits that reference this issue on Apr 27, 2018
    eb97ef8
    f71d73f
    2e88431
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

    in editorRelates to code editing or language featuresis enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions