async function bootstrap(config: Config, state: PersistentState): Promise<string> {
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;
}
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.