Skip to content

Can't rename method under golang #42

@orbatschow

Description

@orbatschow

Using the code below as an example, renaming foo works as expected, but trying to rename Bar changing just the Bar part of the input text does nothing.

package main

type foo struct{}

func (*foo) Bar() {
}

func main() {
	_ = foo{}
}

Deleting the input text (i.e. removing the trailing (*foo).) works.

Versions:

nvim: v0.9.4
outline: rev d073791
gopls: v0.14.2

old issue: simrat39/symbols-outline.nvim#175 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions