`workspace/willRenameFiles` doesn't contain RenameFile part · Issue #2523 · phpactor/phpactor · GitHub
Skip to content

workspace/willRenameFiles doesn't contain RenameFile part #2523

Description

@przepompownia

To see the response I must create the destination file first... (see #2522) After that I get

out = {
  [2] = {
    result = {
      documentChanges = { {
          edits = { {
              newText = "Arctgx\\PhpactorAttrCompletion\\X",
              range = {
                ["end"] = {
                  character = 37,
                  line = 4
                },
                start = {
                  character = 4,
                  line = 4
                }
              }
            }, {
              newText = "X",
              range = {
                ["end"] = {
                  character = 24,
                  line = 6
                },
                start = {
                  character = 21,
                  line = 6
                }
              }
            } },
          textDocument = {
            uri = "file:///home/arctgx/dev/arctgx/php/phpactor-attr-completion/src/SubFoo.php",
            version = 0
          }
        }, {
          edits = { {
              newText = "Arctgx\\PhpactorAttrCompletion\\X",
              range = {
                ["end"] = {
                  character = 37,
                  line = 4
                },
                start = {
                  character = 4,
                  line = 4
                }
              }
            }, {
              newText = "X",
              range = {
                ["end"] = {
                  character = 20,
                  line = 18
                },
                start = {
                  character = 17,
                  line = 18
                }
              }
            } },
          textDocument = {
            uri = "file:///home/arctgx/dev/arctgx/php/phpactor-attr-completion/src/Service/NextHandler.php",
            version = 0
          }
        } }
    }
  }
}

i.e. it has no RenameFile section - like in #1366

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions