Skip to content

Commit

Permalink
all: remove special casing for go versions older than 1.9
Browse files Browse the repository at this point in the history
Also, remove the reference to nsf/gocode used for go1.8 or older
in the doc.

Change-Id: Ic09867446640a70994baa3940a1e8cacb1e03104
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/242644
Reviewed-by: Rebecca Stambler <[email protected]>
  • Loading branch information
hyangah committed Jul 15, 2020
1 parent a241ae3 commit a8724f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion docs/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Code completion is provided by `gocode`. It is the only tool that runs as a serv

Different versions of `gocode` are used depending on your version of Go.

* Go 1.8 and below: [nsf/gocode](https://github.com/nsf/gocode)
* Go 1.9 and above: [mdempsky/gocode](https://github.com/mdempsky/gocode)
* Go 1.11 and above, with modules enabled: [stamblerre/gocode](https://github.com/stamblerre/gocode)
* This version of `gocode` does not have any caching, so if you find it slow, consider using [gopls] instead.
Expand Down
10 changes: 2 additions & 8 deletions src/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,8 @@ export async function goTest(testconfig: TestConfig): Promise<boolean> {
}
if (testconfig.includeSubDirectories) {
pkgMapPromise = getGoVersion().then((goVersion) => {
if (goVersion.gt('1.8')) {
targets = ['./...'];
return null; // We dont need mapping, as we can derive the absolute paths from package path
}
return getNonVendorPackages(testconfig.dir).then((pkgMap) => {
targets = Array.from(pkgMap.keys());
return pkgMap; // We need the individual package paths to pass to `go test`
});
targets = ['./...'];
return null; // We dont need mapping, as we can derive the absolute paths from package path
});
}
}
Expand Down

0 comments on commit a8724f1

Please sign in to comment.