Skip to content

Commit f300465

Browse files
committed
💄
Sync with gitpod-web
1 parent 1afeac4 commit f300465

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/releaseNotes.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,7 @@ export class ReleaseNotes extends Disposable {
2929

3030
this._register(vscode.commands.registerCommand('gitpod.showReleaseNotes', () => this.createOrShow()));
3131

32-
const releaseNotesEnabled = vscode.workspace.getConfiguration('gitpod').get<boolean>('showReleaseNotes');
33-
if (releaseNotesEnabled) {
34-
this.showIfNewRelease(this.lastReadId);
35-
} else {
36-
logger.info('Release notes are disabled');
37-
}
32+
this.showIfNewRelease(this.lastReadId);
3833
}
3934

4035
private async getLastPublish() {
@@ -165,12 +160,14 @@ export class ReleaseNotes extends Disposable {
165160
}
166161

167162
private async showIfNewRelease(lastReadId: string | undefined) {
168-
this.logger.info(`Last read release notes: ${lastReadId}`);
163+
const showReleaseNotes = vscode.workspace.getConfiguration('gitpod').get<boolean>('showReleaseNotes');
164+
if (showReleaseNotes) {
169165
const releaseId = await this.getLastPublish();
170166
if (releaseId && releaseId !== lastReadId) {
171167
this.logger.info(`gitpod release notes lastReadId: ${lastReadId}, latestReleaseId: ${releaseId}`);
172168
this.createOrShow();
173169
}
170+
}
174171
}
175172

176173
public createOrShow() {

0 commit comments

Comments
 (0)