File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,7 @@ export class ReleaseNotes extends Disposable {
29
29
30
30
this . _register ( vscode . commands . registerCommand ( 'gitpod.showReleaseNotes' , ( ) => this . createOrShow ( ) ) ) ;
31
31
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 ) ;
38
33
}
39
34
40
35
private async getLastPublish ( ) {
@@ -165,12 +160,14 @@ export class ReleaseNotes extends Disposable {
165
160
}
166
161
167
162
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 ) {
169
165
const releaseId = await this . getLastPublish ( ) ;
170
166
if ( releaseId && releaseId !== lastReadId ) {
171
167
this . logger . info ( `gitpod release notes lastReadId: ${ lastReadId } , latestReleaseId: ${ releaseId } ` ) ;
172
168
this . createOrShow ( ) ;
173
169
}
170
+ }
174
171
}
175
172
176
173
public createOrShow ( ) {
You can’t perform that action at this time.
0 commit comments