Skip to content
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

Merged
merged 4 commits into from
Mar 24, 2021
Merged

Conversation

aeschright
Copy link
Contributor

Fixes #588

@aeschright aeschright requested a review from a team March 22, 2021 19:21
Copy link
Contributor

@appilon appilon left a 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!

@@ -32,31 +36,45 @@ export class LanguageServerInstaller {
isInstalled = false;
Copy link
Contributor

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)

this.showChangelog(this.release.version);
}

_latestReleasePromise: Promise<Release>;
Copy link
Contributor

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

Copy link
Contributor Author

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.

@aeschright aeschright requested a review from appilon March 23, 2021 21:58
Copy link
Contributor

@appilon appilon left a comment

Choose a reason for hiding this comment

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

LGTM

@aeschright aeschright merged commit ad91435 into main Mar 24, 2021
@aeschright aeschright deleted the ls-install-check branch March 24, 2021 18:05
@ghost
Copy link

ghost commented Apr 23, 2021

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the context necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 23, 2021
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.

Check for language server updates daily
2 participants