'Visual Studio Code's "Run Test | Debug Test" option missing from unit tests

I used to see "Run Test | Debug Test" links top of every test function in VS Code for Go. But they are missing now. How can I re-enable them?

This picture shows what I am talking about:

enter image description here



Solution 1:[1]

Check your options to confirm that the Go test explorer is enabled:

  • Preferences > Settings > User Settings > find "go test enable code lens"

go test explorer

Sources

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

Source: Stack Overflow

Solution Source
Solution 1 TylerH