[go-nuts] Re: VSCode keeps deleting my import line

2025-11-18 Thread cub...@gmail.com
Tuesday, November 18, 2025 at 12:48:55 PM UTC-6 [email protected] wrote: > Hi. I type > > import "github.com/zalando/go-keyring" > > and save, and VSCode deletes my line. > > I know why it's doing it. I haven't yet used the library in my routine, > and I

[go-nuts] VSCode keeps deleting my import line

2025-11-18 Thread cub...@gmail.com
Hi. I type import "github.com/zalando/go-keyring" and save, and VSCode deletes my line. I know why it's doing it. I haven't yet used the library in my routine, and I have yet added the library to my go.mod file. But I want it to inform me of the problem, and leave it to me to fix it!

[go-nuts] Re: VSCode keeps deleting my import line

2025-12-12 Thread cub...@gmail.com
This is really similar to what Robert Engels said, and may be the same thing. Anyway, this definitely works in VSCode to have the editor leave your file along when you save to disk. Ha! Problem solved. (And I am so embarrassed)In the documentation for the extension, they document exactly