Skip to content

uber/vscode-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go with Bazel for Visual Studio Code

This version of the VS Code Go extension adds support for test, debug, and coverage using Bazel.

This is the Uber Go with Bazel extension (uber.go-bazel), which replaces the VS Code Go extension (golang.go). Both cannot be used at the same time. If you have installed both extensions, you must disable or uninstall one of them. For further guidance, read the documentation on how to disable an extension.

Getting Started

  • This version includes all features of the upstream version, with added Bazel functionality. Please disable the version from the VS Code Marketplace (golang.go) in order to avoid conflicts.
  • Update the following settings:
    • "go.testExplorer.indexEntireWorkspace": false (improves performance when working in a monorepo)
    • "go.testExplorer.useBazel": true (test and debug commands will use Bazel instead of the native Go toolchain)
  • To use Bazel for testing and debugging, open any *_test.go file, then navigate to the testing view. Click on the test or debug buttons for a package, file, or test case to get started.
  • To collect code coverage, toggle the Coverage Enabled / Coverage Disabled status bar button, then run the tests. Highlighting will appear on applicable files.

Other Info

  • This version has all features and settings of the upstream Go extension (currently up to version 0.39.1).

About

Go extension for Visual Studio Code, with added Bazel Support

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.8%
  • Go 4.4%
  • CSS 2.3%
  • Other 0.5%