-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for language server updates every 24 hours #595
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor feedback, I may be mistaken on the caching thing, if so then overall looks good!
src/languageServerInstaller.ts
Outdated
@@ -32,31 +36,45 @@ export class LanguageServerInstaller { | |||
isInstalled = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just return true here early (needsInstall because isInstalled == false)
src/languageServerInstaller.ts
Outdated
this.showChangelog(this.release.version); | ||
} | ||
|
||
_latestReleasePromise: Promise<Release>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we want to cache this result? It seemed like updates were checked for on a schedule now, so I think we don't want to cache the response, that way when a new release goes out, the logic will show a mismatch between what the user has installed and the new latest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll remove it, I was thinking I would need it between checking whether there's an update and installing it, but I went in a different direction for that part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Fixes #588