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

Include the link to release note/package overview in the update prompt, and update gopls default version #3041

Merged
merged 3 commits into from
Mar 16, 2020

Conversation

hyangah
Copy link
Contributor

@hyangah hyangah commented Feb 11, 2020

@stamblerre
Copy link
Contributor

Can you add a screenshot of how this will look?

const defaultLatestVersion = semver.coerce('0.1.7');
const defaultLatestVersionTime = moment('2019-09-18', 'YYYY-MM-DD');
const defaultLatestVersion = semver.coerce('0.3.1');
const defaultLatestVersionTime = moment('2020-02-04', 'YYYY-MM-DD');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ramya-rao-a: Can we get away from having this hardcoded default as a backup?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We had this for the case when user doesnt want the extension to keep checking with the proxy server to determine if an update is needed. Removing the default would mean that such users will never get the prompt to update gopls

@hyangah
Copy link
Contributor Author

hyangah commented Feb 11, 2020

Can you add a screenshot of how this will look?

image

And once you click the Release Note, it will open a browser with the provided link. I wish I knew a way to let the prompt stay after clicking the link, so users can come back and click the Update button.

@stamblerre
Copy link
Contributor

Thanks! That looks really good.
Maybe to avoid the disappearing window, we can have the link to the release notes pop up after the user has already clicked update? Or @ramya-rao-a might know a better way.

src/goInstallTools.ts Outdated Show resolved Hide resolved
src/goInstallTools.ts Outdated Show resolved Hide resolved
@ramya-rao-a
Copy link
Contributor

The update to gopls default version is ported to master branch via 36f0b58 and is part of 0.13.1 version of the extension

@ramya-rao-a
Copy link
Contributor

There are a few linting errors, can you fix them?
Try npm run fix-lint

Screen Shot 2020-02-28 at 5 33 56 AM

@ramya-rao-a ramya-rao-a merged commit 6d1bf5c into microsoft:master Mar 16, 2020
hyangah added a commit to hyangah/vscode-go-old that referenced this pull request Mar 19, 2020
Sync @ 7da5077

* master:
  Address mismatch on path separators in debug config (microsoft#2010) (microsoft#3108)
  Include the link to release note/package overview in the update prompt, and update gopls default version (microsoft#3041)
  bug_report.md: Fix "architecture" typo. (microsoft#3095)
  telemetry.ts: send telemetry only if aiKey is not an empty  string(microsoft#3091)
gopherbot referenced this pull request in golang/vscode-go Mar 20, 2020
 Merge 'microsoft/vscode-go/master' into 'golang/vscode-go/master'

    Sync @ 7da5077

    * master:
      Address mismatch on path separators in debug config (#2010) (#3108)
      Include the link to release note/package overview in the update prompt, and update gopls default version (#3041)
      bug_report.md: Fix "architecture" typo. (#3095)
      telemetry.ts: send telemetry only if aiKey is not an empty  string(#3091)

Change-Id: I727ef0ed3b8d1ad926e26831534c153b06070e64
GitHub-Last-Rev: d11e342
GitHub-Pull-Request: #11
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/224239
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
hyangah added a commit to hyangah/vscode-go-old that referenced this pull request Mar 20, 2020
* master:
  goLanguageServer: set completion follow up command from middleware (microsoft#3084)
  Add stacktrace dump and better error messages on EXC_BAD_ACCESS panics (microsoft#2904)
  Address mismatch on path separators in debug config (microsoft#2010) (microsoft#3108)
  Include the link to release note/package overview in the update prompt, and update gopls default version (microsoft#3041)
  bug_report.md: Fix "architecture" typo. (microsoft#3095)
  telemetry.ts: send telemetry only if aiKey is not an empty  string(microsoft#3091)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants