Skip to content

Commit 0f054d3

Browse files
committed
[FIX] server: load changelog from changelog.md
vsce seems to lower case changelog file path now, so let's handle it
1 parent 1a34efe commit 0f054d3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

vscode/client/views/changelog/changelogWebview.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ export class ChangelogWebview {
104104
private _getWebviewContent(webview: Webview, extensionUri: Uri) {
105105
// HTML Rendering is done here
106106
const changelogUri = Uri.joinPath(extensionUri, "CHANGELOG.md");
107-
const changelogContent: string = readFileSync(changelogUri.fsPath, 'utf8');
107+
let changelogContent: string = readFileSync(changelogUri.fsPath, 'utf8');
108+
if (changelogContent === undefined) {
109+
const changelogUri = Uri.joinPath(extensionUri, "changelog.md");
110+
changelogContent = readFileSync(changelogUri.fsPath, 'utf8');
111+
}
108112
const htmlPath = getUri(webview, extensionUri, ["client", "views", "changelog", "body.html"]);
109113
const styleUri = getUri(webview, extensionUri, ["client", "views", "changelog", "style.css"]);
110114
const htmlFile = readFileSync(htmlPath.fsPath, 'utf-8');

0 commit comments

Comments
 (0)