'Why vscode removes golang script when doing save

I'm having trouble here when I want to save my golang project, where when I want to import "fmt" then I save the "fmt" script it disappears. then how do i fix it

setting.json (vscode) :

{
    "workbench.startupEditor" : "newUntitledFile",
    "workbench.iconTheme" : "vscode-icons",
    "security.workspace.trust.untrustedFiles": "open",
    "editor.suggestSelection" : "first",
    "vsintelllicode.modify.editor.suggestSelection":"automatically",
    "workbench.colorTheme":"Material Theme Ocean",
    "vsicons.dontShowNewVersionMessage":"true"
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source