DisposaBoy / GoSublime

A Golang plugin collection for SublimeText 3, providing code completion and other IDE-like features.
MIT License
3.42k stars 302 forks source link

import removed incorrectly #970

Open etsangsplk opened 4 years ago

etsangsplk commented 4 years ago

import "github.com/jessevdk/go-flags"

.... parser := flags.NewParser(server, flags.Default) .....

When I hit save the golang file, "github.com/jessevdk/go-flags" is removed.

I think "go-" is automatically ignored in during go build, so package with this prefix should not be removed as they are not "unsued".

DisposaBoy commented 4 years ago

That sounds like something goimports is doing - GoSublime/margo doesn't remove imports AFAIK.