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

Commit

Permalink
Ignore case when comparing goroots #2606
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Jun 29, 2019
1 parent 331ed4c commit b0a2d2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/goMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export function activate(ctx: vscode.ExtensionContext): void {
toolsGoInfo[toolsGopath] = { goroot: null, version: null };
}
const prevGoroot = toolsGoInfo[toolsGopath].goroot;
const currentGoroot: string = process.env['GOROOT'];
if (prevGoroot && prevGoroot !== currentGoroot) {
const currentGoroot: string = process.env['GOROOT'] && process.env['GOROOT'].toLowerCase();
if (prevGoroot && prevGoroot.toLowerCase() !== currentGoroot) {
vscode.window.showInformationMessage(`Your current goroot (${currentGoroot}) is different than before (${prevGoroot}), a few Go tools may need recompiling`, updateToolsCmdText).then(selected => {
if (selected === updateToolsCmdText) {
installAllTools(true);
Expand Down

0 comments on commit b0a2d2d

Please sign in to comment.