Skip to content

Formatting adding trailing newline clears last line #690

Description

@carlpett
  • OS and language server
    Linux + Gopls
  • How you installed LSP (Package Control or from git?)
    Package Control
  • Minimal reproduction steps
package main

import (
	"fmt"
)

func main() {
	fmt.Println("Hello, world")
} // No newline!

Format

package main

import (
	"fmt"
)

func main() {
	fmt.Println("Hello, world")
  • Log
    No diagnostic output.

Initially reported to gopls, but they pointed out that the gopls commandline does the right thing.

Is this a LSP issue or Sublime itself?
Let me know if I can provide any other helpful information!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    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