diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index ee2c50dc70..5db66df93d 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -156,9 +156,11 @@ export async function deactivate() { async function bootstrap(config: Config, state: PersistentState): Promise { await fs.mkdir(config.globalStoragePath, { recursive: true }); + if (config.package.releaseTag != NIGHTLY_TAG) { + await state.removeReleaseId(); + } await bootstrapExtension(config, state); const path = await bootstrapServer(config, state); - return path; } diff --git a/editors/code/src/persistent_state.ts b/editors/code/src/persistent_state.ts index afb6525899..2519bd77ab 100644 --- a/editors/code/src/persistent_state.ts +++ b/editors/code/src/persistent_state.ts @@ -27,6 +27,9 @@ export class PersistentState { async updateReleaseId(value: number) { await this.globalState.update("releaseId", value); } + async removeReleaseId() { + await this.globalState.update("releaseId", undefined); + } /** * Version of the extension that installed the server.