diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2021-12-23 08:24:58 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2021-12-23 08:24:58 +0200 |
| commit | d5b4aa303731b7333b67906ff03311f5f3b6cd2f (patch) | |
| tree | f6056001238b54f7eab83399db0896a84394d09a /editors/code/src/persistent_state.ts | |
| parent | 45d22629637664a83ad477ffa94c9c411f150bf1 (diff) | |
| download | rust-d5b4aa303731b7333b67906ff03311f5f3b6cd2f.tar.gz rust-d5b4aa303731b7333b67906ff03311f5f3b6cd2f.zip | |
Remove server download and update checks
Diffstat (limited to 'editors/code/src/persistent_state.ts')
| -rw-r--r-- | editors/code/src/persistent_state.ts | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/editors/code/src/persistent_state.ts b/editors/code/src/persistent_state.ts index dd2aeecca35..f6d0a3d015f 100644 --- a/editors/code/src/persistent_state.ts +++ b/editors/code/src/persistent_state.ts @@ -3,50 +3,5 @@ import { log } from './util'; export class PersistentState { constructor(private readonly globalState: vscode.Memento) { - const { lastCheck, nightlyReleaseId, serverVersion } = this; - log.info("PersistentState:", { lastCheck, nightlyReleaseId, serverVersion }); - } - - /** - * Used to check for *nightly* updates once an hour. - */ - get lastCheck(): number | undefined { - return this.globalState.get("lastCheck"); - } - async updateLastCheck(value: number) { - await this.globalState.update("lastCheck", value); - } - - /** - * Release id of the *nightly* extension. - * Used to check if we should update. - */ - get nightlyReleaseId(): number | undefined { - return this.globalState.get("releaseId"); - } - async updateNightlyReleaseId(value: number | undefined) { - await this.globalState.update("releaseId", value); - } - - /** - * Version of the extension that installed the server. - * Used to check if we need to update the server. - */ - get serverVersion(): string | undefined { - return this.globalState.get("serverVersion"); - } - async updateServerVersion(value: string | undefined) { - await this.globalState.update("serverVersion", value); - } - - /** - * Github authorization token. - * This is used for API requests against the Github API. - */ - get githubToken(): string | undefined { - return this.globalState.get("githubToken"); - } - async updateGithubToken(value: string | undefined) { - await this.globalState.update("githubToken", value); } } |
