Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ tsconfig.tsbuildinfo
webpack.config.js
.eslintrc.json
.vscodeignore
CHANGELOG.md

MARKETPLACE.md
README.md.bak
README.md.tmp
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "postgres-explorer",
"displayName": "PgStudio (PostgreSQL Explorer)",
"version": "0.7.6",
"version": "0.7.9",
"description": "PostgreSQL database explorer for VS Code with notebook support",
"publisher": "ric-v",
"private": false,
Expand Down
23 changes: 18 additions & 5 deletions src/activation/WhatsNewManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,25 @@ export class WhatsNewManager implements vscode.WebviewViewProvider {
}

private async getChangelogContent(): Promise<string> {
const variants = ['CHANGELOG.md', 'changelog.md', 'Changelog.md'];

for (const variant of variants) {
try {
const changelogPath = path.join(this.extensionUri.fsPath, variant);
return await fs.promises.readFile(changelogPath, 'utf8');
} catch {
// Try next variant
}
}

// List what files actually exist in extension root for debugging
let files: string[] = [];
try {
const changelogPath = path.join(this.extensionUri.fsPath, 'CHANGELOG.md');
return await fs.promises.readFile(changelogPath, 'utf8');
} catch (e) {
console.error('Error reading changelog:', e);
return '# Error\nUnable to load CHANGELOG.md';
files = await fs.promises.readdir(this.extensionUri.fsPath);
} catch {
files = ['(unable to list directory)'];
}

return `# Error\nUnable to load CHANGELOG.md\n\nExtension path: \`${this.extensionUri.fsPath}\`\n\nFiles in extension root:\n${files.map(f => `- ${f}`).join('\n')}`;
}
}