README.md: generate the version for nightly during release

And change back to the version from upstream.
That will ease the sync process and less confusing during migration.

Change-Id: I6b3a7e2157bdc586f9f5052ec1db46a86bbaed01
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/232459
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
diff --git a/.vscodeignore b/.vscodeignore
index 5f7ffd2..a0b223f 100644
--- a/.vscodeignore
+++ b/.vscodeignore
@@ -9,3 +9,4 @@
 **/tslint.json
 build/**/*
 docs/
+*.md.nightly
diff --git a/README.md b/README.md
index 9cbff90..766d437 100644
--- a/README.md
+++ b/README.md
@@ -1,30 +1,10 @@
-# Go Nightly for VS Code
+# Go for Visual Studio Code
 
-> ### **ATTENTION**
->**Go Nightly for VS Code** is the insider version of
-[VS Code Go extension](https://github.com/microsoft/vscode-go)
-for early feedback and testing. This extension works best with
-[VS Code Insiders](https://code.visualstudio.com/insiders).
-Go Nightly contains previews of new features and bug fixes that are still
-under review or testing, so can be unstable. If you are looking for the stable version,
-please use [the stable version](https://marketplace.visualstudio.com/items?itemName=ms-vscode.go) instead.
->
-> **NOTE:**
-If you have both stable (aka "Go") and nightly version (aka "Go Nightly") installed,
-you MUST DISABLE one of them. Docs on how to disable an extension can be found
-[here](https://code.visualstudio.com/docs/editor/extension-gallery#_disable-an-extension).
+[![Join the chat at https://gitter.im/Microsoft/vscode-go](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Microsoft/vscode-go?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/Microsoft/vscode-go.svg?branch=master)](https://travis-ci.org/Microsoft/vscode-go)
 
-> ### Difference between VS Code Go and VS Code Go Nightly
-> - Go Nightly is maintained and released by Go Tools team at Google.
-> - Go Nightly is released more frequently than the stable version.
-> - Go Nightly includes features and bug fixes that are still under testing or not finalized yet.
-> - Go Nightly may use the latest pre-release versions of tools (e.g. `gopls`) instead of release versions.
-> - For now, Go and Go Nightly maintain separate repositories. Both repositories
->   welcome all contributors. For contribution to Go Nightly repo, see the Go
->   project's [contribution guide](https://golang.org/doc/contribute.html).
->   Go team members who has signed the Microsoft CLA will send a syncing PR upstream to
->   https://github.com/microsoft/vscode-go every two weeks.
-> - [Here](https://github.com/microsoft/vscode-go/compare/master...golang:master) is the full list of local modifications.
+This extension adds rich language support for the [Go language](https://golang.org/) to VS Code.
+
+Read the [Changelog](https://github.com/Microsoft/vscode-go/blob/master/CHANGELOG.md) to know what has changed over the last few versions of this extension.
 
 ## Table of Contents
 
diff --git a/README.md.nightly b/README.md.nightly
new file mode 100644
index 0000000..0064e7e
--- /dev/null
+++ b/README.md.nightly
@@ -0,0 +1,27 @@
+# Go Nightly for VS Code
+
+> ### **ATTENTION**
+>**Go Nightly for VS Code** is the insider version of
+[VS Code Go extension](https://github.com/microsoft/vscode-go)
+for early feedback and testing. This extension works best with
+[VS Code Insiders](https://code.visualstudio.com/insiders).
+Go Nightly contains previews of new features and bug fixes that are still
+under review or testing, so can be unstable. If you are looking for the stable version,
+please use [the stable version](https://marketplace.visualstudio.com/items?itemName=ms-vscode.go) instead.
+>
+> **NOTE:**
+If you have both stable (aka "Go") and nightly version (aka "Go Nightly") installed,
+you MUST DISABLE one of them. Docs on how to disable an extension can be found
+[here](https://code.visualstudio.com/docs/editor/extension-gallery#_disable-an-extension).
+
+> ### Difference between VS Code Go and VS Code Go Nightly
+> - Go Nightly is maintained and released by Go Tools team at Google.
+> - Go Nightly is released more frequently than the stable version.
+> - Go Nightly includes features and bug fixes that are still under testing or not finalized yet.
+> - Go Nightly may use the latest pre-release versions of tools (e.g. `gopls`) instead of release versions.
+> - For now, Go and Go Nightly maintain separate repositories. Both repositories
+>   welcome all contributors. For contribution to Go Nightly repo, see the Go
+>   project's [contribution guide](https://golang.org/doc/contribute.html).
+>   Go team members who has signed the Microsoft CLA will send a syncing PR upstream to
+>   https://github.com/microsoft/vscode-go every two weeks.
+> - [Here](https://github.com/microsoft/vscode-go/compare/master...golang:master) is the full list of local modifications.
diff --git a/build/all.bash b/build/all.bash
index 6dd46bf..7167864 100755
--- a/build/all.bash
+++ b/build/all.bash
@@ -73,8 +73,9 @@
 ') > /tmp/package.json && mv /tmp/package.json package.json
 
   # Replace CHANGELOG.md with CHANGELOG.md.nightly + Release commit info.
-  # TODO(hyangah): Update README.md
   printf "**Release ${VER} @ ${COMMIT}** \n\n" | cat - CHANGELOG.md.nightly > /tmp/CHANGELOG.md.new && mv /tmp/CHANGELOG.md.new CHANGELOG.md
+  # Replace the heading of README.md with the heading for Go Nightly.
+  sed '/^# Go for Visual Studio Code$/d' README.md | cat README.md.nightly - > /tmp/README.md.new && mv /tmp/README.md.new README.md
 }
 
 main() {