Skip to content

Commit

Permalink
Update default latest version for gopls (microsoft#3229)
Browse files Browse the repository at this point in the history
Change-Id: Ic1a6eb955ad9a2e4eab81771dd0c4471670e22fa
  • Loading branch information
stamblerre committed May 8, 2020
1 parent 12fd44a commit f2a7c11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/goLanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export async function registerLanguageFeatures(ctx: vscode.ExtensionContext): Pr
}
const versionToUpdate = await shouldUpdateLanguageServer(tool, config.path, config.checkForUpdates);
if (versionToUpdate) {
promptForUpdatingTool(tool.name);
promptForUpdatingTool(tool.name, versionToUpdate);
}
}

Expand Down Expand Up @@ -336,8 +336,8 @@ function allFoldersHaveSameGopath(): boolean {
}

const acceptGoplsPrerelease = false;
const defaultLatestVersion = semver.coerce('0.3.1');
const defaultLatestVersionTime = moment('2020-02-04', 'YYYY-MM-DD');
const defaultLatestVersion = semver.coerce('0.4.0');
const defaultLatestVersionTime = moment('2020-04-08', 'YYYY-MM-DD');
async function shouldUpdateLanguageServer(
tool: Tool,
languageServerToolPath: string,
Expand Down

0 comments on commit f2a7c11

Please sign in to comment.