Skip to content

Commit 56cdfb9

Browse files
committed
Fix incorrect setting name
1 parent 98c303d commit 56cdfb9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export async function activate(context: vscode.ExtensionContext) {
7979
}
8080
}));
8181

82-
if (vscode.workspace.getConfiguration('gitpod').get<boolean>('enableReleaseNotes')) {
82+
if (vscode.workspace.getConfiguration('gitpod').get<boolean>('showReleaseNotes')) {
8383
const lastRead = context.globalState.get<string>(ReleaseNotes.RELEASE_NOTES_LAST_READ_KEY);
8484
logger.info(`Last read release notes: ${lastRead}`);
8585
context.subscriptions.push(new ReleaseNotes(context));

src/releaseNotes.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ export class ReleaseNotes extends Disposable {
125125
}
126126

127127
const html = await vscode.commands.executeCommand<string>('markdown.api.render', mdContent);
128+
129+
if (!this.panel?.visible) {
130+
return;
131+
}
132+
128133
this.panel.webview.html = `<!DOCTYPE html>
129134
<html lang="en">
130135
<head>

0 commit comments

Comments
 (0)