changelog and final build
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user