YellowHuan
YellowHuan

Reputation: 25

How can vscode stop send error notifications?

I am doing leetcode exercises on vscode, using this extension:

enter image description here

However vscode keeps sending error notifications about the golang codes written locally lack of main module

enter image description here

How can I disable vscode error notifications? As those golang codes are used to run remotely, so there are no needs to compile locally

Upvotes: 1

Views: 552

Answers (1)

VonC
VonC

Reputation: 1323773

Check first if you can disable the Go extension, just for your current (leetcode) workspace.

If you don't want to permanently remove an extension, you can instead temporarily disable the extension by clicking the gear button at the right of an extension entry.
You can disable an extension globally or just for your current Workspace.
You will be prompted to reload VS Code after you disable an extension.

By disabling it just for the workspace, you can still use Go for Go projects in a separate workspace in the same VSCode.

Upvotes: 1

Related Questions