Skip to content

LSP Fill struct code action doesn't work (golang) #1299

Description

@matoous

Fill XXX code action for golang doesn't do anything.

Reproduction steps

Create main.go file with following content:

package main

type X struct {
	Y string
}

func main() {
	x := X{}
}

place cursor inside the brackets of X{}, press space + a, select Fill X code action.

Environment

  • Platform: macOS
  • Helix version: helix 0.5.0
Helix log is empty. 2021-12-18T22:45:55.225 helix_lsp::transport [ERROR] err: <- StreamClosed

I tried to find more details but without much success so above reproduction steps is all I currently have. Will try to find out more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-language-serverArea: Language server clientC-bugCategory: This is a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions