Skip to content

Commit df46fb8

Browse files
committed
Corrected packaged changelog path
1 parent 6b4b966 commit df46fb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/extension/changelog.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import path from "node:path";
12
import * as vscode from "vscode";
23

34
const LAST_VERSION_KEY = "lastVersion";
@@ -56,7 +57,7 @@ export async function showChangelog(
5657
}
5758

5859
// Open the CHANGELOG.md file
59-
const changelogPath = vscode.Uri.file(context.asAbsolutePath("CHANGELOG.md"));
60+
const changelogPath = path.join(__dirname, "..", "changelog.md"); // VSIX packaging lowercases the filename
6061
try {
6162
await vscode.commands.executeCommand("markdown.showPreview", changelogPath);
6263
} catch (error) {

0 commit comments

Comments
 (0)