[dev.go2go] all: change name and don't suggest recompiling Go tools
Change the name of the extension to make it more distinctive.
Also, don't offer to recompile Go tools.
Change-Id: Ic5874f88b0c43d69cf4bdd467793512f3e274359
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/238318
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
diff --git a/package.json b/package.json
index 74cf405..a070e0f 100644
--- a/package.json
+++ b/package.json
@@ -1,9 +1,9 @@
{
- "name": "go-nightly",
- "displayName": "Go Nightly",
+ "name": "go2go",
+ "displayName": "Go (go2go)",
"version": "0.0.0",
"publisher": "golang",
- "description": "Rich Go language support for Visual Studio Code (Nightly)",
+ "description": "Rich Go language support for Visual Studio Code",
"author": {
"name": "Go Team at Google"
},
diff --git a/src/goMain.ts b/src/goMain.ts
index 2ea23c4..7bcf799 100644
--- a/src/goMain.ts
+++ b/src/goMain.ts
@@ -79,16 +79,18 @@
const prevGoroot = toolsGoInfo[toolsGopath].goroot;
const currentGoroot: string = process.env['GOROOT'] && process.env['GOROOT'].toLowerCase();
if (prevGoroot && prevGoroot.toLowerCase() !== currentGoroot) {
- vscode.window
- .showInformationMessage(
+ // Don't suggest recompiling tools for the go2go version.
+ if (false) {
+ 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);
- }
- });
+ .then((selected) => {
+ if (selected === updateToolsCmdText) {
+ installAllTools(true);
+ }
+ });
+ }
} else {
const currentVersion = await getGoVersion();
if (currentVersion) {
diff --git a/src/telemetry.ts b/src/telemetry.ts
index 7bf6d49..b13b039 100644
--- a/src/telemetry.ts
+++ b/src/telemetry.ts
@@ -5,4 +5,4 @@
// TODO(hyangah): move this somewhere else (where easily modifiable during release process)
-export const extensionId: string = 'golang.go-nightly';
+export const extensionId: string = 'golang.go2go';