Skip to content

Extract variable/function. #662

Closed
Closed

Description

@LinArcX

Hi. is it possible to add extract variables/functions to LSP?

Activity

  1. yaohaizh commented on Jan 21, 2019

    @yaohaizh

    In our Java implementation, base on code action kind of ""refactor.extract, we added the following kinds in this files to differentiate variables/functions.
    https://github.com/eclipse/eclipse.jdt.ls/blob/master/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/JavaCodeActionKind.java

  2. dbaeumer commented on Jan 21, 2019

    @dbaeumer
    Member

    SOmething like extract variable / function should be provided via code actions. LinArcX objection to close this issue.

  3. added
    info-needed
    on Jan 21, 2019
  4. LinArcX commented on Jan 21, 2019

    @LinArcX
    Author

    Dirk Bäumer (@dbaeumer) who should provide this functionality? Yes it will be added to code actions.

  5. rcjsuen commented on Jan 21, 2019

    @rcjsuen
    Contributor

    LinArcX The server should make it known to the client that it supports such kinds of refactoring code actions.

  6. dbaeumer commented on Jan 25, 2019

    @dbaeumer
    Member

    Remy Suen (@rcjsuen) is correct. See the CodeActionKinds which have support for refactorings without user input.

    OK to close ?

  7. vscodebot commented on Feb 1, 2019

    @vscodebot

    This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

    Happy Coding!

  8. locked and limited conversation to collaborators on Mar 18, 2019
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

    info-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions