changelog and final build

This commit is contained in:
2026-05-29 13:50:09 +08:00
parent 80f155dfe8
commit 2ca858cfa4
10 changed files with 129 additions and 77 deletions

View File

@@ -9,10 +9,10 @@ export function openChangelog(context: vscode.ExtensionContext) {
vscode.ViewColumn.One,
{ enableScripts: false }
);
const changelogPath = path.join(context.extensionPath, 'CHANGELOG.md');
let markdown = '# Changelog\n\nCHANGELOG.md was not found.';
const readmePath = path.join(context.extensionPath, 'README.md');
let markdown = '# Changelog\n\nREADME.md was not found.';
try {
markdown = fs.readFileSync(changelogPath, 'utf8');
markdown = fs.readFileSync(readmePath, 'utf8');
} catch {
// Keep the fallback text readable in packaged or development installs.
}