Skip to content

Convert params to destructed object: Cannot apply refactoring  #58930

Closed as not planned

Description

@Tyriar

Repro:

  1. Go to buffer.ts
  2. Put cursor in static wrap
  3. ctrl+.
  4. Select convert params code action

Recording 2024-06-19 at 06 48 54

Activity

  1. removed their assignment
    on Jun 19, 2024
  2. RyanCavanaugh commented on Jun 20, 2024

    @RyanCavanaugh
    Member

    Daniel Imms (@Tyriar) please transcribe the screenshot, indicate where "buffer.ts" is, or provide an isolated repro. Thanks!

  3. RyanCavanaugh commented on Dec 3, 2025

    @RyanCavanaugh
    Member

    Closing language service bugs related to the 6.0 implementation. For more information, see #62827

  4. locked as resolved and limited conversation to collaborators on Dec 3, 2025
  5. mjbvz commented on Dec 8, 2025

    @mjbvz
    Contributor

    Daniel Imms (@Tyriar) Just wanting to add context that Convert params to destructed object refactoring likely won't be part of tsgo. It's a pretty complicated one and the usage numbers don't justify the work

    What we can explore though is if we can move refactorings like this to use copilot. With the right context and prompt, we may be able to generate pretty good edits that handle many of the edge cases the current code can't

    Opened microsoft/typescript-go#2281 to track this

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions