Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Update Readme and install logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Nov 20, 2016
1 parent 73dbfc4 commit 8fb8dbc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ Read the [Release Notes](https://github.com/Microsoft/vscode-go/wiki/Release-Not
This extension adds rich language support for the Go language to VS Code, including:

- Completion Lists (using `gocode`)
- Signature Help (using `godoc`)
- Signature Help (using `gogetdoc` or `godef`+`godoc`)
- Snippets
- Quick Info (using `gogetdoc`)
- Goto Definition (using `gogetdoc`)
- Quick Info (using `gogetdoc` or `godef`+`godoc`)
- Goto Definition (using `gogetdoc` or `godef`+`godoc`)
- Find References (using `guru`)
- File outline (using `go-outline`)
- Workspace symbol search (using `go-symbols`)
Expand Down Expand Up @@ -198,6 +198,7 @@ To debug the debugger, see [the debugAdapter readme](src/debugAdapter/Readme.md)
The extension uses the following tools, installed in the current GOPATH. If any tools are missing, you will see an "Analysis Tools Missing" warning in the bottom right corner of the editor. Clicking it will offer to install the missing tools for you.

- gocode: `go get -u -v github.com/nsf/gocode`
- godef: `go get -u -v github.com/rogpeppe/godef`
- gogetdoc: `go get -u -v github.com/zmb3/gogetdoc`
- golint: `go get -u -v github.com/golang/lint/golint`
- go-outline: `go get -u -v github.com/lukehoban/go-outline`
Expand All @@ -211,6 +212,7 @@ The extension uses the following tools, installed in the current GOPATH. If any
To install them just paste and run:
```bash
go get -u -v github.com/nsf/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v github.com/zmb3/gogetdoc
go get -u -v github.com/golang/lint/golint
go get -u -v github.com/lukehoban/go-outline
Expand Down
8 changes: 7 additions & 1 deletion src/goInstallTools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@ function getTools(goVersion: SemVersion): { [key: string]: string } {
let tools: { [key: string]: string } = {
'gocode': 'github.com/nsf/gocode',
'gopkgs': 'github.com/tpng/gopkgs',
'gogetdoc': 'github.com/zmb3/gogetdoc',
'go-outline': 'github.com/lukehoban/go-outline',
'go-symbols': 'github.com/newhook/go-symbols',
'guru': 'golang.org/x/tools/cmd/guru',
'gorename': 'golang.org/x/tools/cmd/gorename'
};

// Install the doc/def tool that was chosen by the user
if (goConfig['docsTool'] === 'godoc') {
tools['godef'] = 'github.com/rogpeppe/godef';
} else if (goConfig['docsTool'] === 'gogetdoc') {
tools['gogetdoc'] = 'github.com/zmb3/gogetdoc';
}

// Install the formattool that was chosen by the user
if (goConfig['formatTool'] === 'goimports') {
tools['goimports'] = 'golang.org/x/tools/cmd/goimports';
Expand Down

0 comments on commit 8fb8dbc

Please sign in to comment.