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

Commit

Permalink
Handle unexpected proxy query results gracefully #3204 (#3205)
Browse files Browse the repository at this point in the history
  • Loading branch information
neclepsio committed Apr 25, 2020
1 parent b9fd380 commit 65ede88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/goLanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@ async function latestGopls(tool: Tool): Promise<semver.SemVer> {
includePrerelease: true,
loose: true
});
versions.push(parsed);
if (parsed) {
versions.push(parsed);
}
}
if (versions.length === 0) {
return null;
Expand Down

0 comments on commit 65ede88

Please sign in to comment.